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 / Return value into mult...
Power Apps
Suggested Answer

Return value into multiple variable from table

(0) ShareShare
ReportReport
Posted on by 22
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.
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    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!
     
  • RS-26100114-0 Profile Picture
    22 on at
    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.
     
     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard