Trigger Master Data for SKUs

Hey devs!

How do I create a trigger in VTEX Master Data for specific SKUs?

What format should be used in the filter when using the Skus field from the Orders entity? Should I just enter the SKU ID? Is it an object?

I tried checking the trigger creation documentation, but couldn’t find the answer there.

Thanks!

Good morning, André!

So… According to this announcement here:

This entity has been deprecated, so I imagine it’s not the best option for what you need. Can you give me more details about what you’d like to do so we can see if there’s another option that works for you?

One option you might consider is structuring this flow using the orders hook, which you can configure to trigger a notification to an endpoint every time an order containing a specific SKU comes into your account’s OMS.

Karina Mota
Field Software Engineer | VTEX

Hi @KarinaMota, good morning.

I read somewhere in the documentation that VTEX Master Data V2 doesn’t have an interface, so I thought everything that had an interface was v1.

But either way, what would be the format to use this field as a filter for a test?

Hi André, you’re absolutely right about that.

Master Data V1 refers to the version that has a front-end available, while Master Data V2 does not have a graphical interface, as outlined in our documentation:

However, I checked with the responsible team, and the answer I previously sent you is correct. The Orders entity has been deprecated for Master Data V1 as well, meaning that with this change, the orders database is stored only in the OMS. For this reason, the best option would be to use the orders hook.

We have a topic here discussing how Feed and/or Hook configuration should be set up:

Karina Mota
Field Software Engineer | VTEX