In Unified Service Desk, the ExecuteOnDataAvailable action allows you to wait until data becomes available before executing a subaction.
For example, let’s say we want to display a webpage of a map of a zip code if the contact’s zip code is populated.
To do this, first confirm if the UII action ExecuteOnDataAvailable exists for your hosted control, and if not, create it:
Next, create an action call. The ExecuteOnDataAvailable action takes an optional Milliseconds time to wait for the replacement parameters to become available. If no time-out is specified, it will wait indefinitely or until the session ends.
Other parameters indicate which data to look for – in our case, [[contact.address1_postalcode]]. We will not define a timeout:
Now create a subaction.
We have a hosted control called Map, of type Standard Web Application. We will display the map in this hosted control:
We will open Google Maps to display the map and pass the zip code [[contact.address1_postalcode]] as a parameter:
We’re now ready to test our configuration.
Open USD and select a contact. Note the Map hosted control has not loaded at this point as it is waiting for data:
Enter a ZIP code:
The Map hosted control will load as soon as Save is pressed on the contact page, and display the map of the zip code entered:
I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.
IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.
THANK YOU, AND LET'S KEEP LEARNING TOGETHER.
CARL