# FxUI.objectUIAction.addObject(objectApiName, options)

This method allows developers to create business objects.

# parameter

parameter illustrate type Optional value Default value
objectApiName Business object apiName (required) string
options Create additional parameters that the form depends on object
# options
parameter illustrate type Optional value Default value
objectData Backfill the form's data object
recordType Business type string
showType Window type string dialog、full dialog

# usage

This method returns a Promise Object, as shown in the following example:

FxUI.objectUIAction.addObject('AccountObj', {
    recordType: 'default__c'
}).then(res => {
    // todo what you want
}).catch(err => {
    // handle error
})
lastUpdate: 10/21/2022, 5:22:27 PM