You need to sign in to do that
Don't have an account?
Vishwanath
Issue on Link in VF Page
Hi,
Please any one help me out from this issue
i have a custome link in account as below
https://www.appextremes.com/apps/Conga?sessionId={!API.Session_ID}&serverUrl={!API.Partner_Server_URL_80}&id={!Account.Id}&reportid=[Aggregation]00OV0000000JOuI?pv1={!Account.Id}&reportid=[NonAggregation]00OV0000000JOuH?pv1={!Account.Id},[PrimaryRoyalty]00OV0000000JOuF?pv0={!Account.Primary_Royalty_SFDCID__c}&templateid=00PV0000000JIaK&ds4=1&ofn="Statement-International"
now i want to take this link in Visualforce page, please how can i do this i have changed as below but it didnot work,
<a href="https://www.appextremes.com/apps/Conga?sessionId={!$API.Session_ID}&serverUrl={!$API.Partner_Server_URL_80}&id={!Account.Id}&reportid=[Aggregation]00OV0000000JOuI?pv1={!Account.Id}&reportid=[NonAggregation]00OV0000000JOuH?pv1={!Account.Id},[PrimaryRoyalty]00OV0000000JOuF?pv0={!Account.Primary_Royalty_SFDCID__c}&templateid=00PV0000000JGP0&ds4=1&ofn='Statement-International'" target="_blank"> Statement - International</a>
Try
<apex:outputLink value="https://www.appextremes.com/apps/Conga/PointMerge.aspx?sessionId={!API.Session_ID}...." > Statement - International</apex:outputLink>
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
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
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: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..