Nada Ahmed
08/29/2024, 6:07 PMCeligo AI
08/29/2024, 6:08 PMAI generated answer (using internal Slack threads):Based on the conversations, to get the account and replace ":" with "-" in a saved search, you can use a SQL formula. Here is an example of how you can do it:
CASE WHEN {name} LIKE '% : %' THEN REPLACE(REGEXP_SUBSTR({name},'\\D[^:]+'), ':', '-') ELSE NULL END
This formula checks if the account name contains ":", if it does, it extracts the account name up to the ":" using the REGEXP_SUBSTR function and then replaces ":" with "-" using the REPLACE function. If the account name does not contain ":", it returns NULL.
Please note that you might need to adjust this formula depending on your account naming convention and requirements.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/29/2024, 6:08 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83753711
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836577
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832514048
Celigo AI
08/29/2024, 6:08 PM