Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I am trying to use Flow to update various product fields based on certain conditions using the Send Admin API action. To test this I am using an old, inactive product and using a very simple product update mutation but keep getting the following error when it runs: "Ran into exception: Mutation input evaluated to invalid JSON. Please ensure the input forms valid JSON after Liquid code is run."
I don't understand why this error is occurring. Please help, I'm at a complete loss. I don't understand .
This is the Flow:
This is the API request detail:
And this is the error/returned data:
Thanks in advance.
i had to google search what flow was. but I think your issue is that your json is formatted incorrectly.
i think
(ON SALE) - Marloboro - plz guaway - 5.5% (440ml),
should need quotes around it. like
"(ON SALE) - Marloboro - plz guaway - 5.5% (440ml)",
json objects have specific formatting I think that might be your main issue with this error not exactly sure how you can make that happen in an automated way using flow. but I hope that helps
Thanks for replying so quickly. I don't think this is the issue. I have run the api call using text and got the same error.
Adjusted mutation input:
Error & report:
Something else must be the error.
sorry that previous response didnt help. this looks like it might be more along the lines of what you're doing?
https://community.shopify.com/c/shopify-flow-app/modifying-product-type-error/m-p/2830038#M6215
this sort of makes sense because it needs to know which product id you are mutating. it doesn't know you want to mutate the product that triggered the flow. (if I am understanding your original photo correctly)
This is not the right format for that mutation. Just look at the examples in the docs. https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/productupdate
For example, you have nested the media inside the input, which is not correct.
Also, you are missing some required fields like the product id
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024