English
selectObject
About 143 wordsLess than 1 minute
2025-12-16
This method allows developers to select business object data.
Syntax: FxUI.objectUIAction.selectObject(objectApiName, options)
Parameters
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| objectApiName | Business object apiName (required) | string | — | — |
| options | Additional parameters | object | — | — |
options
| Parameter | Description | Type | Allowed Values | Default |
|---|---|---|---|---|
| target_related_list_name | Related list api_name (visible in the field settings page in the admin console) | string | — | — |
| single | Whether only one item can be selected | boolean | — | false |
| maxNum | Maximum number limit | number | — | — |
| filters | Filter conditions | array | — | — |
Example
This method returns a Promise, as shown below:
FxUI.objectUIAction.selectObject('AccountObj').then(res => {
// todo what you want
})
FxUI.objectUIAction.selectObject('AccountObj', {
single: true,
maxNum: 6,
filters: [
{ "field_name": "account_id__c", // field apiName
"field_values": [that.account_id__c], // field value
"operator": "EQ" // operator, EQ means equals
},
{ "field_name": "account_main_data_id__c", // field apiName
"field_values": [that.account_main_data_id__c], // field value
"operator": "EQ" // operator, EQ means equals
}
]
}).then(res => {
// todo what you want
})