Skip to content

contact/sync width custom checkbox field. #120

@duskohu

Description

@duskohu

Hi, I trying create or update contact with custom checkbox field. I don't know what is wrong.
Can you suggest me?

        $list_id = 1;
        $ac = new \ActiveCampaign('...','.......');

        $contact = array(
            "email" => "example@example.com",
            "p[{$list_id}]" => $list_id,
            "status[{$list_id}]" => 1, 
        );

        $contact['field'] = array(
            '%NEWSLETTER%,0' => 1 // custom checkbox field name Personalization tag
        );

        $contact_sync = $ac->api("contact/sync", $contact);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions