Hi, I am using UtilityApi.LookupOptions and need to display filtered records in Lookup. How can i do this? Thanks
I think it's not documented for PCF, but it is for Dynamics365CE, and it seems to work also for PCF.
Try something like this:
context.utils.lookupObjects({
entityTypes: ["account"],
allowMultiSelect: false,
filters:[
{
entityLogicalName: "account",
filterXml: "<filter type='and'><condition attribute='industrycode' operator='eq' value='2'/></filter>"
}
],
disableMru: true
});
I also wonder if this is just missing in the documentation or maybe won't be supported?
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1