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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

new ui bpf headers set field value programatically via javascript the value is not changed until the header is refreshed

(0) ShareShare
ReportReport
Posted on by 10

Hi all,
I have problem with fields ​​in bpf headers (sometimes it will work),
when value is set programatically via javascript using setValue to null - Xrm.Page.getAttribute(FieldName).setValue(null),
the value is not changed until the header is refreshed, I mean when I click on the header again.
I can see a value that is no longer in the background.
any ideas?
Thanks!
I have the same question (0)
  • Suggested answer
    Menna El Sayed Galal Profile Picture
    Microsoft Employee on at

    Hello,

    I would like to suggest using form save inside your javascript https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data/save

    and give it a try , also I noticed that you are using xrm.page , it will deprecated so we recommend to use ExecutionContext.getFormContext instead.

    Here is out documentation for the new changes https://docs.microsoft.com/en-us/power-platform/important-changes-coming#some-client-apis-are-deprecated

    Also I am wondering if this problem with only bpf headers fields or to the whole form , I think you can also try to make the same in a different form or entity.

    Please reply me back with your findings and if the problem still exist , will be glad to support you.

     

    Thanks,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 85

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 78 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans