English
editObject
About 97 wordsLess than 1 minute
2025-12-16
This method allows developers to edit a business object.
Syntax: FxUI.objectUIAction.editObject(objectApiName, objectDataId, options)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| objectApiName | Business object apiName (required) | string | — | — |
| objectDataId | Record ID (required) | string | — | — |
| options | Additional parameters required by the edit 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.editObject('AccountObj', '623c3b9d4221fd00010c7971').then(res => {
// todo what you want
}).catch(err => {
// handle error
})