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 Apps / Getting data from colu...
Power Apps
Unanswered

Getting data from columns with various attributes

(0) ShareShare
ReportReport
Posted on by 4

I'm importing a table from various registers into a CSV using "Filter" function and passing them into a JSON with "ShowColumns" in this way: 
Set(
      varJSONProjects;
      JSON( ShowColumns( collectionCSVRenamed; "Project"; "Description"; "User"... );
      JSONFormat.IncludeBinaryData
);;
function, but there are some columns that have various attributes, in this case, I have a column called User and it contains that info:
{ "Id": 1, "Value": "John Doe" }
But I just want to keep the attribute "Value" in my CSV file.

How can I do that?

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    User is an object with 2 attributes.

    User.Value should return "John Doe"

  • softdumb Profile Picture
    4 on at

    I know, but I can't do something like:
    Set(
          varJSONProjects;
          JSON( ShowColumns( collectionCSVRenamed; "Project"; "Description"; "User.Value"... );
          JSONFormat.IncludeBinaryData
    );;

     

    To get that "ShowColumns" selects "Value" attribute from "User"

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Why not do something like

    Set(userValue,User.Value);

    Set(
          varJSONProjects;
          JSON( ShowColumns( collectionCSVRenamed; "Project"; "Description"; userValue... );
          JSONFormat.IncludeBinaryData
    );;

  • softdumb Profile Picture
    4 on at

    It doesn't work,
    Could you help this info?
    It's a Sharepoint list and it's a foreign key to another list that I can access in this way
    Filter( Projects; FKUser.Value = "John Doe" );; // Here its a valid search attribute
    Filter( Projects; FKUser.Value = "John Doe" ).FKUser.Value // It is not a valid attribute

    Filter( Project; FKUser.Value = "John Doe" ).Value // This is also not a valid attribute

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Are you able to investigate the output of  

    Filter( Projects; FKUser.Value = "John Doe" )

    in the designer window like this?

    SudeepGhatakNZ_0-1664338834654.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

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 Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard