successfactors ODATA update entities' value which is the type of pickOption? -
i'm trying use successfactors odata api update information(gender,industry,department....) of new candidate posted.well,the gender,industry,nationality.... value in picklistoption.how can post right data update candidate's information? example:
url="https://host/odata/v2/candidate(3444)/nationality2" data= {"__metadata":{"uri":"candidate(3444)" },"nationality2":{"__deferred" :{ "uri" : "picklistoption(4450l)", "type" : "sfodata.picklistoption"},"id":"4450"}} html=requests.post(url=url,headers=headers,data=data)
error:entity key inconsistent in request, check entity key in both url path , metadata uri in payload
for comparison,the candidate(1201)'nationality set already,: https://host/odata/v2/candidate(1201)/nationality2?$format=json
{"d" : {"results" : [{"__metadata" : {"uri" : "https://host/odata/v2/picklistoption(4450l)", "type" : "sfodata.picklistoption"}, "id" : "4450", "status" : "active", "sortorder" : 1, "minvalue" : "-1","externalcode" : null, "optionvalue" : "-1", "maxvalue" : "-1","childpicklistoptions" : {"__deferred" : {"uri" : "https://host/odata/v2/picklistoption(4450l)/childpicklistoptions"}}, "parentpicklistoption" : {"__deferred" : {"uri" : "https://host/odata/v2/picklistoption(4450l)/parentpicklistoption"}}, "picklistlabels" : {"__deferred" : {"uri" :"https://host/odata/v2/picklistoption(4450l)/picklistlabels"}}, "picklist" : {"__deferred" : {"uri" : "https://host/odata/v2/picklistoption(4450l)/picklist"}}}]}}
Comments
Post a Comment