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 / Sending an array in email
Power Automate
Unanswered

Sending an array in email

(0) ShareShare
ReportReport
Posted on by

Hi, I am new to power automate. I was wondering is it possible to email an array that I created in office scripts? 

 

Basically I want to run a script and create a 2 d array. Then email the 2 d array. 

 

I am looking to run the code in office scripts rather than build an array in power automate. 

 

 

Thanks!!

Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @RickfromNC 

     

    I think you are trying to acheive something simmilar 

    Nived_Nambiar_0-1714413061445.png

     

     

    If yes , here is solution

     

    I have created a simple office script which returns 2d array initialized with fixed values like below

    function main(workbook: ExcelScript.Workbook): string[][] {
     // Define your 2D array content here (replace with your logic)
     const myArray = [
     ["Value 1,1", "Value 1,2"],
     ["Value 2,1", "Value 2,2"],
     ];
     return myArray ;
    }

     

    Now i used run script to run the above office script 

    Nived_Nambiar_1-1714413169699.png

     

    The result dynamic content contains the 2D array output from the office script 

    Nived_Nambiar_2-1714413241409.png

     

    Now use the same in sending email as well.

    Hope this logic helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard