I am retrieving a Record URL using urlforrecord() function but all it gives me the complete URL string. My requirement is to hide the long URL string returned, by a text suppose "Record Link", I don't want to show that complex URL string in the mail the user gets just the text on the click of which it redirects it to the URL. Is there any way in appian to achieve this.
You can use safe link function and in label field mention the required name for the long URL
below is the sample code the requirement
local!url:urlforrecord(cons!A_AD_RECORD_TYPE, "7"), a!linkField( label:"link", links:a!safeLink( label :"Record Link", uri: local!url ) ) )
Thanks Ashwin for the reply, there are two sides of the requirement.
[@attributes=, label=link, instructions=, links=[@attributes=, uri=https://appian- mumbai.vpsapp.net/suite/tempo/records/item/lMBYMw7RwsTsh_lC78_BnnjnmneAAcR3V76G5nrZcN39TzPPbnDhfqN19y_6N591BcJAGYDBcjjq9qEkq5XgXx24X-2qITnvLohIP7jkCT88DsOmg/view/summary, label=Record Link, actions=, tooltip=, openInSameTab=], labelPosition=ABOVE, align=DEFAULT, actions=, helpTooltip=, accessibilityText=]
Instead, it should show "Record Link" on which I can click.
If you want to direct to a site, you need to be a bit creative. The last path link is the same if you are using a site, but you will have to change the beginning part of the URL. For example, I extracted the long path part and concatenated the site information and /view/summary to build the correct site URL:
Between this and what Mike suggested below, you should be able to construct the URL to use in your email.
thanksPeter Lewis that worked...
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.