Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Add single line text to metafield without replacing

Solved

Add single line text to metafield without replacing

RobertsOT
Visitor
2 1 0

Hello i am struggling with this for a few days now.

 

I want to add a single line text to a metafield for multiple single line string but it just replaces the old one.

 

Screenshot at Dec 13 15-11-28.png

 

when both statements are true it only adds the second  string in this case "Langarmshirts"

 

Accepted Solution (1)
RobertsOT
Visitor
2 1 0

This is an accepted solution.

Its works now, thank you were much. i had to insert a 1 second wait after each step for some reason to get it to work. WORK.png

 

View solution in original post

Replies 2 (2)

paul_n
Shopify Staff
1431 157 332

Using metafield lists here are quite hard right now. You need to insert the variable for the old list and then change it to insert the new text. I've shared sample code on a few other community threads, including this one just yesterday. You'll need to tailor it to this use case:
https://community.shopify.com/c/shopify-flow-app/need-help-creating-workflow-need-to-auto-generate-i...

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
RobertsOT
Visitor
2 1 0

This is an accepted solution.

Its works now, thank you were much. i had to insert a 1 second wait after each step for some reason to get it to work. WORK.png