Protip in New Function Designer - Reference Filter is -Case Sensitive-

In case anyone encounters this and starts pulling their hair out, the References grid filter is CASE SENSITIVE. I discovered this after far too much time struggling to understand where assemblies were at.

Maybe result of Linux migration :thinking: , it is case-insensitive on Windows

Possibly an oversight, but could be fixed easily.

I looked into the code for it, and Epicor had this line in the ProcessDirectory method:

foreach (FileInfo f in directoryInfo.EnumerateFiles(this.fileFilter, SearchOption.TopDirectoryOnly))

Change it to this, and we’re golden.

var options = new EnumerationOptions
{
    MatchCasing = MatchCasing.CaseInsensitive,
    RecurseSubdirectories = false
};

foreach (FileInfo f in directoryInfo.EnumerateFiles(this.fileFilter, options))

So if whoever is responsible wants to make the fix.. there it is..

In the meantime, I made a little BPM to improve the situation. :slight_smile:

EDIT: Made a better, faster version!

The below works well, but the edit I posted works better.

Pre-Processing on Ice.BO.BpMethod.GetAvailableReferencesWithFilter

CallService<Ice.Contracts.BpMethodSvcContract>(bpm =>
{
    var refs = bpm.GetAvailableReferences(referenceGroup);

    result = refs.Where(x => x.Name.Contains(filter, StringComparison.OrdinalIgnoreCase)).ToList();

});

MarkCallCompleted();

Pros:

  • This will bypass the paging stuff, and return all references… @josecgomez should like that :rofl:
  • It will also do the filtering case insensitive.

Cons

  • It is a little slower.

Nice coding @klincecum !!!

Yes, it is fixed in 2027, not sure if it will be retrofitted back in 2026 for now

Well your BPM just goes through all assemblies in the folder. That what I wanted to avoid. But I had to remove limit because of some UXP issues :woman_shrugging:

nice, hoping for a patch to a hotfix though

Yeah, me too, but without doing some shady :poop: , I worked with what I had available.

It’s an acceptable workaround for me. The others can decide for themselves.

Thanks for all you do @Olga .

I wrote a better one.