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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to rewrite the con...
Power Pages
Unanswered

How to rewrite the content of existing entitylist?

(0) ShareShare
ReportReport
Posted on by 80

Hello,

I have one page with an entityform linked to custom entity(e.g: Visit) in the first div column and a list of other entity(e.g : discussions) in the second div column of the page.

I need to rewrite the content of the entitylist related to the values of some fields that i have on my entityform.

Any ideas?

Thanks.

Regards.

 

Categories:
I have the same question (0)
  • ArchitectMadhan Profile Picture
    1,584 on at

    Hi @cdamy ,

     

    As business rules in Web Portal forms will not work, we may need to use the JavaScript to achieve your objective using the HTML element ids of the Entity Form fields and on change event or button click event you can change the related field values.

     

     If you find my solution helpful for resolving the issue, then please consider Accept it as the solution to help the other members find it more quickly.

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    hi @cdamy can you give more details? is it an entity form or entity list you need to change the layout?

    can you also send snapshots of what you have currently and how you want it to look like? 

  • CDamy Profile Picture
    80 on at

    Hi @OliverRodrigues ,

    Thanks for your response, i have an entityform on one column and on the second column i have an entitylist. But the entityform and the entitylist aren't on the same entity. 

    I will send you a screenshot later, This morning i some issue to access to make.powerapps.com and don't have access to my portal.

  • CDamy Profile Picture
    80 on at

    Hi @ArchitectMadhan, thanks for your reply. I am not sure to understand what you explained.

    You propose to use DOM and javascript to manage my results on the existing entitylist?

  • ArchitectMadhan Profile Picture
    1,584 on at

    Hi @cdamy ,

    Yes, you can use HTML DOM of the entity list and using JavaScript to modify the Entity list (discussions) values (dynamically) based on the values you set in the entity form (visit). But still, once the entity form (visit) is submitted, all those changes you shown dynamically in the related entity list view (discussions) should be updated at the backend using API call or using Flow.

     

    If you find my solution helpful for resolving the issue, then please consider Accept it as the solution to help the other members find it more quickly.

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    okay, I think have an idea of your scenario, but a few more questions as well

    when you say "rewrite the content of the entitylist related to the values of some fields on entityform."

     

    so I am a bit confused now.. if you have an Entity List showing records from Table A.. and an Entity Form showing details of a single record from Table B... why would you overwrite the data from Table A with data from Table B?

     

    • should these two tables be related? perhaps there is a relationship missing here
    • technically speaking, via JS you can read data from the Entity Form and loop through the records in the Entity List and overwrite the data

    but before getting to the code.. I do think we need to understand more the scenario

     

  • CDamy Profile Picture
    80 on at

    Hi @OliverRodrigues ,

    Thanks for your reply.

    Let me try to describe the scenario. We have 2 steps.

    step1 i load  a table A on create mode, i create table A record.

    step2 i reload a table A record on readonly mode with a list of table B records.

    Table B is related to Table C and Table D which have relationship with one or two fields lookup on table A.

    Thanks.

    Regards

     

  • CDamy Profile Picture
    80 on at

    Hi @ArchitectMadhan ,

    Thanks for your reply, Okay i see. So i should integrate the api call in my script to update the entitylist? or i should create a flow? which will trigger my flow?

    Thanks.

    Regards

  • ArchitectMadhan Profile Picture
    1,584 on at

    Hi @cdamy ,

     

    Yes, you should integrate the api call (to Power Automate Flow) in my script to update the entitylist(discussions). And the Flow will take care of updating the records at the backend. you are just going to call the Flow and pass necessary parameters.

    Here is the exact scenario of calling the Power Automate Flow to update the record using HTTP request from Power Apps Portal.

    https://softchief.com/2021/07/09/how-to-call-power-automate-flow-from-power-portal-using-http-request-trigger/

    If you find my solution helpful for resolving the issue, then please consider giving thumbs up and Accept it as the solution to help the other members find it more quickly.

  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    can you add a few snapshots? a mock up of what you have and how you want it to be

     

    sorry I keep asking for more stuff instead of bringing a solution.. but I keep thinking there might be an easier way to achieve what you want 

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 48

#2
Valantis Profile Picture

Valantis 46

#3
rezarizvii Profile Picture

rezarizvii 43

Last 30 days Overall leaderboard