Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Adding custom field to every subscriber
  • Vote Up0Vote Down ArjanArjan
    Posts: 1Sendy user

    I would like to add a custom field to every subscriber. This custom field is a 16-letter entrance code that logs a user into my page when he/she clicks it.

    I like to set it through the API and then use this field in the email that is send to the subscriber.

    I see a column 'custom_field' in subscribers, but can't find any documentation or way to initialise it and fill it with the API.

    Is there any documentation? Or can you give me some indicators of how this works?

  • 2 Comments
  • Vote Up0Vote Down BenBen
    Posts: 3,484Sendy support

    Hi,

    Create the custom field in your list first, let's call it EntranceCode.

    To feed in the value for EntranceCode, see the 'subscribe' API documentation (https://sendy.co/api):

    To use your custom field in your email, paste [EntranceCode,fallback=] into your email's HTML code.

    Hope this helps.

    Best regards,
    Ben

  • Vote Up0Vote Down ArjanArjan
    Posts: 1Sendy user

    Thanks!

    One of the pitfalls: [EntranceCode,fallback=] works, but [EntranceCode] (without the fallback) gets deleted... Got it working now.

This discussion has been closed.
All Discussions