Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Delete Custom Workflow or plugin

(0) ShareShare
ReportReport
Posted on by 735

I have a seemingly strange requirement.

I need to create a custom workflow to auto perform the following tasks in order

When an opportunity is closed as lost with a specific  status reason  or a status reason beggining with lets say  something like (NI). 

a) Reopen the Originating lead

b) Disqualify the originating lead with the same status reason as the Lost Opportunity (Eg if Opportinity was lost with a status reason (NI) Limited Company, set the originating lead status reason as (NI) Limited Company

c) Delete the closed as Lost Opportunity

d) send a notification email.

I can achieve the  a and C  with a standard workflow but I cant seem to set the disqualify the reopened lead with the same specific reason (The status reasons options to be set exists in both Lead and opportunity. Seems pointless but its a business requirement.

All ideas are welcome. An using CRM 2013 on Premise

Regards

Jon

 

*This post is locked for comments

  • Suggested answer
    Mamatha Swamy Profile Picture
    5,426 on at
  • johny_crm Profile Picture
    735 on at
    RE: Delete Custom Workflow or plugin

    Mamatha

    Thanks for your reply.

    I was looking for an example of a custom workflow activity to do that. Any examples?

  • Suggested answer
    Mamatha Swamy Profile Picture
    5,426 on at
    RE: Delete Custom Workflow or plugin

    Jon,

    CRM will not allow assigning option set values from another entity's option set unless they are based on Global Option set.

    As you have figured out, you can write a custom workflow activity or plugin to do this.

    Would implement the complete functionality in a plugin or workflow (using custom workflow activity) instead of doing it partly in workflow and rest in plugiin. It will help maintaining the functionality in case a change request.

    Optionally, you could use an IF Else statement to set the option set values. Not a clean solution but works if your option set values aren't frequently changing.

    Hope this helps!

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
dkrishna Profile Picture

dkrishna 6

Featured topics

Product updates

Dynamics 365 release plans