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

Perform an action on click specific button

(0) ShareShare
ReportReport
Posted on by 15

docs.PNG

HI all

I created flyout button for this record and the name is RECORD STATUS in that added 2 more buttons like Active , Inactive...

my task is when i click on active button the alert will be show in the box and action should be perform on specific button click like below image

docs2.PNG

how to approach this task?

thank you in advance 

I have the same question (0)
  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    You can achieve this by using OOB custom action added on ribbon.

    1. Customize command using right click on Activate and Deactivate out of buttons available in CRM.

    2. Check command name and add accordingly on your fly-out buttons.

    Please refer below url for your reference (to customize button and command)

    pravinpawarweb.wordpress.com/.../

  • Microsoft Dynamics Forum Profile Picture
    15 on at

    if i select active button then popup will be shown like....

    alert : confirm activation

              Active     Cancel

    i want to get out like above brother

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    You can use your own JS to achieve your requirement. Create new command and add below code in action.

    var confirmationButtons = [
                    new Alert.Button("Activate", function () {
                        // create the SetState request
                        //Add web api code Activate your record
                    }, true, false),
                    new Alert.Button("Cancel", function () {
                        Alert.hide();
                        }
                    }, true, false)
                ];
                Alert.show("ADD Your Message on dialog here", "",
                    confirmationButtons, "QUESTION", 500, 210, null, false, 30);

    You will need to download Alert.js lbrary from below github link.

    https://github.com/PaulNieuwelaar/alertjs

    You can read about this library on github wiki page. This library is fully supported on UCI and we have used this in our recent project.

    If found helpful, Please mark my answer verified.

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