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

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (20,713)