Skip to main content
Community site session details

Community site session details

Session Id : OU/wrhI65BPCG7BoQ5vNKu
Power Pages - General Discussions
Answered

Alerts in Power Pages

Like (0) ShareShare
ReportReport
Posted on 11 Apr 2024 13:13:45 by 48

Hi.

I would like to ask what is the best approach to configure alerts in Power Pages?
I know there is an "OnSucces" option for Basic Form, but is it possible to provide a custom alert, for example, about a failure when adding a record?

I noticed that when you use Virtual Tables and try to add a record, but from an external data source the validation fails, then dataverse can provide an alert from the external source and show it on the screen.

hubjes_1-1712841127547.png
I wonder if I can use this in Power Pages and set up alerts on the external source page?

Any knowledge about configuring alerts will be very useful 🙂

 

Categories:
  • hubjes Profile Picture
    48 on 17 Apr 2024 at 10:44:13
    Re: Alerts in Power Pages

    Thanks for reaching out.
    I think that Dynamics 365 Business Central doesn't support JQuery and to be honest i don't understand how I can connect alerts from Business Central to Dataverse with that.

  • Abhishek Bihani Profile Picture
    45 on 16 Apr 2024 at 11:47:44
    Re: Alerts in Power Pages

    @hubjes I suggest you can go with Jquery confirm (client side library) to show alert or confirmation message.

     

  • Verified answer
    oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 15 Apr 2024 at 07:19:07
    Re: Alerts in Power Pages

    I haven't worked on integrating BC to power pages, so not sure how much you can change the API response to achieve that.

    If you have access to manipulate the way the server-side gives the error, that would probably be the best option. of not, I think the only way here is to apply JS on the load of the page, check if you have the alert with that specific text and then change the content. 

  • hubjes Profile Picture
    48 on 15 Apr 2024 at 06:59:41
    Re: Alerts in Power Pages

    I understand that an alert, if adding records failed, is generated from the dataverse and will be displayed on the screen. However, I wonder if I can change the content of this alert to make it more user-friendly, for example.

    The second thing is that I am using virtual tables to connect to Business Central data.
    I noticed that when validation on the Business Central side fails, Dataverse warns me:
    "There was an error in saving this record," and then it will add the content of the alert that I have configured on the Business Central side.

    hubjes_0-1713164155954.png

    And I wonder if I can use that response from BC API to configure my own alerts in Power Pages?



  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 12 Apr 2024 at 07:11:46
    Re: Alerts in Power Pages

    Hi, I am not sure what you are trying to achieve, if you get an error when adding a record you should get a red alert box already.

    Can you provide a mock of what you are looking for?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete