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

collect to excel

I have seen in other post how you can use collect and patch to fill your excel table.

 

My app is away to see who is in your group and fix there name, moblephone, title, etc. I am using the office365group connect to get the groups the person owns. I list them in a gallery so the person can select which one they want and then collect the people in the group. I then want to put those people into an excel file so they can be edited. I have seen post telling people to use Patch and collect to do so (Example). 

 

Gallery1: Office365Groups.ListOwnedGroups().value
OnSelect of Gallery1: Set(Groupid, Gallery2.Selected.id)
Button1: Set(Groups, Office365Groups.ListGroupMembers(Groupid)); ForAll(Groups,Patch(Table1, Defaults(Table1), {"Confusion here"})

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: collect to excel

HI @zdieter,

Could you please share more details about the data structure of your Excel table?

Do you want to patch all Group members in the Groups variable into your Excel table?

Please take a try to modify your ForAll formula as below:

ForAll(
Groups,
Patch(
Table1,
Defaults(Table1),
{
displayName: Groups[@displayName],
givenName: Groups[@givenName],
id: Groups[@id],
jobTitle: Groups[@jobTitle],
mail: Groups[@mail],
...
}
)
)

Note: The displayName, givenName, id, ... represents columns in your Excel table (Table1). The displayName, givenName, id, jobTitle, mail, ... represents the properties included within the Groups global variable.

More details about the @ operator within above formula, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators#disambiguation-oper...

More details about the Patch function and ForAll function, please check the following article:

Patch function, ForAll function

 

Best regards,

Kris

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

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: collect to excel

HI @zdieter,

Could you please share more details about the data structure of your Excel table?

Do you want to patch all Group members in the Groups variable into your Excel table?

Please take a try to modify your ForAll formula as below:

ForAll(
Groups,
Patch(
Table1,
Defaults(Table1),
{
displayName: Groups[@displayName],
givenName: Groups[@givenName],
id: Groups[@id],
jobTitle: Groups[@jobTitle],
mail: Groups[@mail],
...
}
)
)

Note: The displayName, givenName, id, ... represents columns in your Excel table (Table1). The displayName, givenName, id, jobTitle, mail, ... represents the properties included within the Groups global variable.

More details about the @ operator within above formula, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators#disambiguation-oper...

More details about the Patch function and ForAll function, please check the following article:

Patch function, ForAll function

 

Best regards,

Kris

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

Highlighted
Helper I
Helper I

Re: collect to excel

Hi,

 

I keep getting an error

Unexpected characters. The formula contains 'Ident' where 'CurlyClose' is expected.

Can you tell me what this mean?

 

Thank you.

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,510)