English
addObject
About 92 wordsLess than 1 minute
2025-12-16
This method allows developers to create a business object.
Syntax: FxUI.objectUIAction.addObject(objectApiName, options)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| objectApiName | Business object apiName (required) | string | — | — |
| options | Additional parameters required by the create form | object | — | — |
options
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| objectData | Data used to prefill the form | object | — | — |
| recordType | Record type | string | — | — |
| showType | Window type | string | dialog, full | dialog |
Example
This method returns a Promise, as shown below:
FxUI.objectUIAction.addObject('AccountObj', {
recordType: 'default__c'
}).then(res => {
// todo what you want
}).catch(err => {
// handle error
})