Developer forum

Forum » Integration » Recognise master in database when it has no variants

Recognise master in database when it has no variants

Davy Capiau
Reply

Hi,

How can you recognize a master (family or regular) in the database when it has no variants anymore ?

It will have no:

- Variantid
- variantgrouprelations
- Variantcounter
- etc.

I don't see how to distinguish from a regular product


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply
This post has been marked as an answer

Then I think it'll fall back to being a standalone product. One other sign could be the absense of a product number as that's usually empty on a master. However, that's not guaranteed, so you can't tell for sure.

Imar

 

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

There's also the ProductVariantCounter column. It would be 0 if there are no variants.

 

Best Regards,

Nuno Aguiar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I think that's what Davy meant with Variantcounter

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Ah, right... ( :facepalm )

 

You must be logged in to post in the forum