Notifications
Announcements
No record found.
Hi,
I need to find the list of workflows and its status for the given entity through c# code.How can i do this?
*This post is locked for comments
Hi Surya,
First retrieve all processes using of GetProcessId you can retrieve workflows.
Next check with it's status based on the same
Refer this link:
extremecrm.net/.../executing-a-dynamics-crn-workflow-from-a-plugin
Hope this helps.
Regards,
R.Rajkumar
"Please mark my answer as verified if you found it helpful"
Also refer this also:
develop1.net/.../How-to-change-process-and-stage-programmatically.aspx
you can use below code to get all workflow that are specific to particular entity
var QEworkflow = new QueryExpression("workflow");
QEworkflow.ColumnSet.AddColumns("mode", "primaryentity", "name", "rendererobjecttypecode", "scope", "statecode", "type", "uniquename");
QEworkflow.Criteria.AddCondition("type", ConditionOperator.Equal, 2);
QEworkflow.Criteria.AddCondition("primaryentity", ConditionOperator.Equal, 10050); ///10050 is the entitytypecode of an entity
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2