I have configured the email fields to in Reports things like this:
{'to': '[email protected]', 'cc': 'subject': 'Quotation / Confirmation of
Order'}
(example for Sale)
This works OK with static text, but is not very useful as the text needs to
be dynamic and related to the Report.
What I would like to achieve is:
To: email address of Contact on the Party for this Sale
Subject: Reference of Sale, Description of Sale
I have seen mention of this and that "You have to use a PYSON statement",
but I do not know how to do this.
Could someone please give an example? It would be really useful to me if I
could see an example of how this works, I am sure someone must have done it
before.
The required fields are available in the actual Reports, but I need to be
able to use them in the email if possible.
Many thanks,
Paul