Follow up question. I am now getting the following eror on my first scenario.
The operation failed with an error. Function ‘recipients’ finished with error! Cannot read properties of undefined (reading ‘replace’)
I only have 2 roles in my pandadoc template.