function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ritesh AswaneyRitesh Aswaney

Try

<apex:outputLink value="https://www.appextremes.com/apps/Conga/PointMerge.aspx?sessionId={!API.Session_ID}...." > Statement - International</apex:outputLink>

levaleva
<apex:outputLink>
	{!$API.Session_ID}<apex:param name="sid" value="{!$API.Session_ID}"/>
	{!$API.Partner_Server_URL_80}<apex:param name="purl" value="{!$API.Partner_Server_URL_80}"/>                     
</apex:outputLink>

 

 

VishwanathVishwanath

HI Ritesh,

Thank you for your replay

 

I try it before but gives error as "Error: Unknown property 'AccountStandardController.API' " while save the page

 

after that i use sessionid={!$API.Session_ID} , it saved but record did not display anythink

 

when i run the custome link from the account page layout the below id's are displaing

 

https://www.appextremes.com/apps/Conga?sessionId=00DV0000000DCGd%21ARkAQMF8oVtG62OILoi8s2fEsolVZygnnxsFpL_1MdZISsVfxztr19JmkTVe9c.2d3TMOEJDx6Qn_

OPofWt1MddL5.e4saYe&serverUrl=https%3A%2F%2Fcs12.salesforce.com%2Fservices%2FSoap%2Fu%2F8.0%

2F00DV0000000DCGd&id=0018000000q9alF&reportid=[Aggregation]00OV0000000JOuI?

pv1=0018000000q9alF&reportid=[NonAggregation]00OV0000000JOuH?pv1=0018000000q9alF,[PrimaryRoyalty]

00OV0000000JOuF?pv0=00380000017HcnV&templateid=00PV0000000JIaK&ds4=1&ofn=Statement-International

 

 

 

 

 and when i run the same link in visualforce force page from account page layout below  id's are displaying,

 

https://www.appextremes.com/apps/Conga?sessionId=00DV0000000DCGd!

ARkAQAgD4adDaPkxA4.jaFxSuw3stbhQ7wjmApnDjnv6uwAuRyuO11BGiMD_._

Telj5sxIFOy.OlJXEpaFLLy7vukNhr23dl&server

Url=https://c.cs12.visual.force.com/services/Soap/u/8.0/00DV0000000DCGd&i

d=0018000000q9alFAAQ&reportid=[Aggregation]00OV0000000JOuI?pv1=0018000000q9alFAAQ

&reportid=[NonAggregation]00OV0000000JOuH?pv1=0018000000q9alFAAQ,[PrimaryRoyalty]00OV0000000JOuF?

pv0=00380000017HcnV&templateid=00PV0000000JIaK&ds4=1&ofn='Statement-International'

 

 

 

the red marked ids are different, i need the same id in visualforce link as custom link

 

please let me know how can i solw this problem

 

 

 

Andy BoettcherAndy Boettcher

Your server URL from your custom link is your regular instance - cs12.  Apex runs on a different server - there's really no way around that without hardcoding your URL (which you don't want to do).

 

You COULD assemble your string in an APEX controller and pass the whole thing back as a variable to the Visualforce page...maybe that would help?

 

-Andy

VijoVijo

Hi, I had the same issue, where I have to get the custom link from the detail page to my VF page.

The major issue was with session id. I tried passing it from the main page ( thru URL ), queried it from main page, but none worked.

After all this, this is what worked.. the actual link on the detail page itself!!!!

On the detail page, right click, use inspect element (chrome) or firebug, to look at the page. Look for the 'custom link' complete url, starts with '<a href="javascript&colon;openIntegration%28%27%2Fservlet%2Fservlet.......' , copy the whole tag and use it in ur VF page.

This did the trick and hope it does for you..