The CreatorCon Call for Content is officially open! Get started here.

Triggering UI Action through Rest Api

Gajendra Singh1
ServiceNow Employee
ServiceNow Employee

I'm trying to trigger UI action through the Rest API call. How can I trigger UI action present on the Table level and not the record level. Being at the table level, 'sysparm_sys_id' is not available. This is causing the rest call to fail with the below error:

{
"error":{
"message":"A JSONObject text must begin with '{' at character 0 of ",
"detail":"A JSONObject text must begin with '{' at character 0 of "
},
"status":"failure"
}
 
URI - https://xyz.service-now.com/api/now/ui/ui_action/5dcda6a8db588c10219f904bdb961911?sysparm_table=u_cid_configuration_parameters_list&sysparm_sys_id=&api=api
 
body - { "fields": [ { "sys_id": "" } ] }
 
is this even possible to perform it on table-level UI Action?
 
5 REPLIES 5

Hi Sai,

 

Can we call a Ui action which is on the form level via API call?

for example : transfer case ui action on HR Case table