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
Yogesh BiyaniYogesh Biyani 

Convert Custom Button with URLs to Lightning acceptable URLs

We have a custom button with the following link 
I am trying to convert it as follows such that the links are valid in Lightning. However, except for the Account, it still prompts to select the record type and the various values are not populated 
{!URLFOR($Action.Opportunity.New, Account.Id,[Amount="5000",Name="New Opp for {!Account.Name}", CurrencyIsoCode=TEXT(Account.CurrencyIsoCode), RecordType="012400000009nyv",Stage="Prospecting/Qualification",CloseDate=TODAY()+180])}
Can someone tell what is missing? 

Thank you in advance 

Pramodh KumarPramodh Kumar
@Yogesh Biyani
In lightning URL hacking is not avialable. If you are trying to create new opportunity from the account page, you have to try using the Actions and select the "Create a Record" to use your functionality
User-added image
Let me know if you have any other questions

Yogesh BiyaniYogesh Biyani
Hello Pramodh,

Thanks for the tip. I can indeed us the Account Actions to Create Opportunities.

Yogesh BiyaniYogesh Biyani

I have a button for the Case to create an opportunity as follows'Prospecting/Qualification'&opp4={!Case.Account}
As there is no action to create an opportunity record from a case I have to use URLFOR. Here is what I am trying but it does not work

Any suggestions?