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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Only System Admin can Reopen an Opportunity - WF tools

(0) ShareShare
ReportReport
Posted on by 175

Hi all, I have a requirement that only a System Admin can Reopen (change status from Lost OR Won to Open) an Opportunity.  I see a msdyncrmWorkflowTools step called 'Check User in Role', but can't seem to get this working. 

Basically the scenario is on an Inactive (Won or Lost) record, the WF would check on change of status to see if the user is Role = System Admin. 

-If true, it allows the status to change to Open. 

-If false, it stops workflow as Canceled and displays the error. 

-Nothing should occur when changing status to Won or Lost, only when the record is already Won or Lost and is attempting to be reopened. 

Has anybody solved this scenario before?  Let me know if so - thanks in advance!  

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi Chris,

    You can implement this scenario with a plugin.

    Please refer to this Thread: community.dynamics.com/.../oppurtunity-reopen

    Let me know if you need more guidance.

  • William Bradley Profile Picture
    175 on at

    Thanks for the quick response!  I know a plugin could achieve this, but I was hoping for a non-code approach using the WF tool above...thanks!  

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi,

    Maybe you can try something with security roles.

    When an opportunity is closed it will be assigned to an admin, you can use a workflow for this.

    Then, users with a specific role can't reopen the opportunity.

    Edit: 

    Yes, it works.

    I create a new business unit which contains users with System Admin as security role. 

    I create the workflow to assign the opportunity to an admin when the opportunity is closed. 

    I modify the user security role in order to update only records whithin his business unit. 

    The user can't reopen the opportunity. 

  • William Bradley Profile Picture
    175 on at

    This seems like it would work, but could mess with Dashboard and Charts on Won and Lost Opportunities, since those Deals would be reassigned to one person.  I will look into it, but I would really like to get the other MSDynamicsCRM WF Tools workflow to work.  That ideally would, on change of status (to Won or Lost) from Inactive to Active, check Sec Role (Sys Admin) and then prevents the user, if it does not have that Sec Role, from Reopen Opportunity by using the STOP Workflow step with an error message.  

  • meelamri Profile Picture
    13,216 User Group Leader on at

    I understand and you are 100% right ! I forgot the functionnal part.

    I will check the other possibilities.

  • William Bradley Profile Picture
    175 on at

    I got it to work, here was the solution:

    pastedimage1588617485500v1.png

    Thanks again for your help! 

  • meelamri Profile Picture
    13,216 User Group Leader on at

    Good job !

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans