Views: 3720
Last Modified: 24.01.2019

Using Variables in URL

If an action supports the [url] tag, you can use the variables in URL's:



{=Variable:Domain} and {=Variable:Path} are the macros that resolve to the website domain and the path.

Creating a Direct Link to a Task Page

Use this link when creating a message that will prompt a user to perform a task within the context of a current business process.


Creating a Document View Link

This link will open a document for viewing. Use it in an e-mail message when you want to give a user a direct link to a document.


Note: Expression {=Document:DETAIL_PAGE_URL} generates the required link on condition that Detail page URL is specified correctly in the information block settings.

Time check

	=if(and((intval(substr({=Template:Parameter1}, 0, 2)) >= 0), (intval(substr({=Template:Parameter1}, 0, 2)) < 25), (substr({=Template:Parameter1}, 2, 1) = ":"), (intval(substr({=Template:Parameter1}, 3, 2)) >= 0), (intval(substr({=Template:Parameter1}, 3, 2)) < 60)), {=Template:Parameter1}, "time is incorrect")

If the parameter {=Template:Parameter1} passes the time in 24-hour format (hh:mm, for example "21:45"), time is returned correctly. Otherwise returns "time is incorrect".

This expression ca be used for document fields, variables or template parameters.

Courses developed by «Bitrix», Inc.