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.

4 REPLIES 4
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

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,630)