Hello folks! I have a SuiteApp deployment challenge that I'm wondering if anyone might have a solution for. I have a SuiteApp that (when the feature is enabled) looks up values from subsidiary records. We have users that both have subsidiaries enabled and some who don't. Until recently, the server-side scripts were set to run as administrator, and everything works great. Now we've introduced a custom role instead. The problem is, if I add the permission for Subsidiaries, the project fails to validate for accounts who don't have subsidiaries enabled. I'm wondering - can I use an SDF installation script or something to handle this? The easy solution would be: if subsidiaries are enabled, then edit the role and add the permission. But you can't edit roles programatically. Thoughts?
UPDATE: NetSuite support responded that there is no solution for this challenge, and the only solution is to continue to use "Run as Administrator" in this situation.