Tool object has a few service methods and fields. Use them for multiple purposes:
- to retrieve system settings such as Targetprocess URL path, Service desk path, Company name;
- to convert names of entity types to custom process terms;
- to transform HTML descriptions to the format suitable for transfer via emails.
Methods vs Fields
A method is a set of commands (functions) referred to by name. You are able to execute all the commands by using the name of the method. Methods can take values as parameters and return a value as a result.
A field is a member variable that belongs to an object.
|Url||Object entity, Object user||String||Returns a URL (string) of the view/edit page for the specified entity object. The user object is required to verify permissions.|
|Term||String entity_name||String||Rewrites an entity name (Term) with one customized in the Default process.|
Examples: How to use terms.
|String html||String||Processes HTML-formatted text from Descriptions. Replaces relative URLs and paths with absolute URLs and paths to ensure proper display.|
|ApplyStyleToMention||String html||String||Processes HTML-formatted text from Descriptions. Replaces system tags for @mentions with properly styled strings.|
|ShowOnlineLink||Object user||Boolean||Used only in the |
|String||The name of your company, if it has been set in the past.|
Value is retrieved from GlobalSettings data table. The table is accessible within API or SQL scripts only. Access from UI is not supported anymore.
Defaults to "Targetprocess" if the name of the company is not specified in the data table.
Replace references to this variable with hard-coded actual name of your company when required.
|HelpDeskPortalPath||String||The absolute URL to your Service Desk or Help Desk portal.|
For Service Desk it is updated automatically when you activate the portal.
For obsolete Help Desk portal it should be set manually in Targetprocess System Settings.
|ApplicationPath||String||The absolute URL to your Targetprocess application.|
Updated over 5 years ago