Advanced Topics
Show/Hide Download PDF Button
3min
the "download invoice pdf" button on the invoice record info page can be hidden or shown according to the user's preference the button's visibility can be controlled at the record or user level, and needs can follow any approach based on their needs show/hide download pdf button at the record level create a custom field on the invoice object in the netsuite org with the name "custbody bw disable download pdf", and this field values will be automatically synced into their field "hide download pdf", which is present on the netsuite invoice object in the salesforce the "download pdf" button is shown/hidden based on the value in the "hide download pdf" field if the field "hide download pdf" is checked, the "download pdf" button is hidden, or else the button is shown note to show/hide the "download pdf" button, the user must change the value of the field "custbody bw disable download pdf" in the netsuite org accordingly these values will be synced back to salesforce into the "hide download pdf" field on the invoice object using the breadwinner syncs and will show/hide the "download pdf" button hide the download pdf button at the user level to hide the "download pdf" button for a particular user, follow the below steps create a new custom permission set or use the existing one if there is one already give read access to the "hide download pdf" field on the "netsuite object" object assign this permission set to the user who wants user level access to the "download pdf" button make the value of the field "hide download pdf" on the "netsuite object" object checked for the org level subsidiary record of invoice, and then the button "download pdf" is hidden for all the users who have this permission set assigned note make sure that the permissions on the field are assigned to the user by the permission set only and not via the profile level resolving permission conflicts consider two users, a and b, with the system admin/standard user profile let's say that user a wants to hide the "download pdf" button for user b so, as explained above, user a will create a custom permission set and give read access on the field "hide download pdf" on the "netsuite object" object and assigns this permission set to the user b and makes the value of the field "hide download pdf" as checked for the org level subsidiary record of invoice to hide the "download pdf" for the user b but the button "download pdf" is hidden for both the users a and b the reason is straightforward by default, user a also has access to the field "hide download pdf" at the profile level, and hence, the button is hidden for user a since the field "hide download pdf" is checked to resolve this issue, remove profile level access to the field "hide download pdf" on the "netsuite object" for user a