# Function: convertDelimitedListToSQL?

**URL:** <https://www.epiusers.help/t/function-convertdelimitedlisttosql/125569>\
**Category:** Kinetic ERP\
**Created:** [May 11, 2025, 9:25pm UTC](https://www.epiusers.help/t/function-convertdelimitedlisttosql/125569 "2025-05-11T21:25:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Olga](https://www.epiusers.help/letter_avatar_proxy/v4/letter/o/57b2e6/32.png) [@Olga](https://www.epiusers.help/u/Olga)\
**Post date:** [May 12, 2025, 4:49pm UTC](https://www.epiusers.help/t/function-convertdelimitedlisttosql/125569/3 "2025-05-12T16:49:35Z")

</div>

convertDelimitedListToSQL is really just pure UI function, so this is question to UX team, not for Patrick and I.  
Description is:

> This function gets a SQL compatible list for use in SQL where clauses. Example item one~item two~item three~ -----\> ‘item one’,‘item two’,‘item three’ OR 1~2~3~ -----\> 1, 2, 3

As for tilda separated list in BAQ this is what I thought about, when I said I saw it here:

> [@Coming soon in Kinetic 2025.1 Sales rep list in its one view?... cool](https://www.epiusers.help/t/coming-soon-in-kinetic-2025-1-sales-rep-list-in-its-one-view-cool/122316):
>
> Many of you voted for the feature [Create OrderHedSalesRep and InvcHeadSalesRep views.](https://epicor.ideas.aha.io/ideas/ERP-I-154) We have now finished the feature for 2025.1, and have recorded a “feature Spotlight” for this… please check out the poll here: [Streamlined Reporting for Sales Rep Commissions](https://epicor.ideas.aha.io/sections/7441231409176067257?poll_id=7459482300155760159)

> [@Splitting text column by ~ tilde?](https://www.epiusers.help/t/splitting-text-column-by-tilde/38828):
>
> I’m having a write a SORel change log report and data from the OrderRel table. The field ChgLog.Key2 contains the SONum, Line, and Rel data I need but in a tilde delimited manner. I’ve been working to split it out and got the SO number to work via the case below, but I can’t get Line or Release to work. Case When ChgLog.Key2 like ‘%~%’ Then LEFT(ChgLog.Key2, PATINDEX(‘%~%’, ChgLog.Key2) -1) End For LINE, I thought I was onto something by modifying the Case above with Substring but I can’…

So you can use function like [Ice].num\_entries(QuoteDtl.ConfigData\_c, ‘~’ ) \> 0 but be aware that in criteria it will be executed for every line of your table. So if there are many rows, it can be slow. Check the execution plan.  
Or there is a KB how to do it in BAQ CTE;

> **[EpicCare Login - EpicCare](https://epiccare.epicor.com/epiccare?id=epiccare_kb_article&sys_id=27717680db2b6a04b3227e09af961991)**

or simplier Jose’s example

> [@Trying to create a BAQ that lists sales by salesperson. Problem is SalesRepList can hold multiple. Help!](https://www.epiusers.help/t/trying-to-create-a-baq-that-lists-sales-by-salesperson-problem-is-salesreplist-can-hold-multiple-help/56017):
>
> Hello, I am trying to create a BAQ to list sales by salesperson. It looks like the OrderHed hold the list of salespeople in 1 column separated by a tilde (~) called SalesRepList. How can I break that up into individual reps for the BAQ? Is there any easier/alternate way to tie sales to individual salespeople? Any ideas/help is appreciated. Thanks, Shawn

---

_[View the full topic](https://www.epiusers.help/t/function-convertdelimitedlisttosql/125569)._
