Other
FintechOS Studio provides with a set of methods which allow you to trigger specific actions like: show messages, send emails, generate reports, etc.
| Method | Description |
|---|---|
| ebs.InvariantDate | JSON object that stores a date in a culture-invariant format. |
| ebs.getSafe | Executes a function and returns either its return value or, in the case of an error/exception, the undefined property. |
| getUserId() | Returns the ID of the currently logged user account. |
| getUserName() | Returns the display name of the currently logged user account. |
| getUserRoles() | Returns the security roles of the currently logged user account. |
| ebs.openBusinessUnitModal | Opens a business unit selection modal, allowing users assigned to multiple units to change their business unit context. |
| ebs.showMessage | Generates a notification toast message. |
| ebs.alert | Displays a modal window with one button (an alert window). |
| ebs.confirm | Displays a modal confirmation window. |
| ebs.confirmAsync | Displays a modal confirmation window that returns the user’s selection asynchronously. |
| ebs.showLoadingPanel | Displays a loading screen animation that lasts until reaching the end of the current code block. |
| ebs.hideLoadingPanel | Hides a loading screen animation. |
| ebs.ocr | Extracts text fields from an identity document scan stored in the upload folder. |
| Sends an email with a predefined template. | |
| ebs.callAction | Calls by ID an internal endpoint set up on the FintechOS platform. |
| ebs.callActionByName | Calls by name an internal endpoint set up on the FintechOS platform. |
| ebs.callActionByNameAsync | Asynchronously calls by name an internal endpoint set up on the FintechOS platform. |
| ebs.callReport | Generates a report that was set up on the FintechOS platform for a specific entity by the report ID. |
| ebs.callReportByName | Generates a report that was set up on the FintechOS platform for a specific entity by the report ID. |
| os.powerBiReport | Object that allows you to interact with a Power BI report. |
| ebs.upload | Uploads a file to the specified upload folder. |
| ebs.openPdfEditor | Opens a file attribute in a PDF editor. |
| ebs.signDocument | Signs a pdf document. |
| ebs.getBusinessStatusesMap | Returns the business statuses associated to an entity based on its business workflow configuration. |
| ebs.changeBusinessStatus | Changes an entity record's business status based on the specified business status ID. |
| ebs.changeBusinessStatusByName | Changes an entity record's business status based on the specified business status name. |
| ebs.changeBusinessStatusByNameAsync | Asynchronously changes an entity record's business status based on the specified business status name. |
| ebs.getEntitiesFromMetadata | Returns entity information from metadata |
| ebs.getOptionSetIdByName | Returns the ID of an option set based on its name. |
| ebs.getOptionSetItemsFromCache | Retrieves the cached option set items of an option set. |
| ebs.getOptionSetItemNameById | Returns the name of an optionset item based on the specified ID. |
| ebs.getOptionSetItemDisplayNameById | Returns the display name of an optionset item based on the specified ID. |
| ebs.getOptionSetItemIdByValue | Returns the ID of a specified optionset item by value. |
| ebs.getOptionSetItemIdByName | Returns the ID of a specified optionset item by specified name. |
| ebs.goToDashboard | Navigates to the home page and selects the provided dashboard. |
| ebs.getEntityMetadataAsync | Returns metadata of the specified entity by using an implicit Promise to return its result. |