Incident description field not updated via API call

SP6
Giga Contributor

Hi

Was trying to create incident in ServiceNow via the below API curl call but the incident description field is not updated for regular users, it works for admin though! There was an access control (ACL) for description which I deleted but still the description field is blank when incident is created.

 

Curl Call -

curl --location --request POST 'https://dev80009.service-now.com/api/now/table/incident' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic dGVzdDp0ZXN0' \
--header 'Cookie: BIGipServerpool_dev80009=2609075978.55360.0000; JSESSIONID=03AB5C528F99C3FE4CA1954E3EAA8747; glide_user_activity=U0N2MzpVb1RSTjJDSG9ZOEJTQnR2eWFIQ0tqNmRROFZCcVQzTTpPRWpoYm1jZVBML28vWktCT0E5Y2VYclNac0pldXpsQmpINlBLV251ZktrPQ==; glide_user_route=glide.e0bd65849cb91a6b8a16a2533b5fca6d' \
--data-raw '{"short_description":"short test","description":"test"}'

 

Can someone suggest what should be done here?

 

ACL which was deleted -

find_real_file.png

NO ACL for description -

find_real_file.png

Postman result with description blank -

find_real_file.png

1 ACCEPTED SOLUTION

Alok Das
Tera Guru

Hi,

Create a new ACL on incident description field as below and your issue will be resolved.

find_real_file.png

 

find_real_file.png

 

This will allow your service account to update the incident description without any role restriction.

Now, talking about the situation where OOB ACL (which you deleted) is existing.

In that case you could have done by creating another write ACL on Incident Description field with condition as below:

find_real_file.png

 

Kindly mark my answer as Correct and Helpful based on the Impact.

Regards,

Alok

View solution in original post

13 REPLIES 13

Thanks Allen for the help! Marked this helpful!

Hi,

Alright, that's fine.

Just to reiterate again, I covered creating the ACL in my post above, but also wanted to explain why you'd have to.

Thanks and take care!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Prasad Pagar
Mega Sage

Hi SP,

Did you checked with static value?

Is your Description have special characters?

Have you tried it with REST API Explorer?

Thank you
Prasad

Alok Das
Tera Guru

Hi,

Create a new ACL on incident description field as below and your issue will be resolved.

find_real_file.png

 

find_real_file.png

 

This will allow your service account to update the incident description without any role restriction.

Now, talking about the situation where OOB ACL (which you deleted) is existing.

In that case you could have done by creating another write ACL on Incident Description field with condition as below:

find_real_file.png

 

Kindly mark my answer as Correct and Helpful based on the Impact.

Regards,

Alok

Hi,

Hope you are doing well!

Just following up, did my response or the other response answered your query then please do mark the appropriate answer as Correct and close this thread.

Regards,

Alok