Constructor
new ExternalObject(ses, name)
- Description:
- Constructor
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ses |
Session | Session |
name |
string | Business object name |
Methods
call(paramsopt, dataopt, optsopt) → {promise.<object>}
- Description:
- Call an external object
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object |
<optional> |
Optional URL parameters | ||||||||||||||||||||||||||||
data |
object | string | FormData |
<optional> |
Optional body data (for 'POST' and 'PUT' methods only) | ||||||||||||||||||||||||||||
opts |
object |
<optional> |
Options
Properties
|
Returns:
Promise to the external object content
- Type
- promise.<object>
callParams(params) → {string}
- Description:
- Build URL-encoded parameters
- Source:
Parameters:
Name | Type | Description |
---|---|---|
params |
object | URL parameters as key/value pairs |
Returns:
URL-encoded parameters
- Type
- string
getName() → {string}
- Description:
- Get name
- Source:
Returns:
Name
- Type
- string
invoke()
- Description:
- Alias to
call
- Alias to
- Source: