Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (11.9k points)
I am attempting to create a new SalesForce Profile object through their API. The doc shows that the Profile object does have a create() method, but when I attempt to create a new Profile object I receive an error stating, “entity type cannot be inserted: Profile”. I have run a describeSObjects(new string[]{"Profile"}); and I have found the DescribeSObjectResult has a creatable = False. Is there a way to use the API to create new Profile objects or am I stuck using the SalesForce.com Administration Setup UI?

1 Answer

0 votes
by (32.1k points)

I don't think that you actually create new profiles via the enterprise/partner APIs, just update existing ones, but I believe you can create new profiles via the metadata API.

Related questions

Browse Categories

...