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
Dimple riarDimple riar 

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.
Jasveer SinghJasveer Singh
Hi Dimple riar

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
Dimple riarDimple riar
@Jasveer Singh
 Can you please help with any example or share any useful link for the same?