Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Does ExecuteWorkflowRequest run synchronously when wf is configured synchronous?

$
0
0

Hello,

Scenario is that I want to generate a document template from code, to save it in SharePoint. I am using predefined "SetWordTemplate" action. I tried first to use it directly via OrganizationRequest like described here: https://crmtipoftheday.com/608/generate-documents-in-code/ , but while testing, I discover that it is not synchronous, I was not able to reach the created note right after the execution every time.

However, it seems to be working with synchronous workflow which I start from code with ExecuteWorkflowRequest. I reach the note every time after that request. I tested in a loop, executed request 10 times, deleting note every time right after the request.

I would like to confirm if the behavior will be consistent in all environments, also when system is under a pressure.

Thanks in advance


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>