Posted 5 years ago by Simon H. Hellmann Toshiba Tec Germany Imaging Systems GmbH IT-Consultant Document Management Solutions
Hi all, 

I implemented automatic stamping in a service.
In general, this is not a problem, just creating a DocumentAnnotationsPlacement object and Post to Annotations.
  1. DocumentAnnotationsPlacement documentStampPlacement = new DocumentAnnotationsPlacement()
  2.                 {
  3.                     Annotations = new List<SectionAnnotationsPlacement>()
  4.                     {
  5.                         new SectionAnnotationsPlacement()
  6.                         {
  7.                             PageNumber = pageNumber,
  8.                             SectionNumber = sectionNumber,
  9.                             AnnotationsPlacement = new AnnotationsPlacement()
  10.                             {
  11.                                 Items = new List<object>()
  12.                                 {
  13.                                     new StampPlacement()
  14.                                     {
  15.                                         StampId = stampId,
  16.                                         Layer = layer,
  17.                                         Field = new List<FormFieldValue>()
  18.                                     }
  19.                                 }
  20.                             }
  21.                         }
  22.                     }
  23.                 };

However, it always requires a Stamp ID. I can not figure out how to stamp with a stamp name instead of the GUID.
Using the GUID works just fine in on-premise systems, however I think you can not retrieve the GUID for stamps in Cloud systems, at least I do not know how to do that.

Can you help me figure out how to either find the GUID in a Cloud system or how to stamp without knowing the GUID?

Thanks and Greetings from Germany,
Simon H. Hellmann
DocuWare System Consultant
Posted 5 years ago by Tobias Getz DocuWare GmbH Team Leader Product Management

Hi Simon,

stamping by name is not possible as the stamp name is not unique in a DocuWare organisation. It is possible to get the GUID of a stamp when using the development tools of a browser (search for "stamp" in "Network" after opening a document) or use this request which returns all stamps in JSON:

https://[name].docuware.cloud/DocuWare/Platform/WebClient/Viewer/Stamps?fileCabinetId=[FileCabinetGUID]&stampType=Text,Bitmap

Regards
Tobias Getz
DocuWare GmbH

Posted 5 years ago by Gilles Sauvagnat Altexence
Hi

Try 

https://YOURORGANIZATION.docuware.cloud/DocuWare/Platform/Home/XSL

Then  List Organizations




Then 




Then in the file cabinet you want


At that point you shoud get the stamp GUID you want

Hope it helps

Gilles
Posted 5 years ago by Gilles Sauvagnat Altexence
Oups 7 minutes too late :-) 
Posted 5 years ago by Simon H. Hellmann Toshiba Tec Germany Imaging Systems GmbH IT-Consultant Document Management Solutions
Hi and thanks to both of you, that helps a lot.

Greetings from Germany,
Simon H. Hellmann
DocuWare System Consultant

You must be signed in to post in this forum.