I have a requirement of including the link of a request's record dashboard summary view in the email body. When clicked, the link should open the summary dashboard for that particular request ID. Any way to implement this?
Discussion posts and replies are publicly visible
I have a solution for your problem. There isn't any straight forward way but this can be achieved with a little hack. You will have to generate the URL of the record from the recordLink function and then do some manipulation on the output string to make a working url. I am adding a code snippet below. You can try using this.
In this code, you can make certain things dynamic like identifier, your environment Url.I hope this helps.
How about the urlforrecord() function?
Oh yes. How can I forget this. My bad. But urlforrecord() will not give you flexibility to define which additional dashboard you want to open. That will again require manipulation on the output string.
I use the following rule to create a record link URL for use with the SafeLink feature and keep the new tab inside the Site context. It's very slightly tricky to always provide the Site Context (i.e. the site URL stub), but when you can, it's very functional. An additional advantage here is you don't need to hack into the back-end value of a!recordLink (though it is fun to do that kinda stuff).
This rule, i.e. rule!GLOBAL_Utility_getSiteRecordURL, will take in a recordType, record Id, site context string, optional site page context (to open the target record on a specific Site tab), and optional dashboard stub (to open the record on a particular View). If no Site Context is provided, it defaults to the Tempo record link; and if no record ID is provided, it defaults to the Tempo Record List (per the behavior of urlForRecord()).
local!defaultURL: urlforrecord(ri!recordType, ri!recordId),
/* Can't link to a record list in sites context */
"sites/" & ri!siteContext &
"/page/" & ri!sitePageContext
substitute(local!addSiteContext, "summary", ri!dashboardStub)
/* by: Mike Schmitt */
I understood only these Rule Inputs i.e ri!recordType, ri!recordId .
What to use in the other one and of which type . Please explain
Can you clarify what you mean?
I mean to say that the rule inputs which you are using . That is ri!siteContext and ri!sitePageContext , ri! dashboardStub . What type of inputs I have to give to these rule inputs .
© 2023 Appian. All rights reserved.