Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们可以使用 Schema.sObjectType.Contact.isUpdatable() 来检查当前用户是否有权更新联系人对象。
我想要动态对象。我的对象名称在 objName 字符串变量中。
字符串 objName = '账户'; Boolean isUpdateableAccount = Schema.getGlobalDescribe().get(objName).getDescribe().isUpdateable();