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

how can i pass record id in url ?
Hi i have a requirement how can i pass record id value in url plese help me on this i have tried with below code but not working
var recordid= component.get("v.recordId");
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "https://farmersagent--intdev.lightning.force.com/lightning/r/Account/0011b00000xc84cAAA/related/Quotes__r/view?0.source=alohaHeader"
});
urlEvent.fire();
},
if i hardcode id it working fine
in place of 0011b00000xc84cAAA this id replace with recordid it's not working can any one help me on this
Thanks ,
Surender Reddy
Try below code it should work if not then check your recordId data.
If you find your Solution then mark this as the best answer.
Thank you!
Regards
Suraj Tripathi
I think you can concat that for record Id as well.
https://developer.salesforce.com/docs/component-library/bundle/force:navigateToURL/documentation
Thanks!