
Is it possibe to use a CASE or IF statement in URL button Hack. Here is what I am trying but with no success.
/00T/e?RecordType=01213000000AWCW
&who_id={!Lead.Id}{!Contact.Id}
&what_id={!Opportunity.Id}{!Account.Id}
&tsk12=Completed
&tsk4={!Today()}
&00N1300000BRgZl=CASE({!Account.RecordTypeId},
"012300000004QSz",Type A,
"01230000000Z4y7",Type B,
"01230000000Z4tB",Type C,NULL)
&00N30000003UH8m=Phone Call
&retURL={!Opportunity.Id}{!Account.Id}{!Lead.Id}

I'm not a developer, but a modification to the code could work:
/00T/e?RecordType=01213000000AWCW
&who_id={!Lead.Id}{!Contact.Id}
&what_id={!Opportunity.Id}{!Account.Id}
&tsk12=Completed
&tsk4={!Today()}
&00N1300000BRgZl={!CASE({!Account.RecordTypeId},
"012300000004QSz",Type A,
"01230000000Z4y7",Type B,
"01230000000Z4tB",Type C,NULL)}
&00N30000003UH8m=Phone Call
&retURL={!Opportunity.Id}{!Account.Id}{!Lead.Id}
The only difference is that the CASE() was wrapped in "{! }". As I said, I'm not a developer, but that's my best guess because you want the CASE() function to be evaluated, not part of the URL.
Thanks for reading,Parker