We have customer onboarding process that requires the customer to enter and upload some data.
After creation of a record, a background process starts, depending on the outcome, the customer needs to update the existing data or add additional data.
The web form functionality examples that I have seen, do not demonstrate a "waiting for the background process to finish scenario" .
I am asking this question because when we try implementing this flow using web form we get the following error:
The log has a message that tells us that a System.Threading.ThreadAbortException (it just takes too long)
When we look in the web form session entity, we can see the following steps:
{"ID":"de6d443e-923c-e811-a954-000d3a3099e5","Index":0,
"IsActive":null,"PreviousStepID":"00000000-0000-0000-0000-000000000000",
"ReferenceEntity":{"ID":"a6e86f52-c73c-e811-a822-00155dd3eaf1","LogicalName":"eof_chatbotbuilder",
"PrimaryKeyLogicalName":"eof_chatbotbuilderid"}},
{"ID":"9fefbf32-a03c-e811-a954-000d3a30db97","Index":1,"IsActive":true,"PreviousStepID":"de6d443e-923c-e811-a954-000d3a3099e5",
"ReferenceEntity":{"ID":"a6e86f52-c73c-e811-a822-00155dd3eaf1","LogicalName":"eof_chatbotbuilder","PrimaryKeyLogicalName":"eof_chatbotbuilderid"}},
{"ID":"2622c42d-c43c-e811-a954-000d3a30db97","Index":2,"IsActive":true,"PreviousStepID":"9fefbf32-a03c-e811-a954-000d3a30db97",
"ReferenceEntity":{"ID":"00000000-0000-0000-0000-000000000000","LogicalName":"eof_chatbotbuilder",
"PrimaryKeyLogicalName":"eof_chatbotbuilderid"}}]
The strange part is that the referenceEntity id is 0000 in step 2, where it is populated with the expected value in previous steps.
The first step is an insert step
The second step is a condition
The third step (index:2, which causes this issue) is the the result of the condition when the condition fails...
So I was thinking I could show a "please wait and come back" screen for this state and when the users opens the item from the list, the condition is re-evaluated , but right now I cannot get into the third step.
When I change the condition (so that it is always true) we do get into the next step (add additional information) and there also the referenceEntity id is 0000 , so I am not sure if this tells us anything.
When I remove the condition and point (always) to the third step, the web form works. So there is something in the handling of the condition that maybe causes a loop (we are on the same entity) ?
*This post is locked for comments