Hi Tom,
I use it like this.....
I send an email with an attached report of all Leave Applications approved by that person in the last month.
This idea is they print it, sign it and then send it back as an attachment in a reply to the email they received in the first place.
So, in the Subject of the outgoing email....
ApproverName#<<RegularUser.DisplayName>>#FromDate <<FIRST_DAY_OF_MONTH(DATE_ADD(CURRENT_DATE,-1))>>#ToDate#<<LAST_DAY_OF_MONTH(DATE_ADD(CURRENT_DATE,-1))>>
When they send back the signed for then their Subject is likely to have a Re: or a Fwd: at the start....So, I strip them
off and then use the remainder of the Subject Line to populate a new record for the received response....
ReceivedEmail.Subject=REPLACE_PATTERN(ReceivedEmail.Subject,'Re: ','')
ReceivedEmail.Subject=REPLACE_PATTERN(ReceivedEmail.Subject,'Fwd: ','')
CREATE ReturnedApproverApprovals WITH ReturnedApproverApprovals.DateReceived=CURRENT_DATE,ReturnedApproverApprovals.SignedApprovalForm=ReceivedEmail.Attachment1
SET ReturnedApproverApprovals FROM ReceivedEmail.Subject
Hope that helps.
MC&HNY