In send email service , i want to send some message along with deep link . when we get that email and upon clicking on that deep link it should redirect to the summary page for approval.can someone help me how to achieve this
Discussion posts and replies are publicly visible
Try to create a email body using HTML template with the required details along with record link in it (record link should be provided using <a href = record link which you have created>),
create record link by passing the request id to it, so that when you click on the link it will navigate to the summary page of the request.
/*provide the record name and the record value which you wanted to open */ urlforrecord(recordType!record, ri!requestId)
shivanireddys is this the way?i'm getting error,can you please help
Hi ZAINAB ,
urlForRecord is function and it shouldnt be called inside quotes as Appian will think them as text and not as function to be executed and keep & to get concatenation.
"<a href = "& urlforrecord( recordtype: /*your recordType*/, recordIds:/* your primary key*/ ) &"> Summary</a>"
Sri Ram Kaja : It worked but it is opening from tempo/records but i need it to be open it from site. Like how we open application site and then summary page .
substitute( urlforrecord(ri!recordType, ri!identifiers), "/tempo/records/item/", "/sites/" & sitename/page/summary stub ) & "/record/" )
ZAINAB Try using substitue to replace the tempo link with the record url
="<html><body><p>Hi,</p><p>The request is rejected by: " & pv!requests.Email & "</br>Rejection Comments: " & pv!requests.rejectionComments & "</br>
<a href= "&substitute( urlforrecord(recordType!REQUESTS, pv!requests.id),"/tempo/records/item/", "/sites/" &"Request/page/summary") & "recordType!REQUESTS""</a>
</p></body></html>"
shivanireddys :is this correct ? can you please advise
Hi Fursat, Hope this will be helpful
for a give code snippet, this will be html response. When we click on this summary (link), we will be redirected to the configured record summary page.
This might be a better option
docs.appian.com/.../fnc_scripting_urlforsite.html
akhilsaijayanth : I tried this but getting 403 access denied error , i have admin access also the application