web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard