cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zdieter
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

zdieter
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,549)