Clarity Service Management

Expand all | Collapse all

Attachment sync from SDM to Catalog

Jump to Best Answer
  • 1.  Attachment sync from SDM to Catalog

    Posted 02-09-2018 06:05 AM

    Hi Team,

     

    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.

     

    Regards,

    Pankaj



  • 2.  Re: Attachment sync from SDM to Catalog

    Posted 02-09-2018 08:44 AM

    I've always moved attachments in the reverse direction, but here's a snip of the cat WSDL to get you started.



  • 3.  Re: Attachment sync from SDM to Catalog

    Posted 02-09-2018 12:51 PM

    Hello Pankaj,

     

    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:

     

    Regards,



  • 4.  Re: Attachment sync from SDM to Catalog

    Posted 02-12-2018 02:22 AM

    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.

     

    Regards,
    Pankaj



  • 5.  Re: Attachment sync from SDM to Catalog

    Posted 02-12-2018 10:32 AM

    Pankaj,

     

    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.

     

    Elwynn.



  • 6.  Re: Attachment sync from SDM to Catalog
    Best Answer

    Posted 02-13-2018 03:43 AM

    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.