You are viewing limited content. For full access, please sign in.

Question

Question

Sending email to Forms Teams from Workflow

asked on May 2, 2019

I have teams in Forms. Is it possible to use those teams to send emails from Workflow please? Thanks.

 

Priya

1 0

Answer

SELECTED ANSWER
replied on May 4, 2019 Show version history

Hi Priya,

From workflow you can use the query activity (from sql database of Forms) to retrieve emails of team members, and use them to send an email. Use the next query:

select team_id,teams.name as team,team_members.user_id,username,email from team_members, cf_users,teams
where 
team_members.user_id= cf_users.user_id and 
team_members.team_id=teams.id

I hope you answer your question, Please remember to mark my response that answered your question so others know that this post has been completed.

regards,
Marco.

2 0

Replies

replied on January 15, 2020

Hi - What if you wanted to email anyone in a specific role for a team?

1 0
replied on January 21, 2020

SELECT cf_users.email
FROM cf_users
JOIN team_members ON team_members.user_id = cf_users.user_id
JOIN team_member_team_role_mapping ON team_member_team_role_mapping.team_member_id = team_members.id
JOIN team_roles ON team_roles.id = team_member_team_role_mapping.team_role_id
JOIN teams ON teams.id = team_roles.team_id
WHERE teams.name = @teamname
AND team_roles.name = @rolename

2 0
replied on May 14, 2019

Thanks

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.