Metafield Type definition (Shopify Flows)

Solved

Metafield Type definition (Shopify Flows)

tristanklavsen
Excursionist
18 1 2

Hi Shopify Community

 

I've added a product metafield with the type "rich text".

Before i had the same product metafield with the type "multi-line text"

The problem with multi-line text is that i can not make a hyperlink.

I can make the hyperlink on the type "rich text".

But when i want to connect Shopify Flows and set up an automation to update product metafield when a product is added to store, it does not work with the new method with a link in the "rich text" type.

Is it not possible to make the automation in Shopify Flows and add the hyperlink which i would like?

Thanks again!

Accepted Solution (1)

tim
Shopify Partner
3765 351 1386

This is an accepted solution.

Rich text value is not a HTML text, it's a JSON object under the hood, so when trying to use it in Flow you need to look at it from the GraphQL point of view.

Check https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types#rich-text-formatting to get better understanding.

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

View solution in original post

Replies 2 (2)

tim
Shopify Partner
3765 351 1386

This is an accepted solution.

Rich text value is not a HTML text, it's a JSON object under the hood, so when trying to use it in Flow you need to look at it from the GraphQL point of view.

Check https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types#rich-text-formatting to get better understanding.

 

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
tristanklavsen
Excursionist
18 1 2

Thank you, Tim!