Custom evaluator for a column in the data feed

Commentaires

1 commentaire

  • Lior Delouya

    Hi Al Lee,

    1. First, you need to have the stock level numeric value in a separate column. 
    2. You can then use the getSocialProof/getProductsData API with includeProductData parameter. 
    3. https://support.dynamicyield.com/hc/en-us/articles/360017575533-API-Reference
    4. It will return all the SKU that including the stock column. 
    5. You can do all of it in an evaluator or Custom Code Action 

     

    API example - 

    DY.ServerUtil.getProductsData(["1217282-400", "1217282-600"], ['daily', 'twoDays'], 'view', true, function(err, res) { console.log(res)})

    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.