Developer forum

Forum » PIM » Automatically add/remove products from PIM feeds

Automatically add/remove products from PIM feeds

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I had a potential customer as an interesting question. Could we have products that are automatically added/removed from feeds.

 

I believe we can almost do it without any custom code, but want to see if I'm missing something:

  • We can use the Auto-assign products feature to add them from groups (that the query used by the feed is connected to)
    This would automatically expose Products on a feed
  • How would we remove them?
    • Do we need to have a custom logic to remove them from Groups?
      OR
    • We could have some Start and End date fields (sort of like Publication Periods) and have query expressions based on some Macro or Code (DateTime values) - this is rather techy, but I guess I could get it to work

 

Does anybody know of a way to make this happen and/or have the same need?

 

The customer also asked about authentication for feeds, but for that I found Adrian's workaround for now https://doc.dynamicweb.com/forum/pim/pim-feed-permissions

 

Best Regards,

Nuno Aguiar


Replies

 
Michael Knudsen
Reply
This post has been marked as an answer

Hello Nuno,

- I have a similar setup, but I auto publish products to a channel (which could be used by a feed) and the assignment rule is done by a query. If the product is removed from the query result, it will also be removed from the channel.

 

Assignment rule:

 

Scheduled job config:

 

Br. Michael Knudsen

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

Hi Michael,

 

Oh great, I hadn't realized that setting in the scheduled task. That's just perfect, thanks.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum