在 salesforce 中创建新的配置文件对象 [英] Create new Profile Object in salesforce

查看:44
本文介绍了在 salesforce 中创建新的配置文件对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Profile 对象中插入一条新记录,但是当我尝试使用 SOQL 插入时,它抛出一个错误,CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: [object Object]: entity type cannot be insert: Profile,,

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 ,,

我该如何解决这个问题.我必须成功向 Profile 添加新记录.

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

推荐答案

你不能.

配置文件对象 不支持 create() 调用.

例如使用元数据 API 创建配置文件(从 APEX 访问它有点困难).如果您从外部应用程序(例如 Eclipse IDE 以及任何用 Java、.NET、PHP、Ruby 编写的...)调用 SF,您可以轻松创建它们

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...)

元数据 API 指南中有一些代码示例:http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_profile.htm

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

这篇关于在 salesforce 中创建新的配置文件对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆