Skip to main content
Question

How do I reformat JSON input text to include emoji in Zapier?

  • 20 June 2024
  • 5 replies
  • 51 views

Hi,

 

I am trying to reformat the following input text from an external application : {"Typedechauffage": "Collectif"}

In to : ♨️ Collectif

 

I tried so many things and can’t find the solution.


Can you please help ?

Dan

Hi @Dan for SEO 

Try this Zap action: Formatter > Text > Replace


Thank you @Troy Tessalone , the question is what to write into the Replace form?


@Dan for SEO 

Replace: Collectif

With: ♨️ Collectif

 

OR
 

Replace: {"Typedechauffage": "Collectif"}

With: ♨️ Collectif


That’s work only when I get the input: {"Typedechauffage": "Collectif"}

But sometimes the word Collectif changes, and I get: {"Typedechauffage": "Individuel"}

Then I just want to keep: ♨️ Individuel


@Dan for SEO 

If you are trying to extract the value and add the emoji before then try these steps:

  • Formatter > Text > Replace
    • Replace: {"Typedechauffage": "
    • With: nothing
  • Formatter > Text > Replace
    • Replace: "}
    • With: nothing

 

That leaves you with the text value, the you can map that value plus the emoji in following Zap steps.