web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Alert a popup message ...
Power Apps
Unanswered

Alert a popup message before closing the tasks for a record

(0) ShareShare
ReportReport
Posted on by 223

Team,

 

I want to alert a pop up message or any recommended work around before closing an Order with tasks open in status.

Below are the steps:

1.  Created a order

2.  Created few "Tasks" for the above created order with open status

3.  When the Order is marked as "Resolved" a pop up message should display an error message saying " There are pending Open tasks...."

 

 

 

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    You're probably looking for the openAlertDialog  function in the client API, or maybe openErrorDialog 

  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @skolisetti,

     

    Customize the Button using Ribbon Work Bench (Over ride the function) with your custom function and add a logic based on @cchannon comments then call the same function. Let me know if you need more clarity so that i can provide a solution for the same 

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

  • skvsp Profile Picture
    223 on at

    Ram thanks for your response. Can you please add more details or steps ? like i said if there are 5 to 10 tasks in open state the logic should check all the tasks when marked as Resolved if not trigger pop up alert.

  • Verified answer
    Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @skolisetti,

     

    As per out of the box button, there is some predefault function will be available. In Your Case its in order Entity.

     

    1. Create an solution and Add an Entity Called Order

    2. Import Ribbon Work bench Solution attached here

    3. Open the Created Solution in the Ribbon Work bench

    4. Click On Close Order Button then Right Click and Click Customize Command

    5. Then Click On Command And Copy the library name and Function Name in Note Pad

    6. Now Create a new Web Resource and inside the code

              --> Make an ODATA Call and Retrieve Tasks with Active Status against this Order. 

              --> If the Count is Greater than Zero Show Alter Dialog as "There is already Task Available"
              Else

              --> Paste the Function which you Copied at the point number 5

    7. Now Point No 6 Web Resource and Function Name in the Ribbon work Bench by Replacing Point Number 5.

    8. Click on Publish

     

    Thats it 🙂

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard