Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Can't extract PartitionKey from Azure Table Storage Entities

(0) ShareShare
ReportReport
Posted on by 271

I have a flow which extracts some data from an Azure Table Storage object. The data obtained is as follows:

 

[
 {
 "odata.etag": "W/\"datetime'2018-11-28T03%3A46%3A01.2938236Z'\"",
 "PartitionKey": "James Matson",
 "RowKey": "VisitsInWeek",
 "Timestamp": "2018-11-28T03:46:01.2938236Z",
 "Value": "2"
 }
]

I'm interested in looping through each record and working with the Value, and the PartitionKey. I can get the Value okay, but if I set my For Each Apply to body('GetVisitsInAWeek')['PartitionKey'] I get the error:

 

InvalidTemplate. Unable to process template language expressions for action 'Apply_to_each' at line '1' and column '2526': 'The template language expression 'body('GetVisitsInWeek')['PartitionKey']' cannot be evaluated because property 'PartitionKey' doesn't exist, available properties are 'odata.metadata, value'. Please see https://aka.ms/logicexpressions for usage details.'.

 

I'm not sure how to get the PartitionKey, and furthermore, how to do a For Each Apply loop and work with both the Value AND the PartitionKey within the same loop. 

 

Here is my flow: 

 

2018-11-28 16_26_34-Microsoft PowerApps.png

  • JamesM Profile Picture
    271 on at
    Re: Can't extract PartitionKey from Azure Table Storage Entities
    Thanks Alice - I’ll give this a try when I’m at work tomorrow. Out of curiosity, how would you propose someone would get both the PartitonKey AND a custom Column value from the table in the flow above? Let’s say I wanted the PartionKey and the Value field within the apply for each loop?
  • v-yuazh-msft Profile Picture
    on at
    Re: Can't extract PartitionKey from Azure Table Storage Entities

    Hi @JamesM,

     

    Could you please choose a "Value" dynamic content of the "GetVisitsInWeek" action in the input field of the "Apply to each"?

     

    Please delete the "PartitionKey" dynamic content from the in the input field of the "Apply to each", and choose the Array type value in the input field of the "Apply to each", and then you could refer to screenshot below to add Compose action inside the "Apply to each" to get the "PartitionKey" value:

    Capture.PNG

     

    The expression in the Compose should as below:

    items('Apply_to_each')?['PartitionKey']

    The flow would run successfully as below:

    Capture.PNG

     

    Best regards,

    Alice

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1