Hello everyone! I'm really struggling to find a wa...
# suitescript
l
Hello everyone! I'm really struggling to find a way to set the value of a custom segment field on a record using Netsuite's REST API. My request is coming back as successful but the field stays empty... I've been trying a bunch of things including
{"cseg_cust_segment_id": VALUE_ID}
and
{"cseg_cust_segment": {"id": VALUE_ID}}
but nothing seems to work. If someone could point me in the right direction that would be greatly appreciated šŸ™‚
āœ… 1
z
• Could you confirm if you are able to set the field from NetSuite's User Interface? • Did you try to set it using Administrator Role from Rest API?
l
I can confirm I'm able to set it from the GUI. I'll try to play around with the permissions and let you know, thanks !
That was it! I had no idea the role needed to be added to the custom segment in order for it to work. The complete lack of feedback from the API makes it so tedious to debug... Anyway, big thanks to you ! šŸ‘
šŸ™Œ 1