I am trying to upgrade from V8 to V13 in calling SendRazorEmail
In my original code I have
var workflowType = (BaseThirdPartyWorkflow)_workflowServices.GetWorkflowType(workflows.FirstOrDefault().WorkflowTypeId);
but in V13 there is no option to call GetWorkflowType()
So my first question is how do I retrieve the workflowtype as I am trying to get the properties of the workflow?
Then when I call:
var context = new WorkflowExecutionContext(record, form, FormState.Approved);
var result = await razorEmailWorkflow.ExecuteAsync(context);
it just returns “Failed” where razorEmailWorkflow is a new SendRazorEmail(params)
The scenario for this is that the user is navigated to make an externals site then is returned to the original site where an email, using the workflow properties, will be sent.
thanks