Skip to main content

Hi Zapmates!

 

I am getting this value from a MetForm:

{"mf-email":"bruce@wayneenterprises.com","mf-listing-fname":"Bruce","mf-listing-lname":"Wayne"}

Any ideas how to parse or extract the data on these? Like First Name, Last Name and Email. The CRM we are using is SalesPype.

 

Looking forward to your help.

 

Thanks!

Hi @nikocena 

Good question.

Easiest is to use a JavaScript Code step: https://zapier.com/apps/code/help

 

 

let PARSED = JSON.parse(inputData.RAW);

output = t{PARSED}];

 


Hi @nikocena 

Good question.

Easiest is to use a Code step: https://zapier.com/apps/code/help

Hi, Troy! Thank you so much for your response. This would be Javascript, correct?

This seem to work. Thanks!

Would split-text work on the ‘mf-email?’


@nikocena 

Would split-text work on the ‘mf-email?’

Please explain further what you are trying to do?


@nikocena

Would split-text work on the ‘mf-email?’

Please explain further what you are trying to do?

I’m trying to extract just ‘Bruce.’ The code step was helpful but the value it returns has mf-fname with it.

Example: mf-fname: Bruce


@nikocena 

These are separate variables that can be mapped in following Zap steps.

 

 


@nikocena

These are separate variables that can be mapped in following Zap steps.

 

 

Hey, Troy. Thanks a lot with your help. I got it to work and clean up my data :)