You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Currently there is now way ( that I know of ) setting Attachments by an expression.
I have done this with another version of the email sender like first createing a #var.EmailAttachments using the files { var attachments = new List<Frends.Community.Email.Attachment>(); foreach(var f in #var.FileAttachments){ attachments.Add( new Frends.Community.Email.Attachment { AttachmentType = Frends.Community.Email.AttachmentType.FileAttachment, FilePath = f, ThrowExceptionIfAttachmentNotFound = true, SendIfNoAttachmentsFound = false } ); } return attachments.ToArray(); }
And then use value of #var.EmailAttachments as an expression to SendEmail-task, but that is not possible.
The text was updated successfully, but these errors were encountered:
Hi,
Currently there is now way ( that I know of ) setting Attachments by an expression.
I have done this with another version of the email sender like first createing a #var.EmailAttachments using the files
{ var attachments = new List<Frends.Community.Email.Attachment>(); foreach(var f in #var.FileAttachments){ attachments.Add( new Frends.Community.Email.Attachment { AttachmentType = Frends.Community.Email.AttachmentType.FileAttachment, FilePath = f, ThrowExceptionIfAttachmentNotFound = true, SendIfNoAttachmentsFound = false } ); } return attachments.ToArray(); }
And then use value of #var.EmailAttachments as an expression to SendEmail-task, but that is not possible.
The text was updated successfully, but these errors were encountered: