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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,520)