Send mail with multiple attachments through a list

Send mail with multiple attachments through a list

Hello!

I need to send emails attaching multiple files included in a list, as indicated here:

The formats to attach multiple files:
List of files
file: <file_attachment_list>
where, <file_attachment_list> is the LIST containing the attachments.

How should the elements be added in the variable list? I tried adding from a Collection variable (not collection data type) as follows but it didn't work.

list.add (collection_variable.upload_field)

Anyone who can help me?

Thanks in advance.

Regards.

José.