```<platformCore:code>INSUFFICIENT_PERMISSIO...
# suitetalkapi
c
Copy code
<platformCore:code>INSUFFICIENT_PERMISSION</platformCore:code>
<platformCore:message>You do not have permissions to set a value for element defaultaddress due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.</platformCore:message>
I'm trying to update an existing customer using PHP toolkit. The
defaultShipping
address string is populated from the search object and is always included in the xml request even if I set it to blank. Has anyone else run into this?
n
Have you followed up on the message that's telling you you don't have sufficient permission and checked the things it says? (and also checked the role you're using has the correct permissio(s))
c
@NElliott Yes, full access on the record type for the integration role.
s
Does the form have access to edit that field?
c
@slc-abotbyl Going to check that out now.
Yes, we tried setting the form directly.
s
And you could? Did you ensure that view was the same as your API user?
(I always just log in as the API user to UI and try the change, 9 times out of 10 with that error I can't see or can't edit the field in UI)
c
We we're submitting the object from
CustomerSearchBasic
to the update function. Instead, we needed to create a
new Customer()
and update the id and fields we wanted to change.
s
Ya, but if either the user or form can't view & edit the field that will throw that error. Maybe it's allowed to view but not change?
c
It's working when using the proper object. It wasn't the form in this case.