Roles as a Merge Variable

Created on 27 May 2022, over 2 years ago
Updated 22 May 2024, 4 months ago

On current D7 site we are sending roles list of users to a merge variable at MailChimp. We wanted to do same in D9 site, we are currently working on.

I found the "Role" field is even not available to select for a mergefield in field configuration page.

🐛 Bug report
Status

Needs review

Version

2.1

Component

Lists Module

Created by

🇮🇳India junaidpv Kannur, Kerala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States amh5514

    The role option is very useful for audience segmentation at MailChimp.

    Thank you for this patch. It does add the role option to the available merge list and imports role(s) for new Drupal accounts to MailChimp.

    If an existing user's account has a role added or removed, the MailChimp field does not update with the new information. Even after updating the Mailchimp Mergevar Values, nothing is changed on MailChimp.

    Were you able to find a workaround for updating existing user roles?

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7
    last update 4 months ago
    Patch Failed to Apply
  • 🇺🇸United States amh5514

    It seems the 2.2.3 update causes an error: "Uncaught PHP Exception ParseError: "syntax error, unexpected token "else"" at /modules/contrib/mailchimp/modules/mailchimp_lists/src/Plugin/Field/FieldType/MailchimpListsSubscription.php line 374

    The update caused the patch to add the "else {}" statement to the wrong function in MailchimpListsSubscription.php.

    I've moved it and updated the patch.

Production build 0.71.5 2024