Is there a way to add an Link to a particular report onto the visualforce email template. example:<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+'/'report.id}">Link</apex:outputLink>

instead of hard codding the id is there any option to add the link to a particular report on vf template

| improve this question | | | | |

Simply use:

<apex:outputLink value="{!('/' + report.id)}">Link</apex:outputLink>
| improve this answer | | | | |
  • That means i have to query the report and then add that to the Outputlink? – user7447 Feb 29 '16 at 8:57
  • 1
    @user7447 I would say yes. Otherwise how would you tell your VF page which report record do you want to go to? – Lance Shi Feb 29 '16 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.