web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get the workflow details of the given entity

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    on at

    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"

  • Rajkumar Rajaraman Profile Picture
    on at

    Also refer this also:

    develop1.net/.../How-to-change-process-and-stage-programmatically.aspx

  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans