You need to sign in to do that
Don't have an account?
thekid12345
Workflow Formula to Parse Comments Section on Task Object
I am trying to create a workflow formula that parses the Comments section on a Task. Comments on the Task object will always have 'Dialed: (999)925 - 1234'. I want to extract (999)999 - 1234 and have that map to another custom field I have on the task object.
So far I have: IF(Comments(Contains('Dialed'(
not sure if this is the right way to go about this.
So far I have: IF(Comments(Contains('Dialed'(
not sure if this is the right way to go about this.
This simple formula will return you only (999)925 - 1234
Formua: RIGHT('Comment_Field', 15)
Comment_Field = Dialed: (999)925 - 1234
I'm not sure if you are asking for this let me know if it works.
But are you sure about that people going to write comment like this "This is a testing comment. Dialed (999)999 - 9999. Please Ignore" . Will there be a case where they can write only number or they can add number in a different format
(999) 999 - 9999.
SUBSTITUTE( IF( CONTAINS(Comment_Field,'Dialed' ), MID( Comment_Field, FIND( 'Dialed', Comment_Field), 23 ) ,''), 'Dialed: ', '')
Try this!
IF( CONTAINS(Comment_Field,'Dialed'), SUBSTITUTE( MID( Comment_Field, FIND( 'Dialed', Comment_Field ), 23 ), 'Dialed: ', ''),'')
If you want to populate this field may be you should use process builder and put this formula to populate the phone number in specific field.
Please find attach a screenshot using workflow rule and replace the "Field to update" = Your Custom Field
Please change you rule like the above screenshot and then try and make sure your workflow rule is activw.