Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hi I'm testing put method in rest message but its not updating the record. I attached the screenshot

Bruce lee
Tera Contributor

d.PNGd2.PNGd3.PNG

17 REPLIES 17

@Bruce lee Could you please modify as below, 

 

I assume that, this "6dcc6e7297d1021040c0bd0de053af9e" sys id of the story record. Post identifying the record pass this short description value and check once. 

 

https://dev226262.servicenow.com/api/now/table/rm_story/6dcc6e7297d1021040c0bd0de053af9e/${short_des...}

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Hi @Sujatha V M 

It's not working as expected

 

d7.PNGd8.PNG

Amit Pandey
Kilo Sage

Hi @Bruce lee 

 

You need to change your endpoint accordingly for short_description as suggested by @Sujatha V M 

 

Regards,

Amit

It seems you're using OOB Table API endpoint URL for which the format is as follows-

 

PUT https://your_instance.service-now.com/api/now/table/{tableName}/{sys_id}

 

To update the short_description you just need to pass the following request body-

 

{"short_description":"test"}

 

The screenshot you've shared is little confusing- you're trying to update a custom field i.e. u_short_description but you're checking short_description field. You need to check for the custom one in response.

 

Please mark my answer helpful and correct.

 

Regards,

Amit