{"id":8937,"date":"2021-06-10T17:56:31","date_gmt":"2021-06-10T10:56:31","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=8937"},"modified":"2021-07-06T17:15:07","modified_gmt":"2021-07-06T10:15:07","slug":"workflows-su-dung-macro-trong-bieu-thuc","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/workflows-su-dung-macro-trong-bieu-thuc\/","title":{"rendered":"[Workflows] Using Macros in Expressions"},"content":{"rendered":"<h4 id=\"Using_Variables_in_URL\"><strong>Using Variables in URL<\/strong><\/h4>\n<p>If an action supports the&nbsp;<code>[url]<\/code>&nbsp;tag, you can use the variables in URL&#8217;s:<\/p>\n[url]<a href=\"http:\/\/%7B%3Dvariable:Domain}\/%7B=Variable:Path%7D[\/url]\">http:\/\/{=Variable:Domain}\/{=Variable:Path}[\/url]<\/a><br \/>\nHere:<\/p>\n<p><code>{=Variable:Domain}<\/code>&nbsp;and&nbsp;<code>{=Variable:Path}<\/code>&nbsp;are the macros that resolve to the website domain and the path.<\/p>\n<h4 id=\"Creating_a_Direct_Link_to_a_Task_Page\"><strong>Creating a Direct Link to a Task Page<\/strong><\/h4>\n<p>Use this link when creating a message that will prompt a user to perform a task within the context of a current business process.<\/p>\n[url]<a href=\"http:\/\/intranet_domain\/company\/personal\/bizproc\/%7B=Workflow:ID%7D\/[\/url]\" rel=\"nofollow\">http:\/\/intranet_domain\/company\/personal\/bizproc\/{=Workflow:ID}\/[\/url]<\/a><\/p>\n<h4 id=\"Creating_a_Document_View_Link\"><strong>Creating a Document View Link<\/strong><\/h4>\n<p>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.<\/p>\n[url]{=Document:DETAIL_PAGE_URL}[\/url]\n","protected":false},"excerpt":{"rendered":"<p>Using Variables in URL If an action supports the&nbsp;[url]&nbsp;tag, you can use the variables in URL&#8217;s: [url]http:\/\/{=Variable:Domain}\/{=Variable:Path}[\/url] Here: {=Variable:Domain}&nbsp;and&nbsp;{=Variable:Path}&nbsp;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 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5229],"class_list":["post-8937","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-workflows"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/8937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=8937"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/8937\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=8937"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=8937"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=8937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}