cancel
Showing results for 
Search instead for 
Did you mean: 

how to export attachment in interaction of ticket in c4c

stevendai
Explorer
0 Kudos
970

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

Accepted Solutions (1)

Accepted Solutions (1)

OlgenH
Participant

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

stevendai
Explorer
0 Kudos

hi olgen.

Thanks for your information,i will try that. By the way,i would like to know if workbench center can do this?

OlgenH
Participant
0 Kudos

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

stevendai
Explorer
0 Kudos

Hi Olgen.

thanks very much. it's working for me

Answers (0)