Woo commerce coupon code into custom field | Community
Skip to main content
Oct 8, 2017 11:11 PM UTC
Solved

Woo commerce coupon code into custom field

Hey - I've got a list of coupon codes generated by Woo commerce in a JSON file and I want to pull these into a Marketo custom field to then send to customers in an automated email.

I've attempted to get this working using a web hook as shown in the example below;

My campaign is then triggered on the form fill out which calls the web hook. There is an error however, as the coupon code is not pulling into the wooCoupon market field in the test contact record. Has anyone tried anything similar using coupons from Woo Commerce?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Accepted solution
Oct 25, 2017 2:18 AM UTC

That should've updated the field. It isn't blocked from webhook-based updates in Admin, right? And it's a String?


The field type is URL, so there is the issue! Silly error. Thanks for your help Sanford much appreciated.

8 replies

SanfordWhiteman
Level 10
Oct 9, 2017 12:07 AM UTC

If you have a static JSON file (not a webserver that is serving responses based on the JSON file) then you obviously can't perform lookups into the file by passing query parameters.

If you have an an active process on the back end that returns a single JSON object for the {{Lead.Referral_Email}}:

{

  "my_coupon" : "12345"

}

then there's nothing WooCommerce-specific here. It'll map back just fine.

Note your token {{lead.Lead.Referral_Email}} also looks malformed. It's probably just {{Lead.Referral_Email}}.

Translate
Oct 24, 2017 10:36 PM UTC

Thanks for your response Sanford. We are using webserver response but still not getting the woo coupon code into the custom field. Is there a way I can debug?

Translate
SanfordWhiteman
Level 10
Oct 24, 2017 10:59 PM UTC

Can you show the Activity Log details for the Call Webhook entry?

Translate