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 Automate
Unanswered

Dictionary concept

(0) ShareShare
ReportReport
Posted on by 39

Can we implement the dictionary concept in PA desktop preview 

  • adijain Profile Picture
    Microsoft Employee on at

    Hello @soumiya,

     

    Could you please clarify what you mean by "dictionary concept"? If you are referring to dictionary variables then PAD preview does have similar functionality of a dict variable in the form of DataRow variable.

     

  • soumiya Profile Picture
    39 on at

    Thanks for your reply...

    @adijain  I am referring to dictionary concept of getting the value based on key eg: config(URL) will return me the URL that is present excel.

     

     

    Regards

    Soumiya

     

     

  • adijain Profile Picture
    Microsoft Employee on at

    @soumiya Thanks for the clarification. Yes, similar functionality is available in PAD in the form of a DataRow. E.g. lets say you have a DataRow variable called %row% with columns "Name" and "URL" and their values as "Microsoft" and "www.microsoft.com" respectively. Then, calling the variable %row["URL"]% will give you the value "www.microsoft.com" and %row["Name"]% will give "Microsoft". Hope it makes sense. 

  • soumiya Profile Picture
    39 on at

    Thanks for your support @adijain 

    But when i call %row[Microsoft]% it should return me as www.microsoft.com

    Is this possible

  • HellitonWoo Profile Picture
    39 on at

    I think this is an interesting topic!

     

    @adijain  Means we can use the data table header as the key and the first row as the value. Or simply just 1 row of data table.

    But in this case, how to create a "datarow" that is so dynamic which can increase and decrease on columns?

     

    And currently, this "datarow" has to come from an actual Excel, right? Is there any way to create the "datarow" from thin air? 🙂

     

     

  • PetrosF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @HellitonWoo 

     

    Datatables are the output of several PAD Actions, like "Read from Excel", "Read from CSV", "Extract data from web page", "Extract data from window".

     

    Creating datatable variables from scratch is not yet available, but certainly in our roadmap.

     

    I hope the above makes sense.

  • prasanna_m94 Profile Picture
    4 on at

    Hi Team,

     

    Creating datable is possible but converting it into datarow is again a difficult task in PAD. Please help me out on this.

     

    Thanks in advance.

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I thought if you had a DataTable, %DataTable[0]% is your first data row. Am I missing something? Maybe I’m not understanding the question. 

  • prasanna_m94 Profile Picture
    4 on at

    If I have a table in excel like 

    Name   Age

    X           10

    y            20

     

    When i get the value into %datatable%, i need to search the age of X(dynamically) instead of searching with index for eg: i need to search %datatable[x]% instead of %datatable[0]%

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I don't know how many rows you have, but if not too many, something like a For Each %CurrentItem% which I believe when put to a datatable means per row, if %CurrentItem[0]% = "X", then Do something.  It's a long work around, but it will get the job done.

     

    On the other hand, you could put the datatable into excel and might actually be faster to get what you need there through Vlookups or VBA.

     

    Best of luck!

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 233 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 178

Last 30 days Overall leaderboard