- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 11:23 AM
Hello all! I am trying to figure out how to leave a "additional comment" from the api to a Request Item (RITM). See the screenshot for reference on where i am referring to. So far, i have tried to leave a comment on a RITM via the sc_req_item table but i get hit with the ACL error saying "failure due to security constraints". Im not sure if this error is accurate or i am just not sending the correct request body to the correct table.
When i send a POST request to the sc_req_item table, i use this request body:
{
"title": "Path 2 Production - Use Case Intake - Amazon Web Services (AWS)",
"entries": [
{
"comments": "test comment"
}
],
"url": "sc_req_item.do?sys_id=<sys_id of RITM>&sysparm_view=",
"table": "sc_req_item",
"read": "no",
"table_key": "<sys_id of RITM>",
"id_type": "Requested Item"
}
And also:
{"number":"<sys_id of RITM>","comments":"test"}
Any idea on how to be able to leave a comment via the api?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 11:22 PM
Hi @KhilielB
I will suggest you to use PUT instead of POST to send additional comments. You can refer below post for better understanding :
Please note that if you are getting failure due to security constraints after this as well, you need to check your user roles as the user is not having adequate permissions to post the comment on the RITM.
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 11:22 PM
Hi @KhilielB
I will suggest you to use PUT instead of POST to send additional comments. You can refer below post for better understanding :
Please note that if you are getting failure due to security constraints after this as well, you need to check your user roles as the user is not having adequate permissions to post the comment on the RITM.
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-24-2024 09:08 AM
Thanks for this! It seems to work perfectly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-23-2024 11:26 PM
Hi @KhilielB ,
Use the sys_journal_field Table.
And use the link as provided above :-
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/