Skip to content
Developerhome
Sage Distribution and Manufacturing Operations

Filters

  Less than to read

You can apply filters to custom fields with the following syntax: _customData and marketingDate.

When you apply a filter, _eq and the value must be placed between double escaped quotes.

The following example displays how a filter is applied to a custom field. Some of the fields displayed are not mandatory and others have been omitted.

{
    xtremMasterData { 
        item { 
            query( 
            filter: "{\"_customData\":{\"marketingDate\":{\"_eq\":\"2023-08-17\"}}}") 
            { 
                edges { 
                    node { 
                        id 
                        _customData 
                    } 
                cursor 
                } 
            } 
        } 
    }
}
{ 
  "data": { 
    "xtremMasterData": { 
      "item": { 
        "query": { 
          "edges": [ 
            { 
              "node": { 
                "id": "PIE_BLUEBERRY", 
                "_customData": "{\"rating\":28,\"marketingDate\":\"2023-08-17\"}" 
              } 
            } 
          ] 
        } 
      } 
    }
  }
}