Using REST API explorer to click on a UI Action on change form

Nitesh Balusu
Giga Guru

Hello Developers,

 

Please let me know how we can use the REST API explorer to and make an inbound rest call where we create a new record and click on a specific UI action on the change form. For example our change form contains UI Actions like Request Approval, Save, Fill out Risk Assessment, Submit etc. 

If I fill out the form and hit on send, the REST call is directly submitting the record, I am unable to figure out how to make it click on any other UI Action.

 

Thanks.

1 ACCEPTED SOLUTION

Jon Barnes
Kilo Sage
You can’t click a ui Action from a rest call. You could use one of these options: 1. Create a business rule that does the same thing as your ui Action, and trigger that with some condition which you will make sure evaluates true while inserting with the rest call. 2. Create a scripted REST API that will take the post of your data, insert the record, then run your custom logic.

View solution in original post

6 REPLIES 6

Hello, I am trying to run a ui action (button) on a record through a rest api call,
i tried what was described in that link you provided? have you gotten this to work?

 

This is what i tried
https://community.servicenow.com/community?id=community_question&sys_id=8ad40ec5db3ec4582be0a851ca96...

Andre Moreira1
Kilo Sage

Hi,

 

Additionally this link https://servicenowthink.wordpress.com/2019/10/15/call-any-ui-action-with-rest-api-or-ajax-ootb-updat... was very helpfull to Call UI Actions by API 😉

 

[]'s

Andre Moreira