🤖 How to use Make to change a name of an item if a condition is met?

:robot: Make Bot here bringing solutions to some of your FAQs :robot:



:question: :question: :question:

I want to change the name of a product if the SKU record = “CircleSKC2”
Is this possible?


:reply: :reply::reply:


This depends on the input data and where you want the new product name to be stored. So, let’s give a generic answer.

The goal is to change a field based on a condition. For this you have two ways.

1- if you want to change the product name during a mapping, you could use the ‘if’ function. it allows you to do a conditional mapping. The documentation is here. When you map the product name to a target field, you can add the ‘if’ condition. Eg, assuming you have a product collection with a SKU, product name and description, and you want to map it to an ERP.

In this mapping, the “if” is used to evaluate the product sku. If the condition is true, it will map the new name (new product name), if the condition is false, it maps the existing product name.

2- if you have multiple bundles (records), and you want to update the name in an ERP, only if the product sku meets the condition, you can use a Filter, so that you only go to the Update ERP step if the condition is met.

I go to the down route only if the sku is CircleSKC2

You can learn more about transforming data here

And you can also learn how to user routers and filter here