You need to sign in to do that
Don't have an account?

How to retrieve canvas parameters in salesforce to salesfroce integration using canvas
I am new to integration and trying a salesforce to salesforce integration using canvas. I am facing a problem while retrieving canvas parameters in visual force page. Not sure what I am doing wrong. Following is the code added on visual force page to retrieve parameter:
<script>
Sfdc.canvas(function(){
var sr = JSON.parse('<%=signedRequestJson%>');
Sfdc.canvas.byId('username').innerHTML = sr.context.environment.parameters.contactId ; });
</script>
Please help.
<script>
Sfdc.canvas(function(){
var sr = JSON.parse('<%=signedRequestJson%>');
Sfdc.canvas.byId('username').innerHTML = sr.context.environment.parameters.contactId ; });
</script>
Please help.
Find visualforce remoting and @remoteAction annotation in google this concept solved your problem
remoting is use for send canvas or javascript data into controller and @remoteAction annotation is use for get data from controller to canvas etc.
Thanks & Regards
Jasveer Singh
Can you please help with any example or share any useful link for the same?