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

Community site session details

Session Id :
Power Pages - General Discussions
Unanswered

Copy Data from a List to another

(1) ShareShare
ReportReport
Posted on by 29
Hello everybody
Scenario:
I've two twins table
TABLEA with title, field1 and field2
TABLEB with title, field1 and field2
 
Both column Title has some data but some is different
I need your help: I would  create a button that Check if title are same and if match copy field1 and field2 from TABLEA to TABLEB
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Shafiuddin Profile Picture
    8 on at
    Copy Data from a List to another

    Hello Anurchis,

    You can achieve your requirement using either of the following approaches:

    1) Client-Side Approach (Using Web API in Power Pages)

    This method runs directly in the browser using JavaScript.

    1. Enable Web API :Make sure your tables are available to use with the Web API in Power Pages

         
    2. Set Up Table Permissions and Web Roles

      • Give users the right permissions (Read/Write) on TABLEA and TABLEB.
      • Assign these permissions to the correct web roles (like Authenticated Users)  

    3. Add a Button to the Basic Form : Insert a custom button (e.g., “Copy Data”) on your page or form.

         
    4. Write JavaScript Using Web API:
      • Fetch records from TABLEA

      • Find matching records in TABLEB (where titles match)

      • Update field1 and field2 in TABLEB with values from TABLE  

     2) Server-Side Approach (Using Power Automate Flow)

    1. Add a Custom Button to Your Basic Form: Add a button like “Copy Data”
    2. Write JavaScript to Trigger a Flow: When the button is clicked, send a request to your flow (HTTP trigger).
    3. Create the Power Automate Flow

    Example Flow Logic: (Trigger): When an HTTP request is received

    Action 1: List all rows from TABLEA
    • Loop: For each record in TABLEA:
      • Check if a record with the same title exists in TABLEB

      • If a match is found: Update the field1 and field2 in TABLEB using values from TABLEA

    Below Link will be useful to understand original concept of Web Api and Power pages connector in power Automate
    https://shafiuddinmicrosoftdynamics365crm.wordpress.com/2025/05/08/how-to-update-records-in-power-pages-using-web-api/
    https://shafiuddinmicrosoftdynamics365crm.wordpress.com/2025/04/06/how-to-use-the-power-pages-connector-in-power-automate-for-real-time-data-validation/
     

    If this answer helped, please consider marking it as Accepted to help others in the community.

     

  • Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Copy Data from a List to another
     
    Did you resolve this issue? If so can you share what you did?
  • Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Copy Data from a List to another
     
    Just to be 100% clear, you want this in the Power Page itself?
     
    Is this a 1 time thing or an ongoing thing?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 48 Super User 2025 Season 2

#3
KevinGador Profile Picture

KevinGador 44 Super User 2025 Season 2