function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mnknmnkn 

PATCH UserRoles

Hi there,

 

I want to perform an upsert with a UserRole object from an application with remote access.

The account with that I want to perform this is System Administrator and has all rights, that are necessary.

But if I do my PATCH-request, I get a "WebException" with following response:

[ { 
"message" : "Provided external ID field does not exist or is not accessible: DeveloperName",
"errorCode" : "NOT_FOUND"
} ]

This happens in my application and on workbench (https://workbench.developerforce.com).

 

But if I do a POST-Request it works all fine.

In the api documentation it says it can be updated and created (http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_role.htm).

 

Pls help, thx!