I am using addAttachmentLinkToSubscription web service method to link the attachments from CA SDM request to CA Catalog service request,but not understand correctly one of the mandatory parameter 'attachmentLink'.
If anybody have any idea about 'attachmentLink', please share with me.
Thanks in advanced.
Good Afternoon Pankaj. For details on this, please check: Login to the SC-UI and then follow these steps:SC/Admin/Tools/LinksWeb Services APIRequest Web ServiceMethod Detail-addAttachmentLinkToSubscription MethodRequired ParameterssessionId | [mandatory] Security handle to access web service.attachmentId | [optional] ID of attachment at source.attachmentFileName | [mandatory] Name of the file at source.attachmentDesc | [optional] File description. attachmentLink | [mandatory] Direct link, to download the attachment. attachmentTimeStamp| [optional] Date/Time when the attachment is added at source. Format: "yyyy-MM-dd HH:mm:ss". If not provided, the current date time would be used.sourceTypeId | [mandatory] Specifies the type of source. 200 = Catalog Subscription, 201 = Service Desk Ticket/Ref number, 202 = Service Desk Persistent Object.sourceObjId | [mandatory] ObjectID of the source system based on sourceTypeId.userId | [optional] Attachment created user at source. Thanks and kind regards, Louis van Amelsfort.
I already check the Catalog Web Services API & what I understand is attachmentId is the direct download attachment link of CA SDM.If I am wrong please correct me.
I also successfully attached the attachment to a Catalog service request from CA SDM request attachment.
I used attachmentId like following
"AttmntId="+ attmntid +"&Bpsid="+bopsid+"&retURL="+SD_EXT_URL+"?SID="+SD_session_id+"%2BFID=123%2BOP=DISPLAY_FORM%2BHTMPL=attmnt_download_done.htmpl"+"&ServerName=BG_Server"
where attmntid is the id of the attachment
SD_EXT_URL is https://+hostname+/CAisd/pdmweb.exe
SD_session_id is the SDM session id
BG_Server is the background server name.
After successfully attached the attachment to a Catalog service request when I am trying to download the attachment by clicking the attachment it will forwarding to CA SDM link instead of downloading attachment.
Good Afternoon Pankaj.
When all is working okay, then please explain your remaining question.
When you hit the link, it will point you to the correct attachment, right?
Thanks and kind regards, Louis.
Thanks for the prompt reply.
The issue is when hitting the attachment link instead of downloading the attachment it will only forwarding to the SDM link.
Thank you too for the quick response.
Unfortunately, you(we) then need to wait for 'other people in the community' to help you further on this.
Sorry, kind regards, Louis.
As I used below URL as attachmentLink
to link the attachment from CA SDM to Catalog.But after attaching the attachment to Catalog from SDM maybe bopsid & SD_session_id was expired & when clicking on the attachment link attachment is not downloading.
Then my question is what is the workaround for that?
Any help will be highly appreciated.
Good afternoon Pankaj.
Can you agree to 'close' this thread?
And I can then propose to open a standard case should you need further analysis and research for this.
Thanks in advance for your understanding and kind regards, Louis.
Yes please close this thread, I already open a case for the same.