While deploying roles, I am getting error with cen...
# ask-stanley-ai
t
While deploying roles, I am getting error with center type, The object field centertype must not be EMPLOYEE, CUSTOMER, PARTNER, VENDOR ? That leaves only a few other centers? Am I doing something wrong? I searched around and haven’t found any workaround. I tried this though, creating a manual role UI with same ID and then updating it, it works, but doesn’t make any changes on role 😄 Just says updated, tried it for a partner role, I am not able to delete permissions from it in UI.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you can change the center type of a role using SuiteScript. You can use the
nlapiSetFieldValue
function to set the center type. Here is the command you can use in the console:
Copy code
nlapiSetFieldValue('centertype', 'SALESCENTER')
Please replace 'SALESCENTER' with the center type you want to set. However, please note that this method might not work for all fields, especially those that are read-only. Also, the changes might not be visible until you save the role. Another method mentioned in the conversations is to use SDF (SuiteCloud Development Framework) to duplicate a role quickly. However, you might still need to refine permissions via the UI after duplicating the role. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841125488
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839294434
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83581543
Please provide your feedback on this answer.