cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sumaira
Post Prodigy
Post Prodigy

Update details in office 365 from power apps

Hello Community Experts,

I was able to fetch the details from office 365 delve

But I'm struggling with how to update the logged in users details from power apps to office 365

Kindly guide

Best Regards,

Sumaira Noor

5 ACCEPTED SOLUTIONS

Accepted Solutions

Hi @Sumaira :

Do you want to use the canvas app to update the profile of the currently logged in user?
I originally wanted to recommend "Office365Users.UpdateMyProfile" to you, but it looks like you have solved this problem yourself.

Please consider accept your solution as solution so that more people can see it.

Best Regards,

Bof

View solution in original post

Hi @Sumaira :
Please try this code:

 

Office365Users.UpdateMyProfile({schools:Table({Value:TextInput3.Text})})

 

It should be noted that the data type of each parameter is different.

1.JPG

Best Regards,

Bof

View solution in original post

Hi @Sumaira :

All I did was to reconstruct the value of TextInput3 into the form of a table so that it conformed to the format required by the school parameters.

You can all use "ClearCollect(ss,Office365Users.MyProfileV2())" to save personal information to the collection ss, and then refer to the data structure of the collection.

Best Regards,

Bof

View solution in original post

Hi @Sumaira :

Do you want to add projuct instead of replacing the original projuct?

Please try this code:

 

Office365Users.UpdateMyProfile(
    {
        pastProjects: RenameColumns(
            Split(
                Concatenate(
                    TextInput5.Text,
                    "###",
                    Concat(
                        Office365Users.MyProfileV2().pastProjects,
                        Value,
                        "###"
                    )
                ),
                "###"
            ),
            "Result",
            "Value"
        )
    }
)

 

 Best Regards,

Bof

View solution in original post

Hi @Sumaira :

Sorry I didn't understand what you mean, can you describe your needs in detail?

If you encounter any problems in practice, you can directly attach the code and errors, so that I can understand your meaning more easily.

Best Regards,

Bof

View solution in original post

19 REPLIES 19
Mira_Ghaly
Dual Super User
Dual Super User

Hi @Sumaira 

 

You can use a power automate to achieve this so you can trigger the Flow from your powerapps.

 

I have made a similar flow that runs but on Model Driven App User record change it updates the user Info in AD

 

Please check my blog post.

https://onlinemgblog.wordpress.com/2020/07/15/update-active-directory-from-cds-data/

 

If this was helpful to you and solved your problem please mark as an accepted solution.

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

@Mira_GhalyThanks a lot for the response

I have to use only O365 and Power Apps here

Please guide

Best Regards,

Sumaira

@Sumaira 

Can you paste some screens from your Powerapps? Also do you mean you do not want to use PowerAutomate

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

@Mira_GhalyMany thanks for the response

Office365Users.UpdateMyProfile({schools:TextInput2.Text});

I'm trying to use this feature

Please advise

Best Regards,

Sumaira

Hi @Sumaira :

Do you want to use the canvas app to update the profile of the currently logged in user?
I originally wanted to recommend "Office365Users.UpdateMyProfile" to you, but it looks like you have solved this problem yourself.

Please consider accept your solution as solution so that more people can see it.

Best Regards,

Bof

@v-bofeng-msftMany many thanks for responding

It is only updating one field

I'm getting error for skills field

 

111.PNG

@v-bofeng-msftPlease guide

Best Regards,

Sumaira

@v-bofeng-msftIt says UpdateMyProfile has some invalid arguments

Please guide

Hi @Sumaira :
Please try this code:

 

Office365Users.UpdateMyProfile({schools:Table({Value:TextInput3.Text})})

 

It should be noted that the data type of each parameter is different.

1.JPG

Best Regards,

Bof

@v-bofeng-msftMAny thanks I'll try it now

I should use a text box to update it or a gallery control?'

@v-bofeng-msftKindly guide

Best Regards,

Sumaira

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,532)