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
Michael_MantouvalosMichael_Mantouvalos 

convert a URL with parameters , to a URL with parameters tha can be called from aura component button.

salesforce URL

 

Hello everyone,

Is there a way to convert this parametirized URL to be called  from an aura button? (also with parameters)

 

thank you

SwethaSwetha (Salesforce Developers) 
HI Michael,
You might want to try the approach mentioned in https://salesforce.stackexchange.com/questions/165650/getting-the-url-parameter-into-lightning-component-using-the-paramname-exp
i.e, to implement lightning:isUrlAddressable interface and use pageReference attribute.

Also see related:https://salesforce.stackexchange.com/questions/117208/lightning-url-hack-issue-with-prepopulating-fields-on-page-load
https://salesforce.stackexchange.com/questions/249191/converting-url-hack-button-to-salesforce-lightning-not-auto-populating-contact-a
https://developer.salesforce.com/forums/?id=906F0000000g1blIAA

​​​​​​​Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Michael_MantouvalosMichael_Mantouvalos

Hi, 

Thanks for the answer.

I tried your approach but when I navigate to my page I get that error message : 

 

"The link you followed isn’t valid. This page requires a CSRF confirmation token. Report this error to your Salesforce administrator."

 

Any ideas?

 

Thanks again