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 / Convert Json data to T...
Power Automate
Unanswered

Convert Json data to Tabluar data in excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm getting a data from an API in JSON format.

after parse json step, i'm getting the below data in excel:

 

{"Time Period":"12/1/23 - 12/15/23"Resource Name:"Rob Silva"Timesheet Status:"Submitted"Submitted by:"Rob Silva"Last Modified:"12/12/23 7:12 AM"Tasks:[{"Investment ID":"PRO41254"Investment:"Market Risk Regulatory Compliance Housekeeping F24 [Input Data]"Description:"C3-Development/Build"Hours:{"12/1":9.012/2:9.012/3:0.012/4:9.012/5:9.012/6:9.012/7:9.012/8:9.012/9:9.012/10:0.012/11:9.012/12:9.012/13:9.012/14:9.012/15:9.0}Total:99.0}]Total Hours:{"Week 1":45.0Week 2:45.0

Overall:90.0}}

 

 

 

 

 

But I'm getting special character like curly braces in output also and header and values are in same cell.

 

Expected format:

 

time periodresouce nametimesheet statusSubmitted by Last modifiedIDInvesmentDescription1-Dec2-Dec3-Dec4-Dec5-Dec6-Dec7-Dec8-Dec9-Dec10-Dec11-Dec12-Dec13-Dec14-Dec15-DecTotalweek1week2overall
12/12/23 - 12/15/23Rob SilvasubmittedRob Silva12/12/2023PRO111Market RiskAS3-Dev99099999909999990454590

 

Let me know how can i do this :

 

 

 

 

 

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @adi124 ,

     

    Could you please show me the parse json action's input parameter.

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-bofeng-msft 

    Input Parameter :

    outputs('json')['body']?['choices'][0]?['message']?['content'].
     
    Note :I'm not able to select the columns in above as i get error message like - 

    Array elements can only be selected using an integer index.

     
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @adi124 ,

     

    Could you please show me the value of 

    outputs('json')['body']?['choices'][0]?['message']?['content']

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-bofeng-msft ,

    Output is : 

    {
    "TimePeriod": "12/12/23 - 12/25/23",
    "ResourceName": "Rob Silva",
    "TimesheetStatus": "Submitted",
    "SubmittedBy": "Rob Silva",
    "LastModified": "12/12/23 7:12 AM",
    "Tasks": [
    {
    "InvestmentID": "PRO41254",
    "Investment": "Market Risk",
    "Description": "AS3-Dev",
    "Hours": {
    "12/12": "9.00",
    "12/13": "9.00",
    "12/14": "9.00",
    "12/15": "9.00",
    "12/16": "9.00",
    "12/17": "0.00",
    "12/18": "0.00",
    "12/19": "9.00",
    "12/20": "9.00",
    "12/21": "9.00",
    "12/22": "9.00",
    "12/23": "9.00",
    "12/24": "0.00",
    "12/25": "0.00"
    },
    "Total": "90.00"
    }
    ],
    "TotalHours": {
    "Fri": "9.00",
    "Sat": "0.00",
    "Sun": "0.00",
    "Mon": "9.00",
    "Tue": "9.00",
    "Wed": "9.00",
    "Thu": "9.00",
    "Total": "90.00"
    }
    }

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I've made a test but did not encountered the problem you mentioned.

    vbofengmsft_0-1704877310461.png

    vbofengmsft_1-1704877336576.png

    Result:

    vbofengmsft_2-1704877372017.png

    Maybe you could readd the parse JSON action and try again, if the problem cannot be solved , I suggest you create a support ticket for professional assistance following the below procedure.

     

    Get Help + Support - Power Platform | Microsoft Docs

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-bofeng-msft ,

     

    Thanks a lot , I was able to select the columns now.

    But Investment ID, investment Description and Hours still cannot be selected.

    I think this are under array and there might be some different way to do for these columns.

    Thanks!

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @adi124 ,

     

    Please try these expressions:

     

    InvestmentID

    body('Parse_JSON')?['Tasks'][0]['InvestmentID']
    investment Description
    body('Parse_JSON')?['Tasks'][0]['Description']
    Hours 

    body('Parse_JSON')?['Tasks'][0]['Hours']

     

    Best Regards,

    Bof

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 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard