Please find below code
String str = 'Hi {!Contact.FirstName} your phone number is {!Contact.Phone}';
I want to replace the string as follow
String str = 'Hi {!contact.firstName} your phone number is {!contact.phone}';
String is not fix so I can't put hard coded value in the replace and replaceAll functions
Please help .
str.replace('{!contact.Firstname}' , 'Ranjit')
you need to usefirstName
notname
– Tushar Sharma Feb 24 '17 at 13:03