<@UPNTLRG0Z> You have to check whatever role you a...
# suitescript
z
@Vishnu Gupta You have to check whatever role you are passing into the headers of the call. That role doesn’t have the permissions assigned.
v
@Zack Here is my code
Copy code
var configurations = config.load({
            type : "companypreferences"
        });
What role should I have to access it. I have a adminstration role
z
Set up company should be the permission. Are you actually using the admin role or is a custom admin role?
v
I am using admin role it's not custom
Sorry it's custom Developer admin
z
Can you check the permissions on it to see if it has “Set Up Company”?
v
Yes, it has "Set up company" permission
It worked!!!!
I am getting the configurations ```{ "type": "companypreferences", "isDynamic": false, "fields": { "EMAILMAINTENANCECOMPLETE": "F", "PERFORMANCELOGGING": "F", "ALLOWLANGUAGE_XX_US_WTHID": "F", "SHOWINDIVIDUALSASCONTACTS": "F", "_eml_nkey_": "249940112",
But how to retrive the field value
getFieldValue is not working
z
Pull the value as an object should work
configurations.field.EMAILMAINTENANCECOMPLETE
v
No it didn't worked 😞
z
Did you do getValue or getFieldValue? You want getValue for 2.0.
v
Yeah!!!! configurations.getValue() worked
👍 1
Do you have idea about cash order and sale order?
z
What about them?
v
how to create a
salesorder