Requirement: Show the pdf file attached in the customer record to the website
We are getting only the id of the file from javaScript. To get the url, we have to load the file using suiteScript. When we use suitescript to load file, there may be a chance of permission issue to access the document.
Solution:
- Login to Administrator Role
- Navigate to Setup > Users/Roles > Manage Roles
- Custom Role: Click Edit
- Click Permissions
- Click Lists
- Permission:
- Select Website (External) publisher
- Note: Set the access Level as desired.
- Click Add
- Click Save