Hi
I have the following situation:
{entityid} on a customer record shows just the customer id for the record in question when viewing the customer record..
When using {entityid} in a saved search, this shows "ACC_ name of parent customer : ACC__name of child customer"
I am trying to use a formula to split the parent and child customer ids from the {entityid} field.
I can't seem to find anything online that explains what the search patterns in the REGEXP_REPLACE or REGEXP_SUBSTR mean so I am guessing on how to do this.
In this case, the "ACC__" customer id code I am interested in is the second occurrence of that string since that is the child customer.
I want to extract all characters up to the first ' ' space.
These are some of the formulas I have tried with no joy
When I use the following formula, I get the string 'parent':
REGEXP_SUBSTR({entityid},'[ACC][^" "]+',1,2)
My understanding of this formula is that it is looking for the string 'ACC', starting from the first character, the second occurrence of it and excluding a blank space ( the [^" "] part of the formula
Is that correct?
How do I extract ACC055654?
Specifically, what would be the formula I would use to extract the second occurrence of a text string, up to a certain character (in this case the first blank).
thanks