Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans