cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Negi1984
Helper I
Helper I

How to auto populate fields

Hi All,

 

I have a created a share point list and from there I have created a default Power App. 

That form contains some fields like "Signum", "First Name", "Last Name", "Line manager", "Email ID" etc....

 

Now I want as soon as user fill "Signum" details than rest of fields should auto filled by importing information from office 365 account.

 

can anybody help me out.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Negi1984 ,

Could you please share a bit more about the "Signum"? Could you please share a sample format about it?

Do you mean that the "Signum" is included in the email address of a user?

 

If the "Signum" is included in the email address of a user, and the "Signum" is unique for each user. Regarding the needs that you mentioned, I think the Office 365 Users connector could achieve your needs.

 

Within your Edit form, set the Default property of the First Name field Text Input Box to following:

First(
       Split(
            First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).DisplayName, 
            " "
       )
    ).Result

Set the Default property of the Last Name field Text Input Box to following:

Last(
       Split(
            First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).DisplayName, 
            " "
       )
    ).Result

Set the Default property of the Email field Text Input Box to following:

First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).Mail

Set the Default property of the Manager field Text Input box to following:

Office365Users.ManagerV2(First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).Mail).displayName

 

Please try above solution, then check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
RandyHayes
Super User III
Super User III

@Negi1984 

You will need to change the Default property of the form fields you want to set.

 

However, the question is - how does signum relate to an Office365 User?

 

 

_____________________________________________________________________________________
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.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hi Randy,

 

I am basic user of Power App. Could you please share some screen shot , which functions I need to use to autopopulate fields ?

"Signum" field is tagged to each email ID. suppose so if we search any user than we can use Signum in email or skype or Team chat. 

Hi @Negi1984 ,

Could you please share a bit more about the "Signum"? Could you please share a sample format about it?

Do you mean that the "Signum" is included in the email address of a user?

 

If the "Signum" is included in the email address of a user, and the "Signum" is unique for each user. Regarding the needs that you mentioned, I think the Office 365 Users connector could achieve your needs.

 

Within your Edit form, set the Default property of the First Name field Text Input Box to following:

First(
       Split(
            First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).DisplayName, 
            " "
       )
    ).Result

Set the Default property of the Last Name field Text Input Box to following:

Last(
       Split(
            First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).DisplayName, 
            " "
       )
    ).Result

Set the Default property of the Email field Text Input Box to following:

First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).Mail

Set the Default property of the Manager field Text Input box to following:

Office365Users.ManagerV2(First(Office365Users.SearchUserV2({searchTerm: SignumTextInputBox.Text, top:999}).value).Mail).displayName

 

Please try above solution, then check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,259)