I have created a new Business Process flow and exported to a solution and downloaded xaml from workflow folder.
I am trying to create BPF with code with below code but encountered with an error "An unexpected error occured". If I see inner details error shows as "the given key was not present in the dictionary".
Workflow workflow = new Workflow()
{
// These properties map to the New Process form settings in the web application.
Name = "CountryApprovalworkflow12",
Category = new OptionSetValue((int)WorkflowCategory.BusinessProcessFlow),
BusinessProcessType = new OptionSetValue((int)WorkflowBusinessProcessType.BusinessFlow),
PrimaryEntity = _countryEntityName,
Xaml = xamlWF,
};
_workflowId = _serviceProxy.Create(workflow);
Any suggestions will be helpful.
Thanks,
*This post is locked for comments