I have a web page that has lot of webformsteps. One of the things I am trying to do is to call a soap api after step 4 is complete and using the data entered in webformstep #4 and then on the basis of the result of that api call (which will get data stored in dataverse) run the conditional web form step 5 that will check the response returned and decide whether to branch to step 6 or step 9. There are few issues I am facing.
Making the soap call is easy and I can take the data provided in step 4 and either call a Custom Action inside a dynamics or a real time workflow that will in turn make the soap call and store the data. But the real challenge is to wait for the response to be returned and stored inside the entity attribute until step 5 executes. Either way, I need a waiting mechanism before the conditional step is executed until the data is available. This seems like a fairly common usage scenario but I couldn't find anything. Please help.