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 / o365 search to sharepo...
Power Apps
Unanswered

o365 search to sharepoint list

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

I have an issue getting a o365 search list into a sharepoint list.

I've built a basic sharepoint list with two columns - Staff and Age (With an unused Title). The staff is a Person and the age is a number.

 

The powerapp literally shows both these columns in a gallery. 

Rather than show the entire o365 users, i've filtered this down as thus, in Items:

Filter(Office365Users.SearchUser({searchTerm:DataCardValue2.SearchText}),"Staff" in OfficeLocation)

This brings back the correct users, based on the word 'Staff' in the OfficeLocation field.

 

When i use the 'SubmitForm', this does not write this selected info to the list.

I thought about using a patch function, but this does not work:

Patch('Patch', Defaults('Patch'), {Staff:DataCardValue2.Selected}) - where 'Patch' is the name of the SP list, and 'DataCardValue2 is the name of the Value of the Staff Datacard.

 

Has anyone got any ideas on how to get this to work?

Thanks in advance

 

 

 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @LeeProcter - it is difficult making sense of your post.

     

    As I understand it, I think you have a Form, and in that Form you have a DataCard for the Staff people picker field. In the Items property of the Combo Box inside the DataCard, you have applied your filter expression.

     

    You're now trying to save the selected staff member into your SharePoint list.

     

    Is that correct?

  • LeeProcter Profile Picture
    4 on at

    Yes, thats correct.

    Im not sure how to get the name selected into the sharepoint list

     

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @LeeProcter sorry I have been away. Do you still need help?

  • LeeProcter Profile Picture
    4 on at

    Hi,

     

    I solved this by:

    For the whole data card, use the following in the ‘Update’ option: (change the Data card value to whatever yours is.)

     

    {

      Claims:"i:0#.f|membership|" & DataCardValue2.Selected.DisplayName,

      Department:"",

      Email: DataCardValue2.Selected.Mail,

      JobTitle:".",

      Picture:"."

    }

     

    Change Items of the DatacardValue to be: (change the Data card value to whatever yours is.)

    Filter(Office365Users.SearchUser({searchTerm:DataCardValue2.SearchText,top:999}),"Students" in OfficeLocation)

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard