trying to access CRM Variables with JS SDK

trying to access CRM Variables with JS SDK

Hello

i built a widget with Sigma, i create CRM VARIABLES in custom properties.
I try to access them in function :
  1. ZOHO.embeddedApp.on("PageLoad",function(data)
with :

ZOHO.CRM.CONFIG.getVariable("mycrmvariable").then(function(data){
console.log("mycrmvariable : " + data);
});

But always return nothing
Note that if i use a deluge function it works (on install action for instance)

  1. value = zoho.crm.getOrgVariable("mycrmvariable");
  2. info "The value of the custom variable, mycrmvariable, is " + value;
Thanks for insights