= getdistinctusers(topeople(cons!IP_GRP_ALERTS)), a!queryRecordType( recordType: 'recordType!{3a27d5e6-31ce-4fe1-995f-821c7e573c8a}IP Add Details.fields.{7340349a-5cf6-4b92-a093-9d1d261d7be2}candidateMail', fields: 'recordType!{3a27d5e6-31ce-4fe1-995f-821c7e573c8a}IP Add Details.fields.{7340349a-5cf6-4b92-a093-9d1d261d7be2}candidateMail', filters: a!queryFilter( field: 'recordType!{3a27d5e6-31ce-4fe1-995f-821c7e573c8a}IP Add Details.fields.{7340349a-5cf6-4b92-a093-9d1d261d7be2}candidateMail', operator: "=", value: true ), pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 500) ).data
I am using the send email smart service and i used the "topeople" function to send the email to the group members first and then again i used the "user()" function to return a specific info from a field. Is this the correct way ?
Discussion posts and replies are publicly visible
What do you want to achieve? You are sending an email to a member of the alerts group. Do you also need to include the output of the queryRecord type?
i also want to send an email to a person who is related to the user of the alerts group.
Like to put it short, i have a select candidate button and when i click on it, the recruiter who added the candidate details and the candidate need to get a mail.
so i used the group function in the first line and then i used the user function to retrieve the candidate data.I think i might be doing it wrong so just wanted to verify it.
skzahed_09 said: recruiter who added the candidate details and the candidate need to get a mail.
Just to clarify more,You need to send an email to recruiter and candidate only?Where are you storing recruiter and candidate information?
I would recommend you to use toUser() in both places and combine the result and use that in email recipient.