Rename attachment

Rename attachment

You can rename an attachment in the workflow before the attachment is added in an email with the advanced email tool component, Rename attachment.

 

The component has these parameters:

 

NG2WorkflowRenameAttachment0001

 

Current attachment name

This is the existing attachment, that has previously been loaded in the current workflow. You can either specify a fixed value or click the T-icon to select the attachment via an XPath expresssion.

 

Rename to

Here you specify the name, that the attachment should be renamed into. You can either specify a fixed value or click the T-icon to select the attachment via an XPath expresssion.

 

An example of use can be found here.

 

If you see an attachment name when you receive the email like this:

 

NG2AttachmentName_Illegal0001

 

Then you are probably using an invalid characters in the attachment name. There is no standard as to which characters, that are allowed so you need to test for invalid characters and e.g. replace characters not found in the lists: a-z, A-Z and 0-9. On one mail server the dash (minus) character caused such an attachment name.

    • Related Articles

    • Set attachment name

      The advanced set meta data workflow component, Set attachment name sets the name of the attachment for the next email(s) in the current workflow. This can be used with these workflow components e.g. to add an extra attachment to an email: File to ...
    • Payload to attachment

      With the Payload to attachment component you can set the payload of the workflow to be the contents of the email attachment. The name of the attachment is set in the workflow component, Set attachment name, which you should insert first in the ...
    • Payload to first attachment

      With the Payload to first attachment component you can copy the payload of the workflow to be the contents of the first email attachment. The name of the attachment is set in the workflow component, Set attachment name, which should be set before ...
    • Resource to attachment

      You can attach any file from the NG2 resources as an attachment to an email with the workflow component, Resource to attachment. The email can later e.g. be emailed or saved with this resource with either of the components, Create PDF email or Create ...
    • Rename a workflow

      If you want to rename a workflow, then you first need to click on the workflow on the workflow list: After you have selected the workflow you can rename it by clicking on the pencil on the top - next to the workflow name: In the pop up window you can ...