Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
15 replies
Answers
1 answer
Subscribers
5 subscribers
Views
9389 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Is there a way to use a!recordLink in a process model, to display a link to a re
ryant122
over 8 years ago
Is there a way to use a!recordLink in a process model, to display a link to a record when setting up an email? Or should I be using a different function?
OriginalPostID-196831
OriginalPostID-196831
Discussion posts and replies are publicly visible
0
sikhivahans
over 8 years ago
@ryant If you would like to surface a link to Record in the SAIL interface, use the 'Record Link' SAIL component at https://forum.appian.com/suite/help/16.1/SAIL_Components.html#RecordLink in association with 'Link' SAIL component at https://forum.appian.com/suite/help/16.1/SAIL_Components.html#Link.
If your intention is to find out the link to record and thereby use it in a mail(so that clicking the link navigates the user to the corresponding record), then opt for fn!urlforrecord() at https://forum.appian.com/suite/help/16.1/Scripting_Functions.html#urlforrecord.28.29.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ryant122
over 8 years ago
I tried using fn!urlforrecord(cons!FMU_BA_BUILDING_ACCESS_RECORDTYPE, null) and then tried fn!urlforrecord(cons!FMU_BA_BUILDING_ACCESS_RECORDTYPE, pp!id) and both returns error: "Template document not accessible"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 8 years ago
@ryant, Can you please check use the above rule in the script task and store it in a variable and then pass this as the input to the template variable?. I tried same through script task and able to get the URL correctly. may be it has something to do with the email template.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@ryant Would you be able to expand on what you are trying to do?
Assuming that a record exists with pp!id as identifier and the link to record has returned output correctly, how did you make use of this value in the process further(that is the way you have configured your template etc.)? The solution depends depends on this question as per my knowledge.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ryant122
over 8 years ago
@sikhivahans I am trying to setup an email in the process model that gives a direct URL to the record. As I have setup a link to the record under records, using
a!recordLink(
label: rf!pp.id,
recordType: rp!type,
identifier: rp!id
)
I thought using a similar method in the process model would achieve that same result.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@ryant Please refrain from using the a!recordLink() if you aren't on a SAIL interface. 'Record Link', that is, a!recordLink() has significance only when it is used in SAIL interface because the output of it is a SAIL component and it can be only understood by SAIL interfaces, and other objects can't understand this format.
Use fn!urlforrecord() to construct a link as specified above and pass the same value as an argument to the email template. Also the email template being used by you should be able to hyperlink the value(that is, output of fn!urlforrecord()) passed to the template.
Still if you aren't able to resolve the issue, I would like to suggest to provide following info:
1. How are you constructing the link to Record? Are you making use of a!recordLink() or fn!urlforrecord()?
2. How are you passing the link(to record) to the email template, that is, are you passing on the fly or did you create a separate PV that stores this value?
3. Is the email template able to hyperlink the value of link? Would you be able to attach the template?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ryant122
over 8 years ago
@narasimhaadityac Thank you! This seemed to have work. Also, my template was messing it up so thanks for pointing that possibility out @sikhivahans.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ryant122
over 8 years ago
Can the URL be replaced with text otherwise it is just a really long URL?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@ryant Yes you can, and there is a shared component by name 'PSI URL Shortener' which will aid you in doing so.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
Link to above mentioned shared component is
forum.appian.com/.../summary
. Consider this if your prime intention is to surface URL at any cost.
And afaik there isn't a OOTB function to shorten the URL.
Or you could consider the approach of hyperlinking the text. For instance, provide a text namely 'Click here to access the record' and hyperlink the word 'here', that is <a href="###linkToRecord###">here</a>.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>