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 Automate / Write PowerShell scrip...
Power Automate
Unanswered

Write PowerShell script for mapping the values of 1 excel file to another Excel File

(0) ShareShare
ReportReport
Posted on by 65

Hi, I have an Input Excel File and an Input Template Excel File. I need to map the values of the Input Excel File to the Input Template Excel File. I need to write PowerShell query for it and I should run them in Power Automate Desktop using Run PowerShell Script action. 

 

Book1.xlsx is my Input File

Sumitra_Sai_0-1701072179211.png

 

Template.xlsx is my Template file

Sumitra_Sai_0-1701147479817.png

 

Kindly help me to resolve this issue.

Thanks in advance.

 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Are Excel VBA or VB Script not an option?  Just asking cuz it would be simpler. 

    if not, GPT could make quick use  of a powershell script. Should be able to upload both documents, explain what you need, and get a 95-100% accurate script. If you don’t have GPT plus, you’ll just have to explain exactly what you need done.  The new copilot preview might work also. 

  • Sumitra_Sai Profile Picture
    65 on at

    Hi @MichaelAnnis , thanks for your reply

     

    I have added placeholders in the Input Template. Now I need to generate them using XML. How to do that?

     

    Kindly help me out. Thanks in advance

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Sorry, I don't work in XML and rarely work in PowerShell.  I extensively work in VBA or we could even do it directly in PAD, but it would be slower.  VBA would handle this very quickly.  

    If you need to stick with PowerShell or XML because of limitations to your project or organization, then we can continue troubleshooting those options, but if you are not limited, and can use VBA, then I highly recommend that option as 1) it is native to Excel and 2) PAD can run the macro once it is built.

    Let me know.  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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard