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 / JSON Schema with varia...
Power Automate
Unanswered

JSON Schema with variable property name

(0) ShareShare
ReportReport
Posted on by

Hi, 

I am working on a flow to gather information from API and load it to the database.

However, while getting the response from the API call, one of the property names is variable per account.

Then the schema I am getting from the API call is like this:

pethellm_0-1643897537337.png

 

The property "12305" from the response varies from account to account. And I need to go through all accounts in one run.

Unfortunately, it is not possible to add variable content to the Schema value of the Parse JSON action.

 

Does anyone know the solution for that, please?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    As a workaround you could try and use a Select action with item(). This way you at least have the list of accounts.

     

    With an apply to each you could loop through these items and with another Select you can probably retrieve the account array specific fields.

     

    In the screenshot below I only collected the item() in the Map field of the Select Account properties action, but you could also map to specific fields like item()['fieldname']

     

    select_select.png

  • Community Power Platform Member Profile Picture
    on at

    Hi @Expiscornovus ,

    Thanks for the suggestion.

    Unfortunatelly it does not work for me.

    The API call returns an object, that can't be used within Select action.

    I as well tried to replace the id in the body, still it's an object and does not work.

    I wish there was a possibility to make the schema variable.

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    Apologies, I forgot it was an object. I only focused on the word array in the screenshot 😅

     

    Can you try it with brackets around the Body field in the From. That is worth a shot.

     

    bracketsaroundit.png

  • Community Power Platform Member Profile Picture
    on at

    so the solution for such case is following.

    1. The JSON response needs to be converted to the string.
    2. In the string the variable account id needs to be replaced to a static value
    3. From the output new json needs to be created
    4. Done.

    Here are the steps printscreened:

    pethellm_0-1644395405438.png

     

     

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard