ServiceNow Scripted REST API demo | ServiceNow Create Approval API | ServiceNow integration
HTML-код
- Опубликовано: 19 окт 2024
- Hi All,
Hope you are doing great.
In today's video, we will look into Scripted Rest API as a part of the same Approval API.
In our project, we were working on the creation of an external platform through which we were required to build the capability to approve the records using the API call.
Let's first try to understand what is scripted rest API.
Scripted REST API:
Application developers can develop custom web service APIs thanks to the scripted REST API feature.
For a scripted REST API, you can define service endpoints, query parameters, headers, and scripts to manage the request and response.
Scripted REST APIs generally adhere to the REST architecture, but you can modify them to make use of various coding practices.
The Scripted REST Service form can be found under Scripted Web Services Scripted REST APIs and is used to define scripted REST APIs.
USE CASE :
Create a Scripted REST API to approve the record using the POST API
We have to pass the record id as the query parameter as an identifier to the record
In payload, we will be passing the approver and comments to be updated on the record
The user will be verified based on the roles specified on the ServiceNow platform
Hope you like this video please like follow and subscribe to get updates on future videos.
Regards,
Amit Gujarathi
Great session .. I thoroughly enjoyed 45 minutes... Script Include explanation I liked the most learnt alot from it.. Thank You.
Glad you like it. Thanks for your kind words
Thanks for the rest API demo.your video always adds value to my knowledge 😊
Great learning Video on integration🙂
Thanks allot for your kind words
Thanks for the rest API demo
I got confused in line 15(script include), so the verifyRecordAction() will check for the if the record is in requested state(result = true) and for this case we want to update the Record so in 15 line why we are using not in function as it will check for true i.e record is in requested state
Your Voice is too low.