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 / choices sharepoint wit...
Power Apps
Answered

choices sharepoint with powerapp dropdown list. Default with user logged on email

(0) ShareShare
ReportReport
Posted on by 115

HI there

 

I have made an hours monitoring app. This is linked to a sharepoint list 'On call hours monitoring'.

There is an email column (text), start time (text), end time (text), activity (text) and notes (multiline text). The email column is a choices formatted column with 16 different emails as choices.

I have made an app from the sharepoint list.

On the editform1, there is a dropdown created for me. I have used this code in the items heading

Choices([@'On call Hours monitoring'].Consultant_email)

 

and when preview the app the dropdown shows the appropriate choices and allows me to select appropirately, enter the other data needed and correctly create a sharepoint entry. I am happy.

 

What I would like to do is default the dropdown to the logged in user. I have created a variable varUserEmail at the app --> on start section to create the variable and this populates with the appropirate email correctly 

 

However, I have tried using the variable in the dropdown control default section and defaultselected section and it states that either table or record data is needed in these sections and that Text data is being passed to them.

 

Reading this page

https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-tables

 

i feel that the datatype being passed to the default and defaultsection sections is incorrect.

 

I do have a different sharepoint list with ONLY the emails on which I can connect to the powerapp.

 

I would like logged on users to have the dropdown (choice) selected to their email so users only have to enter start , end time, activity and notes and then submit.

 

I am not sure what formula to use and where?

 

Any help would be appreciated.

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @heshan_pandit ,

    Assuming this is a Combo Box and is Single Select, set the DefaultSelectedItems to

    {Value: varUserEmail}

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • heshan_pandit Profile Picture
    115 on at

    It isnt a combo box but a dropdown.

     

    However, I did an you stated and it worked!

  • heshan_pandit Profile Picture
    115 on at

    I have accepted as solution. Many thanks

    Heshan

  • heshan_pandit Profile Picture
    115 on at

    May I ask why this worked?

    heshan

  • WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    @heshan_pandit ,

    Because the drop-down Items contains a Table with one field - Value and you need to structure the Default accordingly

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 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard