Re: How can I parse JSON object in email body

How can I parse JSON object in email body

AH63935
Shopify Partner
37 1 27

I have a metafield that is a JSON object. I want it to show up in the email message as below in the send internal email to staff member step (see screenshot). How can I do this if the email message doesn't accept javascript or liquid logic (I've tried liquid logic, but it doesn't seem to work).

AH63935_0-1730329744881.pngAH63935_1-1730329788050.png

 



If JSON object would be:
{"businessName": "Magnolia Plates",
"phoneNumber": "1234567890",
"faxNumber": "0987654321",
"firstName": "John",
"lastName": "Doe"}
 
Email content would be:
Business Name: Magnolia Plates
Phone Number: 1234567890

Reply 1 (1)

RPiii
Shopify Staff
145 26 43

Have you considered preceding the "Send internal email" step with a "Run code" step that parses the JSON object and outputs the desired result for use in the email?