Skip to content

Commit

Permalink
fix: multiple connection references fails (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewingjm authored Feb 2, 2021
1 parent a8bae47 commit 5dacdcb
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,17 @@ public EntityCollection RetrieveMultipleByAttribute(string entity, string attrib
throw new ArgumentNullException(nameof(values));
}

var query = new QueryByAttribute(entity)
var query = new QueryExpression(entity)
{
Attributes = { attribute },
ColumnSet = columnSet ?? new ColumnSet(false),
Criteria = new FilterExpression()
{
Conditions =
{
new ConditionExpression(attribute, ConditionOperator.In, values.ToArray()),
},
},
};
query.Values.AddRange(values);

return this.crmSvc.RetrieveMultiple(query);
}
Expand Down

0 comments on commit 5dacdcb

Please sign in to comment.