on 2023 Sep 12 12:21 PM
hello team.
we have some requirements for exporting ticket attachment from c4c. we had checked odata api which can export attachement from c4c with url /c4codataapi/ServiceRequestCollection('aaa')/ServiceRequestAttachmentFolder('bbb')/Binary/$value
but we found this can not export attachments in interactions. is there any other way to do that?
thanks in advance
Request clarification before answering.
Hi Dai
I don't think you will be able to extract the attachments using the ServiceRequestCollection. The Interaction Attachments in the ticket are not stored with reference to the ticket but rather with the related e-mail interactions
I was able to get these attachment via two API calls but you might need to write a script to automate the extraction and get them in bulk.
1. Get the BTD Reference for the e-mails (TypeCode = 39 in the BTDR Collection)
https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/ServiceRequestCollection?ID=<<<ticket...
2. Get attachment using EmailID from the BTDR Collection
https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/EMailCollection?ID=<<<emailID>>>&$exp...
Hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dai
exporting attachments via Data Workbench is not supported.
Have a look at point 10 in 2568268 - Frequently Asked Questions on Data Workbench Work Center
User | Count |
---|---|
19 | |
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.