Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to get all dirty fields in portal's EntityForm

(0) ShareShare
ReportReport
Posted on by 745

Hi 

  Can we get a list of updated fields on an entityform on Portal by using Javascript 

Thanks

  • Verified answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: How to get all dirty fields in portal's EntityForm

    Hello,

    I don't think that there is a OOB solution for this.

    What you can do is, add a JavaScript where you add the onchange event on all the editable fields of the EntityForm and for each changed field, add its id/name to an array that you can loop them in a later stage.

  • RE: How to get all dirty fields in portal's EntityForm

    Hello Moin,

    I believe that you can create a ticket to MS support to ask them specifically for the Portal entity form.

    Thank you

  • MMK Profile Picture
    MMK 745 on at
    RE: How to get all dirty fields in portal's EntityForm

    Hi Jean

    i need the dirty fields on dynamics portal form not in CRM form

  • Suggested answer
    RE: How to get all dirty fields in portal's EntityForm

    Hello Moin,

    To get the dirty field, you will have to use this method  

    //get list of dirty fields

           oppAttributes = Xrm.Page.data.entity.attributes.get();

           if (oppAttributes != null) {

               for (var i in oppAttributes) {

                   if (oppAttributes[i].getIsDirty()) {

                       listofDirtyAttri += oppAttributes[i].getName() + "\n";

                   }

               }

           }

    You can find more here:

    www.inogic.com/.../

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans