Posted Tue, 11 Aug 2020 07:46:08 GMT by Simon H. Hellmann Toshiba TGIS 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.
DocumentAnnotationsPlacement documentStampPlacement = new DocumentAnnotationsPlacement()
                {
                    Annotations = new List<SectionAnnotationsPlacement>()
                    {
                        new SectionAnnotationsPlacement()
                        {
                            PageNumber = pageNumber,
                            SectionNumber = sectionNumber,
                            AnnotationsPlacement = new AnnotationsPlacement()
                            {
                                Items = new List<object>()
                                {
                                    new StampPlacement()
                                    {
                                        StampId = stampId,
                                        Layer = layer,
                                        Field = new List<FormFieldValue>()
                                    }
                                }
                            }
                        }
                    }
                };

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 Tue, 11 Aug 2020 08:22:31 GMT by Tobias Getz DocuWare GmbH Director Product

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 Tue, 11 Aug 2020 08:29:02 GMT by Gilles Sauvagnat Altexence Président
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 Tue, 11 Aug 2020 08:29:46 GMT by Gilles Sauvagnat Altexence Président
Oups 7 minutes too late :-) 
Posted Tue, 11 Aug 2020 08:54:38 GMT by Simon H. Hellmann Toshiba TGIS 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.