1

In below custom button defination I want to use RIGHT and FIND function in 4th line, how can I use, please suggest

/006/e? 
&retURL=%2F{!Case.Id} 
&accid={!Case.AccountId} 
&opp3=OP-RIGHT({!Case.CaseNumber},FIND("-", {!Case.CaseNumber},1)-1)} 
&opp9={! DATEVALUE( Case.CreatedDate ) +45} 
&00N90000004Muo1=SRV - Service 
&opp11=Proposal/Price Quote

1 Answer 1

0

you just need to move the RIGHT function inside the expressions syntax {!}

/006/e? 
&retURL=%2F{!Case.Id} 
&accid={!Case.AccountId} 
&opp3=OP-{!RIGHT(Case.CaseNumber,FIND("-", {!Case.CaseNumber},1)-1)} 
&opp9={! DATEVALUE( Case.CreatedDate ) +45} 
&00N90000004Muo1=SRV - Service 
&opp11=Proposal/Price Quote
1
  • Thanks Mr. Krishna, Now I have 1 more problem I'm unable to use this custom button at my visualforce page using following line of code <apex:commandButton Value="New Opprotunity" action="{!urlfor($Action.Case.NewOpportunity,Case.id)}"/>. Button is working fine at standard page. Pl help Jul 27, 2015 at 6:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .