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 / Converting Json to Dat...
Power Automate
Suggested Answer

Converting Json to Datatable

(1) ShareShare
ReportReport
Posted on by 8
Hi Team,
 
I have requirement where I will get Json content from API response, I need to convert this JSON to data table and add it to queue and perform next respective steps
But I am unable to convert JSON to data table
 
If anyone have idea on this, please help me out
 
Thanks,
Soumya
I have the same question (0)
  • Suggested answer
    harish_sada Profile Picture
    53 on at
    Hi,
    Please follow the steps below:
    1. Convert the JSON string to a list using the Convert JSON to Custom Object action.
    2. Load the same data into the queue in JSON format.
     
     
     
     
     
     
     
     
     
  • SB-03090954-0 Profile Picture
    8 on at
    Hi @harish
     
    We will get more number of rows in that case how can we add it to queue and also how can we loop Json object by using for each loop
     
    Thanks,
    Soumya
  • Suggested answer
    harish_sada Profile Picture
    53 on at
    Hi  Soumya,
     
     
     
     
     
     
    You can copy and paste the code mentioned below into PAD
     
     
    SET NewVar TO $'''[
        {
            \"Name\": \"Alice\",
            \"Age\": 30,
            \"Country\": \"USA\"
        },
        {
            \"Name\": \"Bob\",
            \"Age\": 25,
            \"Country\": \"Canada\"
        },
        {
            \"Name\": \"Charlie\",
            \"Age\": 28,
            \"Country\": \"UK\"
        }
    ]
    '''
    Variables.ConvertJsonToCustomObject Json: NewVar CustomObject=> JsonAsCustomObject
    LOOP FOREACH CurrentItem IN JsonAsCustomObject
        @@'InputSummaryValue:WORKQUEUE': 'Test_Queue'
    WorkQueues.EnqueueWorkQueueItem.WithoutUniqueId WorkQueue: $'''206787d4-555e-ef11-bfe4-6045bda56ea9''' Status: WorkQueues.WorkQueueItemEnqueueStatus.Queued Priority: WorkQueues.WorkQueueItemPriority.Normal Value: $'''{
    \"Name\":%CurrentItem['Name']%, 
    \"Age\":%CurrentItem['Age']%, 
    \"Country\":%CurrentItem['Country']%
    }''' WorkQueueItem=> NewWorkQueueItem
    END
     
     
     
     
     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard