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 !!

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    Hi,

    Can you please check below link.

    debajmecrm.com/.../

    If found helpful, Please mark my answer verified.

  • Community Member Profile Picture
    on at
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    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.

  • Community Member Profile Picture
    on at
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    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.

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    Hi,

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

  • Muhammad Awais Fayyaz Profile Picture
    75 on at
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    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
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    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
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

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

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    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
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    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
    RE: window.parent.Xrm.Page.ui.setFormNotification("Acceptable banner dimensions are 720x340.", 'ERROR', "01");

    Hi,

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 220 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 43

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans