Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I add a row to a Google Sheet every time we get a review. The review data is raw input from customers and often includes commas. The Flow integration treats all commas as a delimiter though. Is there any way to have Shopify Flow ignore commas in data variables? Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi there,
You can use liquid to escape any user data that may contain a comma. For example {{reviewTitle | replace: ',', '\,' }},{{reviewBody | replace: ',', '\,' }}
. The escaped comma will not be treated as a delimiter.
Hope this helps!
Perhaps a run code step that replaces commas in the review contents with another character or url encodes them.
Thanks for the suggestion! I thought about something like that but it would make the review content harder to parse and generally I wanted to avoid modifying user-inputted data. The fix I really need is the ability to use a different delimiter or a way to wrap the review data in some type of character that Shopify Flow would then ignore commas within... Have you ever seen something like that?
Haven't done too much with the google sheets action in flow to date. Pretty sure I could figure something out here. I can dive into it further on a paid basis if that's of interest.
This is an accepted solution.
Hi there,
You can use liquid to escape any user data that may contain a comma. For example {{reviewTitle | replace: ',', '\,' }},{{reviewBody | replace: ',', '\,' }}
. The escaped comma will not be treated as a delimiter.
Hope this helps!
Hey Ryan, appreciate the suggestion. I've not used liquid as part of Shopify Flow, so I hope you don't mind a naive follow up. Would this be an action step I create in advance of the Google Sheets integration? The only "liquid" action I see is called "Log output". Here's how I set it up for now and I'll monitor to see if this works:
Hi there - it's in the "Add row to spreadsheet" action. If you click on that, you'll see the liquid editing textbox as it is in the screenshot from your original post.
Oh wow, didn't realize you could do that in that field. That was silly of me. Trying this now and will report back.
That worked perfectly. Thank you!! I'm so glad I tried using this forum...
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024