Skip to main content

Notifications

Announcements

No record found.

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!
  • Suggested answer
    Menna El Sayed Galal Profile Picture
    on at
    RE: new ui bpf headers set field value programatically via javascript the value is not changed until the header is refreshed

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,025 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans