We are using a Custom Role for our extension's .ss...
# suitecommerce
v
We are using a Custom Role for our extension's .ss files since our backend models need higher level of permissions to access the schema. Every time we update an extension (version) and activate, we have to set the permissions again for all .ss files of that extension. Is there a way to automate this? (ex: some kind of UE script maybe?) (Using SC 2020.1 with custom extensions)
p
Elevated permissions are not scriptable AFAIK
Fun fact! This is why the SC commerce extensions do not use Elevated Permissions
and Instead rely on the deprecated, frowned upon practice of using suitelets instead.
For example, guest order status.
v
😞 updating is going to be a very painful task then
p
That's why for delivery services to end customers of exclusive customizations we mostly don't increment version numbers. It's obviously different if you are developing a extension for the marketplace.
v
The issue is, if we do not update the extension's version and try to update the extension's bundle in a client environment, it throws an error (something on the lines of "no new version found") So we're forced to update the version of the extension.
p
Ah you're pushing bundles. For customers i deploy extensions manually to prod.
👍 1
exactly to avoid these kinds of issues too.
but again, this works if the extension is for one customer and it's not a scalable model for extensions used on multiple customers.
v
Yup, exactly.
Thanks for the heads up @PabloZ Now I have a clearer understanding.