Extract Parent Name : Child Name of Customer Record in Transaction Saved Search
Published on
December 27, 2023 at 9:53:04 PM PST December 27, 2023 at 9:53:04 PM PSTth, December 27, 2023 at 9:53:04 PM PST
Scenario
Auto-generated numbers is enabled in the Account. Customer Name appears as Name + ID + Parent Customer Name: Name (e.g. Doe, John 12345 Apple, Inc : Doe, John) in transaction search. User wants to display the Customer name in format the Parent : Child excluding the Number.
Solution
To achieve this, use the following steps:
- Navigate to Lists > Search > SavedSearches > New
- Select Type (e.g. Transaction)
- Provide a Title
- In the Criteria tab > Standard subtab, add filters
- In the Results tab > Columns subtab, add Formula (Text)
- In the Formula column, use: regexp_replace({name},regexp_substr({name}, '^(.+?)[0-9]+{2}'),' ')
- Click Preview or Save & Run