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

window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

(0) ShareShare
ReportReport
Posted on by 75

Hi All,

what is the latest method in v 9 to achive the functionality below  in UCI ?


window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");
setTimeout(
function () {
window.parent.Xrm.Page.ui.clearFormNotification("01");

window.parent.Xrm.Page not supported in UCI

so need to replace with supported new functions

Experts please help !!

I have the same question (0)
  • Suggested answer
    Miguel Lourenco Profile Picture
    on at

    Hi,

    Have you simply tried Xrm.Page.ui.clearFormNotification("01") ?

  • Muhammad Awais Fayyaz Profile Picture
    75 on at

    Hi actually in UCI Interface we use formContext and window.parent is not supported by microsoft. we need to convert this line of code according to latest version of CRM UCI interface

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at

    Hi Muhammad,

    Ok, so you continue using parent as stated in

    docs.microsoft.com/.../important-changes-coming

    "Although Xrm.Page is deprecated, parent.Xrm.Page will continue to work in case of HTML web resources embedded in forms as this is the only way to access the form context from the HTML web resource."

  • Muhammad Awais Fayyaz Profile Picture
    75 on at

    But what about if we want to use in JS file ??

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at

    Hi Muhammad,

    sorry I don't get it. Why would you want to use parent from a JS file? you can directly set it via formContext.ui.clearFormNotification(uniqueId)

    as stated in

    docs.microsoft.com/.../clearformnotification

    regarding parent, you can still use it as there is no other way of achieving the same thing

  • Muhammad Awais Fayyaz Profile Picture
    75 on at

    Hi Miguel,

    I am using web resource on popup of that web resource i check for some condition and if that condition doesn't meet then i am showing notification on main form

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at

    Hi,

    according to our documentation you should continue using that the way you're doing

  • Community Member Profile Picture
    on at

    Hi Muhammad,

    I am having the same issue. I was wondering if you found a solution for this? is it 100% sue that we can still use window.parent.xrm.page?

    However, when I check my solution in PowerApps, the results state that window.parent.xrm.page is deprecated. Would you please share any information?

    Thanks.

    Angela.

  • Community Member Profile Picture
    on at

    Hi Miguel,

    I am checking my solution in PowerApps and the results state the below.

    'window.parent.Xrm.Page' references or accesses a deprecated API in the client context object model. Replace this call with the following client context API: 'ExecutionContext.getFormContext'

    How is possible that we can still continue using "window.parent.Xrm.page" ?

    Looking forward to your reply.

    Thanks.

    Angela.

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

    Hi,

    Can you please check below link.

    debajmecrm.com/.../

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

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans