I think the advanced course C01 U04 scenario from Make Academy has a bug, and I don’t know how to solve it myself.
I set it all as described in the course unit and the scenario runs nicely, but there are a couple of things that don’t add up:
Most important (I’m guessing is a bug in scenario set up description): The “quantity” key-value pair of the collections that belong to the “variant” of the target collection-sku BUT DO NOT need to be updated (have other sku numbers), do not appear after the scenario is run by the webhook.
Less important (I’m guessing I made this error): The quantity in the value of the quantity that belongs to the targeted sku and has to be updated after the request in the webhook query should be 55 and it’s 60.
I attach a few screenshots that may clarify things…
Paul from the Academy team here- thank you for flagging this. It’s super important for us that our content is clear and works. So let’s see if we can figure this out: the main thing I’m seeing here is that the quantity for SKUS 6MN78O23/6MN78O24 disappears when you execute the scenario. So it’s likely something in the mapping.
Could you attach your blueprint here for the 2x scenarios you have created please - I won’t be able to see your data store but I can try replicate it and see what the problem is
Sorry, didn’t notice that an answer was in. I attach the blueprints. The DStore was done with the JSON text provided during the course, no manual input, so should be easy to reproduce.
The issue is as you restate it: when the target sku is checked for / updated, sku’s from the same variant that are not checked for / updated, disappear.
My sincere apologies for the delay in getting back to you. I’ve spent some time investigating this error this morning, by both rebuilding the scenarios from scratch and then executing your scenarios - the good news is that these work from my end, you’ve done these perfectly.
I think the issue may be arising somewhere in the first scenario, this one:
The good news is, everything works from this end - your scenarios are perfect. I’ve imported each of your them, hooked them up to my data store, recreated webhooks and can execute these fine. So this makes me think the issue may be with the data store/structure setup.
Just to confirm, before you execute your scenario your data store (particularly key 4) looks like this:
With quantities for both of the SKUs (this is making me think the ‘insert clean json’ scenario might have caused some bother somewhere).
I’m really scratching my head with this one - sorry this is taking longer to resolve than expected. I’m gonna have to speak to a few colleagues to see if they can add any guidance on this.
In the meantime could you try upload this blueprint and link scenarios/data stores etc for me please and let me know if you experience the same result? This should help us get to where we need to be quicker (e.g. confirm if this is a data store/structure issue, or an annoying bug somewhere).
The DS was as your image shows, and now it had lost the quantity of the first 2 sku’s on the list (the ones that should not be updated). To put it back as it was I edited the DS and added the original quantities for each sku.
I’ve also imported the blueprint and reconnect the modules. For this I pointed the data structure modules to the right DS, reauthorize the mail connection and changed the webhook there (my naming is Advanced C03), run that scenario, and redetermine the data structure in the webhook. When I run the scenario of your blueprint it doesn’t work. The webhook remains waiting.
I don’t know what type of potential outcomes you may be expecting (i.e. whether this is one of them, and helps resolving the issue…) I think I did all the reconnections correctly, but it’s getting a bit confusing, so chances are I didn’t and I missed something that created the issue why the blueprint scenario is not running.
I’m sorry but I’m a bit pressed on time lately, and I have no time to further dig into the issue. I hope this is of help, thought.