We are currently capturing gift messages for some orders under the “additional details” section. I would like to set up a flow such that when the Additional Details section has the field “Gift message”, that the value in this field is automatically copied into the “Notes” field for the order. See below for what I mean:
Please note this should only happen when the attribute being captured is “Gift message”. Any other attributes that are included under Additional Details should not be copied into the Notes field.
Hi @paul_n thanks for your reply. I’m still confused on how to actually implement this. Do I update the order note with code or something else? Additionally, the message of “Thank you!” was just an example. I want to update the order note (and overwrite it) with whatever value is included in the key of “gift message”, when that key exists (sometimes there is no key of “gift message”). Thanks!
Hi @paul_n thank you! i was able to get the flow to run but it’s not updating the gift note field. are you able to let me know what i’m doing wrong? here’s my code:
You are using a key that doesn’t exist. I think based on the UI above it’s “Gift message”, including space and capitalization. You can also test what it is by using the “log output” action and putting something like this in it:
{% for ca in order.customAttributes %}
key:{{ ca.key }}
value: {{ ca.value }}
{% endfor %}