Need to show alert message on UI Builder page

AnamN
Tera Contributor

Hi Team,

 

I have created a UI builder page and there is a button which triggers the flow. The flow is using API to collect the data from third party and in the end we have a staging table where the record is created per API call. In the staging table we have a status field which has value "Success" or "Failure" depending on the whether flow was triggered successfully or not.

Now we have a requirement that when user clicks the button there should be an alert "Syncing is in progress". Once the flow is triggered successfully and in the staging we have status as "Success" then it should remove that alert message. Also it should display as Error in case of status as Failure.

How we can achieve this is UI builder? Do we have any kind of event handler which waits for the record to get updated to a specific state?

 

Thanks,

Ali

1 REPLY 1

Kevin83
ServiceNow Employee
ServiceNow Employee

Sounds like you may want to use a record watcher data broker to monitor the record, and based on when the record changes you would trigger an alert

Screenshot 2024-10-16 at 11.17.27 AM.png

Screenshot 2024-10-16 at 11.17.49 AM.png

Screenshot 2024-10-16 at 11.18.02 AM.png

Screenshot 2024-10-16 at 11.18.11 AM.png