Shopify internal meta field update using Shopify Flow

Shopify internal meta field update using Shopify Flow

sandeepsomai
Shopify Partner
13 0 4

Hey Shopify Community,

 

I am using Shopify Flow and I just want to know about the possibility of updating Shopify internal fields like "CUSTOMER_NOTE" using Shopify Flow. Can we use Shopify Flow to update internal fields in Shopify.

 

What I meant is that, I want to make an automation that updates "CUSTOMER_NOTE" value to the value of "ADDRESS.PHONE". is there any possibility of that?

Sandeep Kumar | Ecommerce Analyst
Replies 8 (8)

Kalen_Jordan
Shopify Partner
803 39 147

There's an Update Order Note action that updates the Note on the order. Is that what you meant?

sandeepsomai
Shopify Partner
13 0 4
there are two fields on which I want to work. First is the customer.phone
and second is that customer.note so I want to make ot such that if there is
any value in customer.phone I want to duplicate the value into
customer.note also. I tried doing Shopify Flow but I'm not sure will that
work or not. If there is any way so please let me know.

thanks
Sandeep Kumar | Ecommerce Analyst

Jeff-Armstrong
Shopify Staff
35 3 3

You can use the Update customer note action. You can use variables in the note field to add phone numbers or other customer information. Clicking Add a variable and choosing Customer -> addresses -> phone gives the following result.

JeffArmstrong_0-1710278451099.png

 

To learn more visit the Shopify Help Center or the Community Blog.

sandeepsomai
Shopify Partner
13 0 4
hey thanks for your reply on this.

But I'm not sure that the Shopify Flow functionality is working or not.
Because I have tried updating the attributes but in Shopify Flow there was
not any error it executed successfully but there was no any change in
requested attribute. I'm also not sure that can we use Shopify Flow to
update or manipulate Shopify's internal meta fields.

thanks for your help, please let me know if there is any way to do this.
Sandeep Kumar | Ecommerce Analyst
Jeff-Armstrong
Shopify Staff
35 3 3

Can you share screenshots of your workflow and the workflow run log? It's difficult to know what's going wrong without more detail.

You can update metafields with Flow. For example the Update customer metafield action.

To learn more visit the Shopify Help Center or the Community Blog.

sandeepsomai
Shopify Partner
13 0 4

hey Jeff,

 

ok in short if I explain you what I want to do is I want to update customers' phone number from their default address details. I have created shopify flow to achieve the same and test flow ran successfully but metafield did not get updated.

 

 

This is my Test Flow. Trigger is When there is an order creation. First Check if Default address has Phone value. and then update customer phone with the default address's phone value.

SS1.PNG

 

It gave me this output. SS3.PNG

 

But what I can see is that customer phone number is not updated yet.

SS2.PNG

 

could you please see what's the issue am I lacking something in Flow!

Sandeep Kumar | Ecommerce Analyst
Jeff-Armstrong
Shopify Staff
35 3 3

The problem is that you're trying to update the customer's phone field, but you're using Update customer metafield which updates the customer metafields, not the customer fields. You can read more about metafields here.

 

Flow doesn't have an action that can update the customer.phone field. Here are some options:
- create a metafield and update that metafield using Update customer metafield

- add a tag using Add customer tag

- update a customer note using Update customer note

- update the phone field on the customer like you want, but using the Send HTTP Request action and use the customerUpdate graphql mutation. See the Flow documentation on Send HTTP Request which includes an example of calling the graphql Admin API.

To learn more visit the Shopify Help Center or the Community Blog.

sandeepsomai
Shopify Partner
13 0 4

hey Jeff-Armstrong,

 

Can you share me a step by step process I mean how to setup this Because I think I am missing something in here. Or could you please share me proper screen shot of this,

 

Thanks

Sandeep Kumar | Ecommerce Analyst