Hi, I have created a transaction saved search with...
# administration
n
Hi, I have created a transaction saved search with columns, document number, transaction type, and account name. I want to pull the account name without any hierarchy (no parent) in the account name. Please can someone let me know how to do it?
k
Formula (text) = regexp_replace({account},regexp_substr({account},'^(.+?)[0-9]+{2}'),'')
n
Thanks, Kenn. I just want to pull the name of the account, not parent. Example: 211100 Accounts Payable - NEW : Accounts Payable - Suppliers. In this, I just want to pull “Accounts Payable - Suppliers”. Could you please let me know how to do it? If I use Account Fields->Name, it is already giving me the same result as your formula, but it is not pulling just the name.
Hi Kenn, the below formula worked for me, but thank you very much for your immediate response! CASE WHEN INSTR ( {account}, ‘:’, -1) > 0 THEN SUBSTR ( {account}, INSTR ( {account}, ‘:’, -1) +2) ELSE {account} END
s
I think you might be able achieve the same with checking the box “show only last sub account” under set preferences
n
Good to know, but set preference is for a specific user. It needs to be enabled for each user, so it will be available when they access the saved search.
s
Yeah that’s true