Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.

We have a custom button with the following link 

/006/e?RecordType=012400000009nyy&CF00NG0000008WbYM={!User.Name}&opp3={!Account.Name}&opp4={!Account.Name}&00NG0000009jhg1={!Account.Account_Geo__c}&00NG0000008WbOg={!Account.Account_Region__c}&opp16={!Account.CurrencyIsoCode}&ForecastCategoryName=Pipeline&00NG0000009i7KH=Sales&opp9={!TODAY()+180}&opp11="Prospecting/Qualification"&opp7=5000

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 

Regards,

Yogesh

 
3 answers
  1. Dec 22, 2017, 3:49 AM
    @Pramodh,

    I have a button for the Case to create an opportunity as follows 

    https://login.salesforce.com/006/e?retURL=%2F006%2Fo&opp11='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

     

    {!URLFOR($Action.Opportunity.New,Case.AccountId,[RecordType='012400000009nz0AAA',Name=Case.Subject,CloseDate=TODAY()+30])}

    Any suggestions? 

    Yogesh
Loading
0/9000