Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Suggested answer

Return value into multiple variable from table

(0) ShareShare
ReportReport
Posted on by 12
on the basis of student ID i need to bring his name, age, address into three variable. how can i do it in powerapps.
 
Thanks.
  • RS-26100114-0 Profile Picture
    12 on at
    Return value into multiple variable from table
    Hi Nandit,
     
    Thanks a lot for the Reply.
     
    I have the table as follows-
    UserID UserPassword UserName UserDesignation UserAddress
    236 xxxtt Charles Manager Washington
    258 ttyyy Edward Senior Executive Detroit
     
    When I filter an user, I need to keep the UserName, UserDesignation, UserAddress in variables and would like to use as necessary.
     
    I want to know this, how can I do it. Hope I could explain.
     
    Thanks and appreciate your help, highly, in advance.
     
     
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Return value into multiple variable from table
     
    By student ID, do you mean the Email ID?
    If yes, here's how you can set the three variables either on OnStart or by using a button:
    Set(varName, Office365Users.MyProfileV2(User()).displayName);
    Set(varAge, DateDiff(Office365Users.MyProfileV2(User()).birthday, Today(), TimeUnit.Years));
    Set(varAddress, Office365Users.MyProfileV2(User()).streetAddress);
    
    or if you mean a student ID like this: 798876 or something similar.
     
    Where is the student ID stored?
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1