Hi, I am recently working on CIF but a problem troubles me a lot.
I'd like to make my own query statements to simulate the same behaviors of Search, since the param `$search` doesn't work for the returned result if I specified it and make `searchOnly` true in the API `searchAndOpenRecords`.
So, one thing I need to do is to find out these attributes that may be associated with searchText. For example, If searchText is a telephone number, then I need to know telephone1, telephone2, and mobilephone are the related attributes, so that I can make a query like `$filter=contains(telephone1, 'xxx') or contains(telephone2, 'xxx') or contains(mobilephone, 'xxx')`.
It's easy to get metadata if I use OData, however, for CIF it's difficult. I tried to call `getEntityMetadata` by `const rawRes = await Microsoft.CIFramework.getEntityMetadata('account')`. The command was successfully executed, but in the returned object I found that 'Attributes' is always a plain object.
Could you help me with it? Is this a bug in CIF or a wrong operation I've done, if it's the latter, how can I do to achieve my purpose?
Thanks very much!