You need to sign in to do that
Don't have an account?
Bsin
ApexPages.currentPage().getParameters().get()
Hi,
I am new to salesforce. Got to know that some recent changes happened in salesforce lightning .
Earlier the below code was working fine with salesforce in custom visual force page to get the record ID value from URL:
I am new to salesforce. Got to know that some recent changes happened in salesforce lightning .
Earlier the below code was working fine with salesforce in custom visual force page to get the record ID value from URL:
retURL=ApexPages.currentPage().getParameters().get('retURL')
idURL = Id.valueOf(retURL.removeStart('/'));
Now when I try to create any record ,the below error is shown:
Invalid id: lightning/cb/record-actions?objectApiName=Object_Name__c&actionName=new&inContextOfRef=1.eyJ0eXBlIjoic3RhbmRhcmRfX29iamVjdFBhZ2UiLCJhdHRyaWJ1dGVzIjp7Im9iamVjdEFwaU5hbWUiOiJDU1RfQ29udGFjdF9Sb2xlX19jIiwiYWN0aW9uTmFtZSI6Imxpc3QifSwic3RhdGUiOnsiZmlsdGVyTmFtZSI6IlJlY2VudCJ9fQ%3D%3D&0.source=alohaHeader
Could some one please check and suggest the way forward.
Thaanks & Regards,
Bsin
idURL = Id.valueOf(retURL.removeStart('/'));
Now when I try to create any record ,the below error is shown:
Invalid id: lightning/cb/record-actions?objectApiName=Object_Name__c&actionName=new&inContextOfRef=1.eyJ0eXBlIjoic3RhbmRhcmRfX29iamVjdFBhZ2UiLCJhdHRyaWJ1dGVzIjp7Im9iamVjdEFwaU5hbWUiOiJDU1RfQ29udGFjdF9Sb2xlX19jIiwiYWN0aW9uTmFtZSI6Imxpc3QifSwic3RhdGUiOnsiZmlsdGVyTmFtZSI6IlJlY2VudCJ9fQ%3D%3D&0.source=alohaHeader
Could some one please check and suggest the way forward.
Thaanks & Regards,
Bsin
https://developer.salesforce.com/blogs/developer-relations/2015/11/building-context-aware-lightning-components.html
#copied.Please mark this as solved if this solve your problem.