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.
我希望为特定的 stype 创建一个新的 sobject。目前我正在使用server.get_unique_sobject( stype, data),但它假设一个 sobject 已经存在,即它创建一个新的 sobject ,如果没有 sobject 与数据库中已经存在的相同数据的组合。
server.get_unique_sobject( stype, data)
我希望每次都创建一个新的对象,即使已经存在一个具有相同名称和数据的对象。
找到了,API本身提供了一种将sObject插入系统中任何sType的方法。这是通过使用server.insert( sType, data = {})where data 是键值对的字典。
server.insert( sType, data = {})