# FxUI.objectUIAction.addObject(objectApiName, options)

该方法允许开发人员创建业务对象。

# 参数

参数 说明 类型 可选值 默认值
objectApiName 业务对象apiName(必填) string
options 创建表单依赖的其他参数 object
# options
参数 说明 类型 可选值 默认值
objectData 回填表单的数据 object
recordType 业务类型 string
showType 窗口类型 string dialog、full dialog

# 用法

该方法返回一个 Promise对象,示例如下:

FxUI.objectUIAction.addObject('AccountObj', {
    recordType: 'default__c'
}).then(res => {
    // todo what you want
}).catch(err => {
    // handle error
})
lastUpdate: 2022-4-17 18:47:43