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"})
Solved! Go to Solution.
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:
More details about the Patch function and ForAll function, please check the following article:
Patch function, ForAll function
Best regards,
Kris
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:
More details about the Patch function and ForAll function, please check the following article:
Patch function, ForAll function
Best regards,
Kris
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.
User | Count |
---|---|
143 | |
142 | |
78 | |
75 | |
72 |
User | Count |
---|---|
228 | |
143 | |
78 | |
62 | |
58 |