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 / Map datatable or in ge...
Power Automate
Unanswered

Map datatable or in general a variable in power automate desktop

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

is there a possibility to have this selector (image below) in power automate desktop. I would need the possibility to read a data table, and, for example, add a custom column based on another column value... so mapping an array to a custom one.

 

I want to avoid looping the datatable with the loop connectors in power automate desktop since they are really really slow.

 

Thanks!!

Capture.PNG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Yes, it's possible. Please follow the screenshots below:

     

    Observe third action. --> Use Set Variable action and change NewVar to JsonAsCustomObject.name

     

    Copy and paste this code in PAD development canvas to get the below actions. It will automatically convert the below code to GUI elements.

     

    SET NewVar TO $'''{\"name\":\"sachin\"}'''
    Variables.ConvertJsonToCustomObject Json: NewVar CustomObject=> JsonAsCustomObject
    SET JsonAsCustomObject.name TO $'''Hello'''
    SET NewVar2 TO JsonAsCustomObject.name

     

     

    Hope this helps 🙂

     

     

    sakula1996_0-1616010755910.png

     

    sakula1996_1-1616010774623.png

     

    sakula1996_2-1616010792601.png

     

    sakula1996_3-1616010813826.png

    sakula1996_5-1616010876442.png

     

    sakula1996_4-1616010828548.png

     

     

     

     

  • burque505 Profile Picture
    398 on at

    @Anonymous, that is just as slick as it can be! 👍👍👍

    I had no idea you could drop code into the PAD development canvas. Just tried it, works great.

    Regards,

    burque505

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @burque505  awesome 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous , thanks but how I can apply this solution with a JSON with multiple childs?

     

    For example I have this JSON:

    {
    "1": {
     "ID": "SGML",
     "SortAs": "SGML",
     "GlossTerm": "Standard Generalized Markup Language",
     "Acronym": "SGML",
     "Abbrev": "ISO 8879:1986"
    },
    "2": {
     "ID": "SGML",
     "SortAs": "SGML",
     "GlossTerm": "Standard Generalized Markup Language",
     "Acronym": "SGML",
     "Abbrev": "ISO 8879:1986"
    }
    "3": {
     "ID": "SGML",
     "SortAs": "SGML",
     "GlossTerm": "Standard Generalized Markup Language",
     "Acronym": "SGML",
     "Abbrev": "ISO 8879:1986"
    }
    }

    and I want, for each child "1", "2", "3", create another item based on the concatenation of "ID" and "Abbrev". With the "select" connector in the service, I can do something like this:

    json(
     concat(
     '["',
     item()?['ID'],
     '","',
     item()?['Abbrev'],
     '","',
     concat(item()?['ID'],item()?['Abbrev'])+'"',
     ']'
     )
    )

    So create an array with square brakets, and insert a custom item (in this case is the concatenation of two other items). 

    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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard