Problem/Motivation

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork mautic_eca-3530749

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

abhisekmazumdar created an issue. See original summary.

abhisekmazumdar’s picture

Assigned: abhisekmazumdar » Unassigned
Status: Active » Needs review
mallezie’s picture

Status: Needs review » Needs work

Aside from the operation field to add or remove, this also needs fields for the other DNC parameters.

See https://developer.mautic.org/#add-do-not-contact

channel Channel of DNC. For example ‘email’, 'sms’… Default is email.
reason Int value of the reason. Use Contacts constants: Contacts::UNSUBSCRIBED (1), Contacts::BOUNCED (2), Contacts::MANUAL (3). Default is Manual
channelId ID of the entity which was the reason for unsubscription
comments A text describing details of DNC entry

For remove, only the channel is a supported parameter.

This last part means we will need two different action, one for add to DNC, and one for remove from DNC.

abhisekmazumdar’s picture

Status: Needs work » Needs review

Made the changes. Please review the two new actions for DNC.

mallezie’s picture

Status: Needs review » Reviewed & tested by the community

Yes, that looks good.

abhisekmazumdar’s picture

Status: Reviewed & tested by the community » Fixed

Thank You.

  • abhisekmazumdar committed 5bd1897b on 1.0.x
    Issue #3530749 by abhisekmazumdar, mallezie: Add or remove a contact as...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.