Writing Filter Formulas

Last updated about 4 years ago

Filter formulas can be used to tell bulk action or feed exports what to export and what to ignore. Our formulas are very similar to excel formulas. You will see an error in red below the formula field if the entered operation is not valid.

To enter a formula:
  1. You must be downloading a report
Use the command "buttons" below the formula field to write the formula
pasted-file-1.png 31.71 KB
See below for an explanation and examples of all of the functions we currently provide.

Comparisons

These operations are used to check the value of a certain field.

STARTSWITH

STARTSWITH(field, string, [caseInsensitive]) - passes if the given field starts with the given string. The third option can be true or false, but it is optional.
Examples: 
   STARTSWITH( sku, "TEST-", false )
Matches any product with a sku that starts with "TEST-", matches "TEST-123" but not "test-123" or "somethingelse--"

   STARTSWITH(title, "test title", true)
Matches any product with a title that starts with "test title". This time, its case insensitive so it will match "test title 1" and "tesT TitLe 2".

EQUALS

EQUALS(field, string, [caseInsensitive]) - passes if the given field equals the given string. The third option can be true or false.
Examples: 
   EQUALS(sku, "TEST-123")
Matches the product with sku "TEST-123"

   EQUALS(title, "test title", true)
Matches any product with a title that equals "test title". This time, its case insensitive so it will match "test title" and "tesT TitLe" but not "test title 123".

Greater Than/Less Than

GREATERTHAN( field, "string", [orEqualTo] )- passes if the given field is greater than the given string.The third option can be true or false.
LESSTHAN( field, "string", [orEqualTo] ) -
passes if the given field is less than the given string. The third option can be true or false.
Examples:
GREATERTHAN( Item Price, "20", [true] )
Matches products with a price greater than or equal to $20
LESSTHAN( Quantity, "25", [false] )
Matches products with a quantity less than 25


Compound

These operations are used to combine other operations.

NOT

NOT(fn) - Will pass if its sub-condition fails.
Examples:
   NOT(EQUALS(sku, "test-123"))
Matches any product that does not have the SKU "test-123".

OR

OR(fn [, fn [, fn]...]) - Will pass if ANY of its sub-conditions pass.
Examples:
   OR(EQUALS(sku, "test-1"), EQUALS(sku, "test-2"), EQUALS(sku, "test-3"))
Matches the 3 SKUs - test-1, test-2 and test-3

   OR(EQUALS(sku, "test-1"), STARTSWITH(title, "test title", true))
Matches the SKU test-1 or any product with a title that starts with "test title" (case insensitive).

You can also use things like AND or NOT as sub-conditions:
   OR(NOT(STARTSWITH(title, "test title")), EQUALS(sku, "test-title-sku"))
Matches any product that does not have a title starting with "test title", also will match the product with SKU test-title-sku regardless of what its title value is.

AND

AND(fn [, fn [, fn]...]) - Will pass only if ALL of its sub-conditions pass.
Examples:
AND(EQUALS(color, "red"), STARTSWITH(title, "model-1-"))
Matches any product that has color red and a title which starts with "model-1-"

AND and NOT  can also be used in compound ways like OR.

Valid Fields

In future releases, a tool will be provided to make entering field names easier. For now we provide this list of fields that the formulas will work well with. If you don't see a field that you think should be included, please contact support.

  • supplier_product_id
  • primary_image_url
  • image_url
  • quantity
  • title
  • smart_type
  • upc
  • asin
  • cost
  • item_price
  • bullet_point1
  • bullet_point2
  • bullet_point3
  • bullet_point4
  • bullet_point5
  • subtitle
  • brand
  • tags
  • min_price
  • max_price
  • description
  • package_height
  • package_length
  • package_weight
  • package_width
  • display_height
  • display_width
  • display_length
  • display_weight
  • multipack_quantity
  • handling
  • amazon_item_type
  • jet_browse_node_id
  • condition_description
  • exclude_from_fee_adjustments
  • no_return_fee_adjustment
  • ebay_category
  • google_category
  • pricefalls_category
  • ebay_secondary_category
  • amazon_product_type
  • walmart_product_type
  • product_tax_code
  • cpsia_cautionary_statements
  • legal_disclaimer_description
  • prop_65
  • safety_warning
  • free_shipping
  • model_number
  • manufacturer
  • product_type
  • mpn
  • vendor
  • country_of_origin
  • ebay_condition
  • tax_code
  • a_b_v
  • activity
  • age_gender
  • age_range
  • analogue_digital_display
  • animal_breed
  • animal_type
  • application
  • authenticated_by
  • battery_capacity
  • battery_type
  • belt_style
  • blade_length
  • blade_material
  • blade_shape
  • bottoms_size(_men's)
  • bounce
  • bra_band_size
  • bra_size
  • brush_length
  • brush_width
  • BurnTime
  • capacity
  • care_instructions
  • Certifications
  • character
  • closure_type
  • clothing_type
  • collar_type
  • color
  • color_map
  • compartments
  • container_type
  • cord_length
  • count
  • cup_size
  • department
  • design
  • diameter
  • dimension
  • display_depth
  • display_size
  • display_volume
  • door_style
  • Dress Length
  • fabric_weight
  • fit_type
  • flavor
  • food_form
  • fragrance
  • front_pleat_type
  • fry_basket_size
  • fry_pot_size
  • game_genre
  • golf_flex
  • golf_loft
  • grip_material_type
  • grip_size
  • grip_type
  • hand
  • handle_material
  • handle_type
  • head_size
  • height
  • hosiery_size
  • Ingredients
  • inner_material
  • inseam
  • inseam_length
  • insole_type
  • is_nutrition_facts_label_required
  • item_form
  • item_thickness
  • league
  • length
  • lens_color
  • lens_color_map
  • lens_height
  • lens_material_type
  • lens_type
  • lens_width
  • lie_angle
  • light_source_type
  • magnification_strength
  • material
  • maximum_magnification
  • maximum_resistance
  • meta_description
  • meta_title
  • minimum_magnification
  • number_of_doors
  • number_of_exercises
  • number_of_pieces
  • number_of_resistance_levels
  • number_of_shelves
  • nutritional_facts
  • #_of_players
  • pattern
  • pest_type
  • player_name
  • pockets
  • position_accuracy
  • power_source
  • quantity
  • range
  • rpm
  • shaft_length
  • shaft_material
  • shaft_type
  • shape
  • shirt_type
  • shoe_closure_type
  • shoe_width
  • size
  • size_map
  • size_type
  • size(_women's)
  • skin_tone
  • skin_type
  • sleeve_length
  • sleeve_type
  • sock_height
  • sock_size
  • sock_style
  • sole_material
  • special_features
  • sport
  • strap_type
  • style
  • sun_protection
  • target_audience
  • target_gender
  • team_name
  • temperature_range
  • theme
  • uniform_number
  • u_s_shoe_size(_men's)
  • u_s_shoe_size(_women's)
  • voltage
  • volume
  • waist_size
  • warranty
  • water_bottle_cap_type
  • wattage
  • weight
  • weight_capacity
  • whats_in_the_box
  • wheel_size
  • wheel_type
  • width

powered by
SlimFAQ