private async Task <List <Entity> > GetEntityById(string fieldName, Guid idEntity, ColumnSet columnSet)
        {
            {
                var repository = new SdkMessageFilterRepository(_service);

                var messageFilter = await repository.FindByEntityAndMessageAsync(_entityMetadata.LogicalName, SdkMessage.Instances.RetrieveMultiple, new ColumnSet(false));

                if (messageFilter == null)
                {
                    return(null);
                }
            }

            QueryExpression query = new QueryExpression()
            {
                NoLock = true,

                EntityName = _entityMetadata.LogicalName,

                ColumnSet = columnSet,

                Criteria =
                {
                    Conditions =
                    {
                        new ConditionExpression(fieldName, ConditionOperator.Equal, idEntity),
                    },
                },
            };

            return(await _service.RetrieveMultipleAllAsync <Entity>(query));
        }