Account Saved Search, trying to pull the Subaccount Of field and whenever I put the id {parent} as a formula text it says field not found
l
Luis
10/26/2020, 3:28 PM
Account saved search is very frustrating. Most of the fields are not available.
Here's what I did to get the Parent Account Name (adjust as needed):
CASE WHEN {name} LIKE '% : %' THEN REGEXP_SUBSTR({name},'\D[^:]+') ELSE NULL END
You can also use SuiteAnalytics Workbooks since most/all of the Account fields are available there unless it has to be in saved search format.
c
Clint
10/26/2020, 3:51 PM
I understand the first portion well, could you walk me through what the \D[^:]+ does?
l
Luis
10/26/2020, 8:54 PM
It's called regular expressions. There are plenty of resources on the net regarding this.
\D match any single character that is not a digit (0-9)
[^:] do not match a ':' (separator of parent and child accounts)
+ match one or more
Luis
10/26/2020, 8:57 PM
So it ignores the Parent Account Number and it starts to match the Parent Account Name until it reaches the :
You might need to adjust this depending on your account naming convention, requirements, etc.