Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now way to set Attachments as an expression #20

Open
palssve opened this issue Jun 2, 2022 · 0 comments
Open

Now way to set Attachments as an expression #20

palssve opened this issue Jun 2, 2022 · 0 comments

Comments

@palssve
Copy link

palssve commented Jun 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant