Send notification to member of a team, when a member of that team does a update

Hi All

I am trying to get the automation to do the following:

when person A is team A updates their location, then notify all members of team A about it. but from what I can determine, I would need to create a separate automation for each team, whereas having it automatically register you are in team A, notify all members of Team A would be better

0 4 253
4 REPLIES 4

Aurelien
Google Developer Expert
Google Developer Expert

Hi @Sven_Arndt

did you have a look to this ?

I suggest you create a bot from suggestion
3X_1_6_161232dd52637837a76fd87d2db5d5561fdbe55c.png

then adapt the one with โ€œnotificationโ€ to your use case.
Let us know if you need some help after this

EDIT 1 : minor change

EDIT 2:
I forgot to answer about that:

There are many ways to achieve the same.
Short lead: You may want to use a โ€œUsersโ€ table, and a slice based on it, in order to get the list of all recipient from the same team.
Letโ€™s say you have a table โ€œUsersโ€ with columns โ€œuserIDโ€, โ€œemailโ€ and โ€œteamโ€, you may want to use this row filter condition:
[Team]=LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œemailโ€, โ€œteamโ€)

For reference:

Hi

I got the part about the automation and have that up and running, but the part I was missing was slices part.

this suggests that there is currently no way to have appsheet filter the teams on its own through some formula, but requires a slice everytime a new team is potentially made, I was hoping to skip all the manual interventions and have it intelligently determine if user is in team A, find all members of team A, and notify them.

but the formula [Team]=LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œemailโ€, โ€œteamโ€), would this still require a slice? sounds smart enough to compare team against the main list in my data table

Hi @Sven_Arndt

About this:

Actually yes, I was suggesting a solution that I think the most efficient, I may be wrong.
As I said, there are various ways to achieve your goal.

Another solution (letโ€™s name it Solution 2) would be to use this expression in the recipient expression:

SELECT(Users[Email],
  [Team]=LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œemailโ€, โ€œteamโ€)
)


just another way to make it

About that:

Actually no, the row filter condition I mentioned is to adapt the slice to the user team. This is the direct answer to your previous question

Letโ€™s get back to the Solution 1:
This expression:
LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œemailโ€, โ€œteamโ€) will get the current user team,
and this expression:
[Team]=LOOKUP(USEREMAIL(),โ€œUsersโ€,โ€œemailโ€, โ€œteamโ€)
will change the slice content, in order to get the list of users according to the current user team.

What are the main difference between the two solutions here:
The slice is a kind of a โ€œyet filtered tableโ€, so less calculations needs to be made when itโ€™s time to notify.

I hope I made it clear, let me know if you need further explanation.

Cheers !

Edit : for additional reference:

I kind of realized after writing it, that your solution initially made a table that would adapt to each user.

I will give the second formula a try as this appears to be the simplest solution. thanks for the help. its appreciated.

Top Labels in this Space