Symptom
This article describes how to update the mfield values in the requisition via ODATA API.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP SuccessFactors Recruiting Management
Resolution
In the following sample, the values for mfield1 will be updated or populated in the UI.
<field-definition id="mfield1" type="picklist" required="false" custom="false" multiselect="true">
<field-label><![CDATA[Job Location (country)]]></field-label>
<field-label lang="de_DE"><![CDATA[Arbeitsstandort (Land)]]></field-label>
<field-label lang="en_US"><![CDATA[Job Location (country)]]></field-label>
<picklist-id>postingCountry</picklist-id>
</field-definition>
POST: https://endpoint/odata/v2/upsert
The endpoint URL depends on the instance's data center - KBA 2215682.
Breakdown:
a. Job Requisition ID details: 1495L refers to the jobReqId + L.
b. mfield details: The field is mfield1 (same field ID in the job requisition template, Admin Center > Internal and External Search Settings, and ODATA API data dictionary). While "uri": "PicklistOption(4372L)" and "uri": "PicklistOption(4371L)", are refers to the picklist option IDs of the values we are passing to the UI, i.e., option Id + L. See image below.
b. Setting or upserting the primary value or querying the primary value is not supported.
c. The primary value in the UI defaults to whichever is on the top entry amongst the selected values in the list. In this sample, the top most selected entry is Tunisia so it becomes the primary.
See Also
2950969 - Is it possible to pull the primary value from an mfield via OData API - Recruiting Management
Keywords
update via API, mfield, cascading picklists, primary value, job requisition, job req, RCM, Recruiting Management, 2H2024, RCM-127737 , KBA , LOD-SF-RCM-JOB , Job Postings & Requisitions , Product Enhancement