I am creating one custom PAM process to sync the Service Desk Request attachment into related Service Catalog Service Request.Which web-service method I can use to copy the attachment from SDM to Catalog?
Note: I don't want to enable OTB sync for sync the attachment from SDM to Catalog.
I've always moved attachments in the reverse direction, but here's a snip of the cat WSDL to get you started.
You can use PAM to sync attachment between enviroments, its really easy to do it.
Next is an example to create attachment into Service Desk, I use MIME Attachement to send phycall file:
Hi ElwynnMartin / yona1987,
Thank you very much for prompt reply.In my case I have to attach a file to Service Catalog.Can I use method 'addAttachmentLinkToSubscription'.I already tried to use the above mention method but the error is 'no subscription found'.If anybody have any idea please share with me.
As I understand it that method will attach a URL rather than a file.
I can only guess at the error, but I think it must be because catalog can't find a ticket/'subscription' for the ID supplied in the call.
Good Morning Pankaj.In a SOAPUI-test, the following attached the file stderr.txt as such, to an existing SC-requestID:<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com"> <soapenv:Header/> <soapenv:Body> <ser:addRequestAttachmentWithPath soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <sessionID xsi:type="xsd:string">a6aac73b-27ea-4bba-a602-c18db5c15c60</sessionID> <requestID xsi:type="xsd:int">10007</requestID> <attachmentName xsi:type="xsd:string">stderr.txt</attachmentName> <attachmentDescription xsi:type="xsd:string">SOAPUI_Attachment?</attachmentDescription> <attachmentPath xsi:type="xsd:string">C:\stderr.txt</attachmentPath> </ser:addRequestAttachmentWithPath> </soapenv:Body></soapenv:Envelope>Note1: The 'name' (stderr.txt) must be the name of the file-without-the-path.Note2: The 'path' (C:\stderr.txt) must contain the full-path of the file.Kind regards, Louis van Amelsfort.