Overview
Today’s challenge has to do with merging text.
Challenge
Hi {!FirstName},
We hope you enjoy {!Number__c}. Show us your {!ChallengeSkillset__c} chops!
Hang on..., that’s not a typo or a merge fail. It’s the gist of this Lab Coat Challenge. You’re developing a way to construct a dynamic query that includes all of the placeholders in a given piece of text. Your objective is to take in a string of text, with one or more merge fields, pluck out the fields, and build your query string out.
For example, for the above sample, your query string would need to pull in the FirstName field (IE: SELECT Id, FirstName, ChallengeNumber__c, ChallengeSkillset__c…).
Starter Code
You must use the following code and can only add to the code provided below.