I created a Word Template for an agreement and it is linked to the sales order header and lines data entities.
I have system administrator rights, so when I create my sales order and then open the office button and click on the template under the EXPORT TO WORD label, I get the download button on which I click and it prompts me to save it. So all good for a system administrator role .
But when I log in with a test user with the same security roles assigned that the user will have, then I can click on the template, click on the download button, but then instead of prompting me where to save it, I get the error: An error occurred during the export.
When I step through the code, the "catch" part of the try-block, gives me the error: The remote server returned an error: (403) Forbidden,
The above error is generated in class DocuTemplateRender, method renderWordTemplate, when it tries to execute the code in
"var result = documentGenerator.GenerateDocument(params);"
So what security privilege or duty do I need to assign to a custom role for the user to run this function.
Please note, that with the exact same security role assigned to the test user, I can with the test user, click on Export to Excel or Open in Excel. both these 2 also make use of the sales header and lines data entities. So it is not that the user doesn't have access to use the data entities then.
I tried to add the Data Management Operation User role, but it didn't help.
Any help on this , is much appreciated.
Thanks.