web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Fin )365 user Combi Bo...
Power Apps
Answered

Fin )365 user Combi Box To list

(0) ShareShare
ReportReport
Posted on by

Hello Im looking to patch a new entry and have done all fields except the 2 combo Boxes i have that are set to a O36User search(Office365Users.SearchUser({searchTerm:cb_AuthOff.SearchText,top:10}))

 

The Patch Im trying to use is - Patch('Cargo Request',Defaults('Cargo Request'),
{'SNCO Approval Email':cb_AuthOff.Selected.Mail});

 

I have a whole patch working that i just need to add the email strings to. 

 

Also is there any specific setting i should have my column on in my list to make it easier? 

 

List Name -Cargo Request

Column Name - SNCO Approval Email

Combo box Name- cb_AuthOff

 

Categories:
I have the same question (0)
  • Verified answer
    Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Hi @Aliwells632 

     

    I'm not entirely sure I understood your request, but here's my best guess at an example:

    Patch('Cargo Request', Defaults('Cargo Request'),
    {'SNCO Approval Email': If( IsBlank(cb_AuthOff.Selected), "", cb_AuthOff.Selected.Mail ), 
    // include other fields you want to patch});

     

    So first we check if a user is selected in the combo box by using the IsBlank function. If the combo box is blank,  set the email field to an empty string. If a user is selected, set the email to the selected user's email using the Selected.Mail property.

     

    For the "SNCO Approval Email" column in your SharePoint list, it should be set to "Single line of text" because the email address is a text string.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard