ServerURL

Returns the base URL (either HTTP or HTTPS) of the Service Manager Application Server. For Service Manager Cloud customers, an example is http://mycompany.saasit.com. (For Service Manager on-premise customers, your application administrator determines the URL of your Service Manager Application Server.)

In previous releases, this function was inconsistent and returned a URL with and without a trailing slash.  This function always returns a URL with a trailing slash.

Syntax

ServerURL()

Enabled For

For a description of the business object categories, see Notes on "Enabled For".

Business Object Category Yes/No
Business Rules: Before-Save Rules Yes
Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load) Yes
Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) Yes
Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load) Yes
Business Rules: Editing Rules Yes1
Business Rules: Initialization Rules Yes
Business Rules: Read Only Rules No
Business Rules: Required Rules Yes1
Business Rules: Validation Rules Yes
Client Expressions No
Object Permissions Yes
Services Yes
LDAP Yes
Mobile Yes
Quick Actions (except UI Quick Actions) Yes
UI Quick Actions No
Reports Yes
Search/Dashboard without field references Yes
Search/Dashboard with field references Yes
1. Except when this field appears on a form or is triggered by such a field.

Parameters

none  

Returns Value

Unicode text value. Returns a URL.

Example

$(ServerURL())

If the company name is MyCompany, Inc., this example returns http://mycompany.saasit.com.