使用 Web 服务为没有值的字段检索过滤的导出

Retrieve filtered export using web services for fields with no value

我有一个 Web 服务使用者正在使用“项目”屏幕检索项目列表。我在某些字段上设置了过滤器,但问题是有时这些字段没有值。我使用通配符以下列方式获取所有内容(在我的过滤器值中使用“%”):

new Project.Filter
{
    Field = new Project.Field() 
     {   
      ObjectName = _project.GeneralInfoGeneralSettings.ProjectManager.ObjectName,
      FieldName = _project.GeneralInfoGeneralSettings.ProjectManager.FieldName
     },
     Condition = Project.FilterCondition.Contain, 
     Value = sheet.Rows[0].Cells[6].Value.ToString(), //'%' for wildcard
     Operator = Project.FilterOperator.And
},

不幸的是,如果 Acumatica 中的字段没有值,则此过滤器不会带回记录。这样做的最佳方法是什么?

此外 - 我注意到过滤器中有 'OpenBrackets' 和 'CloseBrackets' - 但我找不到任何关于如何使用的文档(包括 google 搜索)这些。如有任何信息,我们将不胜感激。

尝试使用这个..

string.IsNullorEmpty(sheet.Rows[0].Cells[6].Value.ToString()) ? "%" : sheet.Rows[0].Cells[6].Value.ToString();