I have a requirement in which I have a field on Case object named
random__c and it is a text field and also there is another field on Case object named
So my requirement is that if the
random__c field contains certain keyword like "help", "urgent",etc. then I want to update the
value __c field with some data.
Now there is no limit to the keywords and unlimited keyword could be added in the coming future for which the
value __c needs to be updated.
I know one way to handle this is to check for the keywords in the code using OR condition one by one and every time a new keyword will be added then I'll have to update the code with and extra OR condition for the new keyword. So I was thinking if I can create a Custom Label and keep the keywords in there separated with "," (Comma) and then call this Custom Label into the code and check for the keywords presence in the
random__c field and in this way I'll have to add the keywords in the custom label only and not have to make changes in the code.
Is there a way this can be achieved? Can anyone please give me a sample code to achieve this? Please guide.
Thanks in advance !