cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rakeshdsouza
Regular Visitor

Default selected item dropdown not saving in SharePoint list

Hello

 

I have created a SharePoint list, where one of the columns is the manager's name and is a person or group type and required.

the problem is using this in DefaultSelectedItems of the DataCardValue

 

 

Office365Users.Manager(User().Email)

Office365Users.Manager(User().Email).DisplayName //this one gives error

 

 

Also tried this

 

 

If(
EditForm2.Mode = FormMode.New, 
{
Value: Office365Users.Manager(User().Email).DisplayName
},
Parent.Default
)

 

 

it shows me the name in the dropdown list as already selected but when the user fills the form and submits it, the column is empty it has not saved the managers details... (this is done to avoid the user manually selecting his manager).

 

Using the same way when we manually select the manager from the search and submit it works...
Please let me know what could be the possible solution, thanks in advance.

2 REPLIES 2
RandyHayes
Super User
Super User

@rakeshdsouza 

Can you please provide the Items property formula for your control?

You're trying to cross SharePoint user records with Office365 User records - they are not the same.

Knowing your Items property would be helpful in providing a solution.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
rakeshdsouza
Regular Visitor

datacardvalue items property 

Choices([@Voucher].Approver)

and list settings screenshots are attached pl check and let me know.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (2,137)