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,...
Answered

Ribbon Buttons in a workflow or business rule

(0) ShareShare
ReportReport
Posted on by 288

Hi Guys,

I'm wondering how does one uses the ribbon buttons within a business rule or is it possible. Here are my thoughts using the opportunity entity as my example.

Our sales team is pretty good at populating the correct information, however, I want to ensure that they have all of the relevant data in place before closing out an opportunity. Currently, when the salesperson clicks on won the opportunity close window opens. I have added some additional fields to the opportunity close entity but now see i can use the relationship rules to bring the data from the opportunity close entity back to the associated opportunity.

My thinking now is to use the won button to trigger a business rule that certain fields become required. I need the data to sit at the opportunity level as the vast majority of my reports are run off this entity. 

Thanks in advance.

Regards

Jason

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Jason, 

    Unfortunately, you can't achieve it.

    If you want to make some fields become required when you click the button, you can use javascript code to achieve it.

    (1)Set field level through setRequiredLevel() function:

    setRequiredLevel (Client API reference) - Power Apps | Microsoft Docs

    How to Set Field requirement as required/mandatory based on selected option set using JavaScript and How to register function on Quick Create form in MS Dynamics 365 CRM. – Microsoft Dynamics 365 CRM (wordpress.com)

    (2)link the jd to the code through ribbon workbench:

    Link JavaScript Action with Ribbon Button - Dynamics 365 || Navigate on Button Click - YouTube

  • Jason Fleming Profile Picture
    288 on at

    Thanks very much, Leah,

    I'm def not a coder so will have to leave this and think of another way around this.

    Thanks again.

    Jason

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 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans