Dynamic Filter for CRM Integration Field

Dynamic Filter for CRM Integration Field

Is it possible to filter an integration field in the same way you can filter a dropdown or lookup field, by using ui.add() with a list of the module record ids I need to show? I am working on a Creator app that will be integrated with CRM. I need to be able to filter the displayed integration field lookup records based on a list of IDs. I tried using ui.add() but the nothing happens and everything after that line doesn't run, but it also doesn't present an error. I tried using ui.clear() and ui.append(), but got the error "Function applied over invalid expression" when trying to save the form workflow.