SAP Knowledge Base Article - Public

3302786 - EmpWorkPermit attachments returning null values - Odata API or Integration Center


You are trying to retrieve attachments from EmpWorkPermit entity through Odata API calls or Integration Center but null values are being returned.


SAP SuccessFactors HXM Suite

Reproducing the Issue

Perform an Odata API GET call to EmpWorkPermit entity.


Create an Outbound Integration with Attachment as the Format with EmpWorkPermit as Starting entity.


From Odata API perspective, this is a known function limitation of EmpWorkPermit entity that happens when the "attachmentId" field is not included in the $select clause.

Considering the Integration Center is based on Odata API, the limitation reflects on Integration Center too.


Odata API callS workaround:

You must include "attachmentId" field in $select clause together with "attachment" field if you want to get attachment content correctly, otherwise it will return 'null'.

Integration Center workaround:

  1. Under Configure Fields tab, map the "attachmentId" field to ContentTypeAssociation;
  2. Under Destination Settings, in Calculated File Name include the AttachmentFileType field;

Although this mapping is technically incorrect, it will produce the desired output.

See Also

3123736 - Not able to select the Attachment entity as starting entity - Integration Center

3246373 - Outbound Integration with Attachment as the Format Type is not returning data - Integration Center

2968837 - Uploading attachments via Integration Center


KBA , LOD-SF-INT-INC , Integration Center , Problem


SAP SuccessFactors HXM Suite all versions