Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Unable to pass HTML content to setFormNotification method for unified interface(UCI)

Posted on by 25

I'm fixing issues that we are seeing while moving to on-prem CRM9 UCI application. We used to pass HTML code to the message in (<any>window).Xrm.Page.ui.setFormNotification() and formContext.ui.setFormNotification() but looks like HTML tags are not supported in Unified interface (UCI)


I tried to use the following way to achieve this but it didn't work - https://www.itaintboring.com/dynamics-crm/how-to-turn-this-poor-one-liner-into-a-nice-multi-line-notification/


Is there an alternate way to achieve this? I want to provide URL in notification to navigate to a record in an entity (clicking on the library hold in the above picture helped us navigate to a record in a different entity)


Is this a MS CRM limitation?

pastedimage1597663858290v1.png

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Unable to pass HTML content to setFormNotification method for unified interface(UCI)

    Hello,

    The approach used in not supported so it could not transparently transferred to the UCI.

    You can try to convert code yourself hacking the DOM structure. Also you can leave a question under the post you mentioned and ask Alex (author of the blog) for some help.

  • MohanJana Profile Picture
    MohanJana 25 on at
    RE: Unable to pass HTML content to setFormNotification method for unified interface(UCI)

    Here is the proper image

    Untitled.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans