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 / How to correctly extra...
Power Automate
Unanswered

How to correctly extract name of column from Json schema for Item(). expression when column name has spaces?

(0) ShareShare
ReportReport
Posted on by 39

I have a flow that collects some bits of information from json snippet to build table with 'Create HTML table' action:

 

Schema:

Paulos29_0-1611316696187.png

 

'Work Type' and 'Fee ' column have got some space in the name.

 

How do i specify that space in the expression Item() to get the data from that column?

 

Item().Work Type doesn't work. I tried various combinations to cater for that space ,such as: 

& " " &, _x0020x_,$,? ,* ect. but nothing works
Categories:
I have the same question (0)
  • MJain Profile Picture
    2,450 on at

    Hi @Paulos29 ,

     

    You need to use outputs('ActionName')?['body/Work Type'] , if you are processing multiple objects it will go inside For Each loop. For better clarity post your JSON and screenshot of Flow.

     

    Thanks

  • Paulos29 Profile Picture
    39 on at

    Hi Manish,

     

    Here is the flow part that attempt to build the table off the Filter Array output:

     

    Paulos29_0-1611325563979.png

     

    Expanded view:

    Paulos29_1-1611325602244.png

     

    I am able to collect values for column Client, Country , Year and Recurring (using expressions Item().Client, Item().Country etc. in Value section of HTML table but the same approach does not work for

    Item().Work Type and Item().Fee

    as there are a spaces in the names of these 2 columns in the json schema (as per below):

     

    Paulos29_2-1611325852499.png

     

     

    I need to figure out what to input in place of space for Item().Work Type and Item().Fee (which has space at the end of string 'Fee ' in json schema.

     

     

     

  • Verified answer
    MJain Profile Picture
    2,450 on at

    Hi @Paulos29 ,

     

    You can use item()?['Work Type'] for it. Just put this in expression.

     

     

    Thanks

  • Verified answer
    Paulos29 Profile Picture
    39 on at

    Manish, YOU ARE A GENIUS!

     

    I salute you , Sir! 

     

    Thank you

  • ShaishavM Profile Picture
    13 on at

    Hi @ManishJain 

    I have similar issue, field has a space, I tried using item().['field name'], however I am getting "The expression is invalid" error. 

     

    Appreciate your help.

     

    TIA

    S Merchant 

  • MJain Profile Picture
    2,450 on at

    Hi @shaimerc ,

     

    you have used period instead of question mark.

     

     item().['field name'] should be  item()?['field name']

     

    Thanks

  • ShaishavM Profile Picture
    13 on at

    Hi @ManishJain yes, made that mistake. All fine now.

    Thanks!👍👌

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard