'Add the field name from the input node. Multiple properties can be set separated by comma.',
},
],
},
],
default:{},
description:'Array of supported attachments to add to the message',
},
],
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
displayOptions:{
show:{
resource:['draft'],
operation:['get'],
},
},
default:{},
options:[
{
displayName:'Attachment Prefix',
name:'dataPropertyAttachmentsPrefixName',
type:'string',
default:'attachment_',
description:
"Prefix for name of the binary property to which to write the attachment. An index starting with 0 will be added. So if name is 'attachment_' the first attachment is saved to 'attachment_0'.",
},
{
displayName:'Download Attachments',
name:'downloadAttachments',
type:'boolean',
default:false,
description:"Whether the draft's attachments will be downloaded",
description:'Whether to return all results or only up to a given limit',
},
{
displayName:'Limit',
name:'limit',
type:'number',
displayOptions:{
show:{
operation:['getAll'],
resource:['draft'],
returnAll:[false],
},
},
typeOptions:{
minValue: 1,
maxValue: 500,
},
default:50,
description:'Max number of results to return',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
operation:['getAll'],
resource:['draft'],
},
},
options:[
{
displayName:'Attachment Prefix',
name:'dataPropertyAttachmentsPrefixName',
type:'string',
default:'attachment_',
description:
"Prefix for name of the binary property to which to write the attachments. An index starting with 0 will be added. So if name is 'attachment_' the first attachment is saved to 'attachment_0'.",
},
{
displayName:'Download Attachments',
name:'downloadAttachments',
type:'boolean',
default:false,
description:"Whether the draft's attachments will be downloaded",
},
{
displayName:'Include Spam and Trash',
name:'includeSpamTrash',
type:'boolean',
default:false,
description:'Whether to include messages from SPAM and TRASH in the results',