You need to sign in to do that
Don't have an account?
Leticia Monteiro Freitas 4
Select like with a variable
Hello,
I'm have an apex class that recieves a variable name and then has to do an query with thin name on Accoun object.
But my variable could use some part of this name only, like when I query the name Liza, I should return every account that has Liza in the middle of it, like Elizabeth.
Can anyone help me?
I'm trying use the operator like, but i dont know how use the syntax for a variable.
I'm have an apex class that recieves a variable name and then has to do an query with thin name on Accoun object.
But my variable could use some part of this name only, like when I query the name Liza, I should return every account that has Liza in the middle of it, like Elizabeth.
Can anyone help me?
I'm trying use the operator like, but i dont know how use the syntax for a variable.
OR
All Answers
Try This :
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
Salesforce Freelance Consultant/Developer/Administrator
@For Salesforce Project Support: varaprasad4sfdc@gmail.com
Salesforce latest interview questions :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1
OR