We have a very unique need to update tags based on some specific logic that can not be accomplished with just Flow conditions. I can not get the tags to update on the order and am wondering what I am missing. Here is the logic. The below code logs the correct results to the console but the tags of the order do not change.
I am guessing this is a GraphQL mutation, which isn’t allowed with Run Code? Super lame. Kind of neuters the abilities of what Run Code can do. Can anyone confirm that updating order tags with the Run Code action is not possible? I am looking into another app called Mechanic that allows for GraphQL mutations. Would be great if this was a feature in Flow itself.
Figured this out by passing the output to the “Add Order Tags” action. Add the action to your flow and pass the function return as the variable in the format {{runCode.yourReturnVariable}}.
Can you call Actions within a Run Code? I am doing basically the same thing as this user but it is returning a list of order that need to have a tag ordered. It would be awesome to make a call that just fed in the order ID and the tag to be added