Dear Team,
Has anyone been able to update Lookup values/ Department OBS values via REST API? Can you please help me with the JSON format in which the values have to be passed to update the Lookup or the OBS attribute?
I tried the below but it is not working:
For updating Primary Role
{"uniqueName":"R1"
}
,"primaryRole":{"displayValue":"Architect","_type":"lookup","id":"5002005"}
For Updating Department OBS:
{"uniqueName":"R1"
, "resdeptobs":{"displayValue":"VicTrack > Business Services","_type":"obs","id":"5000003"}
}
Any help is greatly appreciated.
Thanks,
V
Hi Vasanth_RevIT
For updating lookup values, you just need to pass lookup's internal ID.
For example i have a lookup based attribute (lkp_attribute) and lookup values as
code: lkp_1 ; name: Lookup Value 1
code: lkp_2 ; name: Lookup Value 2 and so on.
now we wants to update one of instance to lkp_2 then my payload will be as below:
{"lkp_attribute": "lkp_2 " }
I have used this for updating Lookup however im not sure with OBS, you need to try OBS with its OBS id.
Let me know if this work for you
Regards,
Prashank Singh