Create new Profile Object in salesforce

好久不见. 提交于 2020-01-06 14:04:43

问题


I want to insert a new Record in Profile object, but when I try to insert with SOQL, it throws an error, CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: [object Object]: entity type cannot be inserted: Profile ,,

How do I resolve this problem. I have to add new records to Profile successfully.


回答1:


You can't.

Profile object does not support create() call.

Profiles are created for example with Metadata API (which is bit hard to access from APEX). You can easily create them if you're calling SF from external application (Eclipse IDE for example but also anything written in Java, .NET, PHP, Ruby...)

There are some code samples in the Metadata API guide: http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_profile.htm



来源:https://stackoverflow.com/questions/21545946/create-new-profile-object-in-salesforce

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!