We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to change a Custom Objects field from null to something else.

Accepted answer
27
Views
2
Comments
edited Mar 12, 2019 7:49PM in Integrations and APIs 2 comments

Summary

Create an Incident and update the Custom Object (ParentIncident) from null to something else?

Content

Hi, I am trying to set the value of a customer object from "null" to something else like "123" for example. I attempted to craft a curl command to create an incident and set the value for a custom object using the following command. However it returns "title": "Bad JSON syntax found in the request" p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Menlo; color: #45fffd; background-color: #001222} span.s1 {font-variant-ligatures: no-common-ligatures}

 

curl -u user -X POST -H "OSvC-CREST-Application-Context:Create Incident" -H "Content-Type:application/json" -d "{\"primaryContact\":{\"id\":14602},\"subject\":\"Test Incident\"},"customFields": {"CO": {"ParentIncident": 123}"

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!