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 / Formatting 'Select' Ac...
Power Automate
Suggested Answer

Formatting 'Select' Action Output

(0) ShareShare
ReportReport
Posted on by 6
Hi all! I'm working on making a flow that will get the values of Custom Fields from Trello; as that currently is unavailable with the current suite of Trello actions/triggers. I've tried to use Copilot but it's been no help at all. I've worked it out with some HTTP/JSON steps and now I'm trying to figure out how to get these individual Custom Field values into a format where I could input them into cells in Excel individually, here's an example output from my 'Select' step:

[{"ID":{"id":"6750ac42bd9ec23ce72bf6de","value":{"date":"1965-06-15T16:00:00.000Z"},"idValue":null,"idCustomField":"63fa3b80b023c958ad234103","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6764a10be4495f9cacd9e431","value":{"text":"1146443"},"idValue":null,"idCustomField":"63fa3b80b023c958ad234101","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6764a1142b6beb3cbe6ade30","value":{"date":"2027-12-19T12:00:00.000Z"},"idValue":null,"idCustomField":"63fa3b80b023c958ad2340fb","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6750ac42a80d0f191b7f0ed6","value":{"text":"123-456-7890"},"idValue":null,"idCustomField":"63fa3b80b023c958ad2340f7","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6750ac42e498b39b75779010","value":{"date":"2000-12-15T16:00:00.000Z"},"idValue":null,"idCustomField":"63fa3b80b023c958ad2340f5","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6750ac432a0872ec0da8e91a","value":{"text":"Pam"},"idValue":null,"idCustomField":"63fa3b80b023c958ad2340f3","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6750ac42c7f19d0dfb3c593a","value":{"text":"&"},"idValue":null,"idCustomField":"63fa3b80b023c958ad2340f1","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6750ac4216b31310aa92a355","value":{"text":"example@hotmail.com"},"idValue":null,"idCustomField":"63fa3b80b023c958ad2340ef","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}},{"ID":{"id":"6750ac421f3028973939ac80","value":{"text":"Adam"},"idValue":null,"idCustomField":"63fa3b80b023c958ad2340ed","idModel":"6750abbf9c5182deba1f2857","modelType":"card"}}]

Apologies for formatting, but I just wanted the raw data out there in case it helped anyone answer me here. The goal is to be able to take the highlighted value sections and turn them into an output that I can use in Excel so we could have something like the table below. I've got the file ready to go but I'm stuck on this output step. One important thing to note is that sometimes the values may be empty; if someone isn't married the spouse custom fields will come in without information so I need something that can handle 'null' zero outputs like above.

 
Code Member Name Member Phone Member Email Spouse Name Spouse Phone Spouse Email
1146443 Adam 123-456-7890 Example@hotmail.com Pam    

Looking for a way to hopefully do this in as few steps as possible but really just need help taking this next step to get things working. Thank you so much in advance for your suggestions?
Categories:
I have the same question (0)
  • Suggested answer
    Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    You can for example use xpath functions for this.
     
    Below is an example with a couple of Compose actions, if that helps?
     
    1. Turn the string into xml
    xml(json(concat('{"root": { value:', outputs('Compose'), '}}')))
     
    2. Use xpath to find the right values. In this case only the Code and Member Name id's
     
    {
    "Code": "@{first(xpath(outputs('XML'),'//root/value/ID[id="6764a10be4495f9cacd9e431"]/value/*[text()!=""]/text()'))}",
    "Member Name": "@{first(xpath(outputs('XML'),'//ID[id="6750ac421f3028973939ac80"]/value/*[text()!=""]/text()'))}"
    }



    3. Test run




     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • BB-03032052-0 Profile Picture
    6 on at
    This is a great start, thank you so much! I can see now with some testing that this is parsing out those values and making them much easier to pick out. I'm still encountering an issue, and this may be where this process isn't feasible; when I grab the output of that last compose step, I still can only work with the one bulk 'Output,' it's not separating them into multiple Outputs that I can work with. 

    I may need to change the phrasing on the initial post but I'm looking for a way, in this case, to make the 'Code' or 'Member Name' sections into their own usable outputs that I can separate and use as inputs in different locations of an Excel sheet. 

    I apologize for any silly assumptions I'm making about the possibility of this as well as my lack of experience when it comes to this level of data composition; I'm very new to working with this much raw data rather than basic automation.
  • Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    You can reference the individual fields by using expressions, in other words ['FieldName'].
     
    Below would reference the Code field
    outputs('Compose_2')['Code']
    For example in a Compose - Code action (or in your case probably an Excel action).
     



     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • BB-03032052-0 Profile Picture
    6 on at
    I see, that solved it for me! Only issue now is that I've learned that those custom field IDs are not standard for a Trello board and change every time I try to pull that data so I'm not seeing a way to get this standardized. But that's nothing that can be solved here. Thank you so much for your help and teaching me how to get pull individual outputs! That will help me a ton in some other projects!
  • Expiscornovus Profile Picture
    33,891 Most Valuable Professional on at
     
    Does the id change or also the idCustomField?
     
    Based on a quick Google search I would expect the second to not change. In that case you can update the xpath filter to use that idCustomField instead.
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • BB-03032052-0 Profile Picture
    6 on at
    You're absolutely right. I changed the filter to instead reference that idCustomField value and it's working great now. Thank you so much for your help!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard