Creating the record through REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2022 07:55 PM
Hi,
I want to create new record in SNOW table when user clicks the url (outside of snow platform it may be link in the email etc) and planning to use REST API for this. Can anyone please advise how to achieve this requirement. This requirement is to avoid user to login to now platform but create the record with all static values.
Please let me know if any other approach is there to achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2022 08:17 PM
Hi
you have to create a Scripted REST API and use there the RESTAPIRequest object https://developer.servicenow.com/dev.do#!/learn/courses/quebec/app_store_learnv2_rest_quebec_rest_in... to fetch the URL parameter values.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2022 11:08 PM
Thanks for sharing the documentation. I am able to create the record by calling URI and HTTP method through REST API Explorer but how do make the url which can be called from an email. Please advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2022 05:38 AM
Hi
please read the following article which explain exactly what you have to do: https://snprotips.com/blog/2021/1/20/processors-srapis-and-how-to-run-a-script-and-redirect-a-user-f...
Maik