You want to download the files attached to your documents (Opportunities, Service Requests, Leads, etc.) by making use of the delivered OData Service in your Cloud for Customer system, but the file is downloaded with a different name and with no file extension.
Reproducing the Issue
- Access the URL for the desired OData collection you want to use, for this test we will use the ServiceRequestCollection object;
- After using the URL for the object, i.e.: https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/cust/v1/customerportal/ServiceRequestCollection('00163E12AEE81ED7A4E36D30984969AC')? (Replace XXXXXX with your system number after "my");
- Expand the Attachment folder by adding $expand=ServiceRequestAttachment at the end of the URL;
- Use the link provided in the property <d:DocumentLink>;
- If you click and select "Save" the file downloaded will be saved with the name "$value".
This is the standard system behavior.
The OData service for the attachments folder has a property <Name> which can be used to save the files with the correct names.
There is no intention to change this at this point, and our suggestion is to raise it as a new requirement in our Ideas Place, available at https://influence.sap.com/SAPCloudforCustomer.
KBA , LOD-CRM-EMP , Employee , How To