0

I am creating an action using a vf page that automatically redirects to a url.But,I am getting this error.

My code is as follows :

<apex:page standardController="Lead" action="https://composer.congamerge.com?sessionId={!API.Session_ID} 
&serverUrl={!API.Partner_Server_URL_290} 
&id={!Lead.Id} 
&TemplateId=a0EU000000nQdXr">
</apex:page>

Error message : enter image description here

3
  • 1
    You need to use $ sign before API. Like {!$API.Partner_Server_URL_290} Commented Dec 5, 2016 at 10:31
  • @tandonprateek you should add that comment as an answer =D Commented Dec 5, 2016 at 11:29
  • OK Let me do that as well. Commented Dec 5, 2016 at 11:30

1 Answer 1

2

You need to use $ sign before API. Like {!$API.Partner_Server_URL_290}.

1
  • Please mark this as answered. Commented Dec 5, 2016 at 13:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .