Adding contacts from the account to the email activity

Dear,

On the email page, I added a button that displays a modal window via a process and shows the account's contacts.

Button

This is to allow users to select contacts from the account and add them as recipients to email activities.

Select contacts

But when you click the "add contacts" button, the contacts are not added to the "to" field of the email.
Here is the process:

Process

I tried adding an action to modify the activity and add the selected contacts, but I don't see how to retrieve the list of contacts selected by the user.

Has anyone ever successfully performed this operation ?

Thank you !
Nicolas

Like 1

Like

2 comments

Hello,
Most likely, the participants weren't added because your email was in the "New" state, meaning it wasn't created and still does not have a dedicated ID. In order to connect a contact to an email, an ActivityId should be present.
To make this work, you would need to ensure either that:
- the email activity is already created
- the logic of adding recipients is executed after the record is saved

LÉZORAY Nicolas, you have to read selected rows depending selection state from datagrid on the your modal page. and then fill outbound parameter on the page. then process this collection in process. or process selected contacts (emails) on the modal page and update Activity.To there.

Show all comments