Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Data sources look up for single record call even when api state binded with did not change

ahmedt
Tera Contributor

Hello All,
I am trying to get value to decide what a button will do so I made look up single record and in case of its success it checks the value if true it will edit a filed in a record, then it will redirect a user to a form else, he will redirect a user directly

what I tried 
- bind the data source with api state the issue when the value In Api state do not change it does not fire the script that is bind in fetch success
- api.data.lookup.refresh() and refresh it from the event handler the issue is I cannot change the data source fetch 

// did not work
api.data.example.refresh({
     table: "sys_user",
     recordId:"62826bf03710200044e0bfc8bcbe5df1"
 });

 

0 REPLIES 0