Velocity Scripting referencing a custom object - Error message I can't google!
Hi,
I am receiving the below error message when trying to reference a custom object in a script.
Cannot get email content- <div>An error occurred when procesing the email Body! </div> <p>String index out of range: -1 near</p> <div><pre ></pre></div>
The code I have in place is:
<table style="border-spacing: 0; border-collapse: collapse; width: 600px;">
#foreach ($202407DCPG in $2024DCPG_cList)
<tr>
<td style="padding: 4px; font-family: arial; border-collapse: collapse !important; border: 1px solid black">
${202407DCPG.brokerContactEmail}
</td>
<td style="padding: 4px; border-collapse: collapse; border: 1px solid black">
${202407DCPG.sponsorName}
</td>
</tr>
#end
</table>
I have the appropriate fields checked on the right hand menu.
I have tried doing a more simple pull, outside of the table format too and get a similar error.