I have created a Global Constant with some html formatting in it that I want to use for the body of the email message generated by the IDO API call /email which will send the document via email from IDM. I have tried different variations to replace the body with global constant "GC(PastDue)" but I get an error about illegal characters. Has anyone done this and can share? This is the call that works if I manually type in the body:
IDO("IONAPIMethods")
METHOD("InvokeIONAPIMethod")
PARMS("0", "0", "IDM/api", "POST", "/email", SUBSTITUTE("[{{""Name"": ""body"", ""Type"": ""body"", ""Value"": ""{{""emailMessage"": {{""to"": ""{0}"", ""cc"": """", ""bcc"": """", ""subject"": ""{1} - Invoices with a Balance Due"", ""body"": ""Our records indicate that one or more of your current invoices is past due. Attached are any outstanding invoices we have for your account. As a reminder, invoices are due on receipt. Please take care of any outstanding balance(s) as soon as possible."", ""template"": """", ""attachments"": {{""file"": [{{""pid"": ""{2}"", ""filename"": ""filename1.pdf"", ""mimetype"": ""application/pdf"", ""base64"": """", ""xquery"": """"}}]}}}}}}""}}]", V(vDestination), V(vCustNum), V(vPID)), "application/json", "10000", RV(vResponseCode), RV(vResponse), RV(vResponseHeaders), RV(vInfoBar))
Here is an example of my global constant:
<p>Our records indicate that one or more of your current invoices is past due. Attached are any outstanding invoices we have for your account.</p>
<p>As a reminder, invoices are due on receipt. Please take care of any outstanding balance(s) as soon as possible.</p>