Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks for the reply, I followed this link https://salesforce.stackexchange.com/questions/50306/passing-custom-attributes-in-canvas-app-signed-request but still im not getting custom attributes into my signed request.
Here is the apex class, please check it once.
public with sharing class canvasCON{ public user u; public canvasCON(){ u=[select id,name from user where id=:userinfo.getuserid()]; } public string getjParameters(){ string json; String jsonout = '{'+ ' \"Role \": \"'+User.Role__c+'\",'+ '}'; return json; } }.
Greetings to you!
Please refer to the below links which might help you further with the above requirement.
https://salesforce.stackexchange.com/questions/50306/passing-custom-attributes-in-canvas-app-signed-request
https://salesforce.stackexchange.com/questions/224206/canvas-app-verify-signed-request
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Thanks for the reply, I followed this link https://salesforce.stackexchange.com/questions/50306/passing-custom-attributes-in-canvas-app-signed-request but still im not getting custom attributes into my signed request.
Here is the apex class, please check it once.
public with sharing class canvasCON{
public user u;
public canvasCON(){
u=[select id,name from user where id=:userinfo.getuserid()];
}
public string getjParameters(){
string json;
String jsonout = '{'+
' \"Role \": \"'+User.Role__c+'\",'+
'}';
return json;
}
}.
Thanks
Mallik