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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans