Purpose:
Allow integrations to discover whether a certain action is supported by the Host application
Sample Usage:
import host from '@elliemae/em-ssf-guest'
...
const action = "ACTION_ID"
async function displayApplicationCapabilities(action) {
try {
const applicationObject = await host.getObject('application')
const supportForAction = applicationObject.supportsAction(action)
console.log(supportForAction)
} catch (error) {
console.log({error})
}
}
displaySupportForAction(action)
import host from '@elliemae/em-ssf-guest'
...
const action = "ACTION_ID"
host.getObject('application')
.then(
(applicationObject) => {
const supportForAction = applicationObject.supportsAction(action)
console.log(supportForAction)
}
)
.catch(
(error) => {
console.log({error})
}
)
Interface:
Input:
None
Returns:
Type: Boolean
Returns true
or false
, indicating whether the action is supported by the host application
Currently Supported Actions:
Details on each actions specific interface are defined in the application.performAction
method reference.
Action ID | Description | Supporting Applications |
---|---|---|
getAvailableResources | Allow the user to select and attach files from the host applications document repository (the Encompass eFolder, for example), or upload attachments from their local drive. References to said file attachments - referred to as resources in the EPC API - are made available to the caller of this method once the action is fulfilled by the user. | Encompass Desktop Loan Officer Connect |
updateCredentials | Allow the user to update the credentials assigned to them for use with your application - as long as they are entitled to do so by their Administrator. The newly updated credentials are provided to the caller of this method once the action is fulfilled by the user. | Encompass Desktop Loan Officer Connect Consumer Connect |