I am now trying to use this function, but I get the following error:
An error has occurred executing the rule. An error occurred adding the attachment: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Since I have not addressed the GUID in this function, can you tell me where to go to fix it?