Please try below
First solution suggestion;
in the other attachments setting, please try the following expression
IFS( ISNOTBLANK(INDEX( SPLIT(CONCATENATE(“Files/”,“HighSpeedDoorPMChecklist”,“-”,[JobNumber],“.pdf”), “Files/”), 2)),
CONCATENATE(“Files/”,“HighSpeedDoorPMChecklist”,“-”,[JobNumber],“.pdf”)
)
If the above suggestion does not work, then please try below
Second solution suggestion:
You could create 2 different bots
- Bot 1 when the attachment file is available.
The event condition for this bot will be
ISNOTBLANK(INDEX( SPLIT(CONCATENATE(“Files/”,“HighSpeedDoorPMChecklist”,“-”,[JobNumber],“.pdf”), “Files/”), 2))
This bot will have the other attachment setting path as
CONCATENATE(“Files/”,“HighSpeedDoorPMChecklist”,“-”,[JobNumber],“.pdf”)
- Bot 2 when the attachment file is NOT available.
The event condition for this bot will be
ISBLANK(INDEX( SPLIT(CONCATENATE(“Files/”,“HighSpeedDoorPMChecklist”,“-”,[JobNumber],“.pdf”), “Files/”), 2))
This bot will NOT have other attachment setting but will have other email sending settings as the bot in point 1 ) above,
Basically when the attachment is available, the bot in point 1) above will fire and when the attachment is not available, the bot in point 2) will fire.