SAP Knowledge Base Article - Public

3439760 - Custom MDF upload via API do not have Document Category assigned

Symptom

  • Document Category is missing from documents uploaded via API on custom MDF object, when manually added it works.
  • Document is not found on specific Document Category in Manage Documents when it was uploaded via API.

Environment

SAP SuccessFactors HCM Suite

Reproducing the Issue

  1. Upload attachment into Custom MDF via API
  2. Go to Manage Documents > Filter the category used
  3. Document is not listed

Resolution

When uploading an attachment through OData API, ensure the following fields are set on upsert:

  • Document Category
  • DocumentEntityID
  • DocumentEntityType

After having this set on upload, the user can then proceed linking this attachment object to the MDF entity.

See Also

Attachment | SAP Help Portal

Linking Attachments to an MDF Entity | SAP Help Portal

Keywords

MDF API, attach document, manage documents, upsert, ODATA, attachment API, custom MDF attachment API , KBA , LOD-SF-MDF-OBJ , Object Definition & Field Related Issues , LOD-SF-MDF-API , OData APIs & Integrations , LOD-SF-PLT-DOC , Document Management , Problem

Product

SAP SuccessFactors HXM Core 2311