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.

6 REPLIES 6
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.

jimiwester
New Member

Hi, *bump* ... I have the exact same issue.

 

@rakeshdsouza 

Did you manage to get "defaultselecteditems" to populate into Sharepoint list with current user in Power Apps?

 

Best regards // Jimi

jimiwester
New Member

Just found the solution! .. phew

uh, can you please share/link to the solution then?

Hi can you provide where you found the solution?  Thanks! 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,835)