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 / Create Dictionary Obje...
Power Automate
Answered

Create Dictionary Object using JSON file in Power Automate Desktop (Solution Attached)

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello All,

 

Helping out tech community,

 

Issue ? Create Dictionary Object using JSON file in Power Automate Desktop

Here below the solution,

 

Step 1 : Create a .json file like below,

 

Capture1.JPGCapture.JPG

 

Step 2 : Use "Read from text file" action and locate .json file (Make sure Store content as : Single Text Value)

 

Capture2.JPG

 

Step 3 : Use "Convert JSON to Custom Object" action

 

Capture3.JPG

 

Step 4 : Then that's it call variable like below, 

 

Capture5.JPG

 

See the Output,

 

Capture6.JPG

 

I'm,

Balamurugan2022

 

I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Replying to my post since marking as solution

  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    Thank you for the valuable post.

    This is more of a QnA section.

    In order for your post to reach a wider audience all solutions are posted in the Cookbook section.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the Direction....👍

  • UK_Mike Profile Picture
    on at

    Hi Bala,

     

    I messed around using Excel as a config file, storing variables etc. , got very messy 😂

    Do the vars in the text file ever get written to the PAD variable pane ?

    So to add / delete / edit a var, edit in the text file ?

     

    Nice input 😀

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @UK_Mike ,

     

    Happy to hear 😊,

    for the questions,

    • Variable initialization not required in PAD variable pane (directly call with %SomeVar['SomeKeyInJsonFile']%)
    • Yes all variables will be initialized from .json file
  • UK_Mike Profile Picture
    on at

    Syntax is light also, the way I like it 😂

    Thank you 👌

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @UK_Mike, "Accept as Solution" for better visibility

  • UK_Mike Profile Picture
    on at

    No !!!

    Fix the typo in  " display message " ( step 4 ) and I will reconsider 😂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @UK_Mike Suggestion Accomplished 😊👍

  • UK_Mike Profile Picture
    on at

    😂😂😂

     

    Didnt realise I had to escape the below filepath ?

    "C:\\Users\\michael\\OneDrive\\Power Automate Global\\AAA Json Config File"

     

    Same for you ?

     

    Screenshot 2022-04-12 174201.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 505

#2
Haque Profile Picture

Haque 446

#3
Valantis Profile Picture

Valantis 395

Last 30 days Overall leaderboard