I cannot figure out how to get the emails of all the sales team to send an email to them. I have set up an Automated Action to send an email when a Lead is created. I want the email to go to the entire sales team but i am unable to figure out how to get all of them.
{{ object.team_id.member_ids }} This returns the user_ids of the team but not the email
{{ object.team_id.member_ids.email }} This errors when i create a lead.
{{ ','.join(map(str, object.team_id.member_ids.mapped('email'))) }} This errors when i create a lead.
This works! Thank you.