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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
JS-09031509-0 3
AS-17030037-0 2
Mark Eckert 2