I am building a sales app to streamline info for my sales team next year.
I am creating a combo-box that will create a drop down if a name is being entered that is matching someone that we already have in our system. I am doing this to reduce the chance of duplicate referral entries under misspelled names and are connected to the right customer profile.
For example: DC Bike Shop || DD Bike Shop || DC Bik Shop || etc.
To do this I have created a collections that combines our opportunity que (sales pipeline) and our Client Database
Collection 1 - colTMDBNames - Data from our Client Database
Collection 2 - colOppQueNames - Data from our sales pipeline
Collection3 - colTotalNames - Combines colTMDBNames & colOppQueNames
Issue
The issue that I am having is that I am getting duplicates because a few (not all) of the customers that are in the sales que, are also in the TM Database. This makes sense, since naturally all the new clients are going through this pipeline.
I am wondering if there is a way to filter Collection #2 to only pull in values that meet certain status values, and / or remove duplicate values in collection #3.
Code
OnSelect Property of Entry form button.
Collect(colTMDBnames,ShowColumns('TM Client database', "Title","ClientNAME"));
Collect(colOppQueNames,ShowColumns('Opportunity Que', "Title", "Clientname"));
ClearCollect(colTotalNames,colTMDBnames,colOppQueNames);
Set(SortDescending1,Descending)
