SAP Knowledge Base Article - Public

2669482 - How to perform operations with relationship between custom MDF objects

Symptom

You would like to perform an operation with the relationship between two custom objects.

For example you have the object ABC 1 that has a relationship(link) with the object XYZ A and you need to remove this link.

Environment

SuccessFactors OData API

Reproducing the Issue

You have the objct ABC 1 that has a relationship(link) with the object XYZ A and you need to remove this link with an Odata call.

Resolution

Below samples can be used to edit links:

1. Insert links:

         POST <host>/odata/v2/ABC('1')/$links/Building
         Payload
         <uri xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">
         <hostname>/odata/v2/XYZ('A')
         </uri>

2. Delete links:

          DELETE /odata/v2/ABC('1')/$links/XYZ('A')

3. Update links

           PUT <host>/odata/v2/ABC('1')/$links/XYZ('A')
           Payload
           <uri xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices">
           <hostname>/odata/v2/Building('B')
           </uri>

Note: We only support edit with one link in one insert call.

Keywords

  • SuccessFactors OData API
  • Delete MDF object relationship
  • Operation with MDF object links
  • Call to remove MDF relationship
, KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , How To

Product

SAP SuccessFactors HXM Suite all versions