Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

disable workflow automatically

(0) ShareShare
ReportReport
Posted on by 2,397

is there a way to disable the workflow or plugin automatically?

*This post is locked for comments

  • sdnd2000 Profile Picture
    sdnd2000 2,397 on at
    RE: disable workflow automatically

    Is there anyway to disable from data migration side, I am using kingswaysoft.

  • Verified answer
    Luke Sartain Profile Picture
    Luke Sartain 1,266 on at
    RE: disable workflow automatically

    You can use the following.  Obviously replace the guid with your workflow id.  

    SetStateRequest deactivateRequest = new SetStateRequest
    {
    EntityMoniker =
    new EntityReference(Workflow.EntityLogicalName, new Guid("62479592-BAF3-43DE-A610-3AEBB4043C00")),
    State = new OptionSetValue((int)WorkflowState.Draft),
    Status = new OptionSetValue(1)
    };
    _serviceProxy.Execute(deactivateRequest);

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans