Campaign Monitor - ConsentToTrack is set to Yes but still Failed Queue
Describe the bug
I am getting this error
In the Integration I have set the ConsentToTrack 'Yes'
Steps to reproduce
- Set the ConsentToTrack to Yes
- Fill the form and send a form
Form settings
- Multi-page form: No
- Submission Method: Ajax
Craft CMS version
5.4.5.1
Plugin version
3.0.7
Multi-site?
No
Additional context
No response
Can't seem to replicate this sorry. Can you confirm if you've refreshed the integration (clicking the refresh button next to where you select your list)? I can see your mappings to consent values are set to "Yes", so that otherwise looks correct to me.
Yes, I have clicked on the refresh button next to where the select list is.
The job data shows null:
"ConsentToTrack": "",
From: Josh Crawford @.> Sent: Wednesday, 2 October 2024 3:42 pm To: verbb/formie @.> Cc: Priti Burfield-Mills @.>; Author @.> Subject: Re: [verbb/formie] Campaign Monitor - ConsentToTrack is set to Yes but still Failed Queue (Issue #2076)
Can't seem to replicate this sorry. Can you confirm if you've refreshed the integration (clicking the refresh button next to where you select your list)? I can see your mappings to consent values are set to "Yes", so that otherwise looks correct to me.
— Reply to this email directly, view it on GitHubhttps://github.com/verbb/formie/issues/2076#issuecomment-2387523141, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHTN2A4P3CN5775JSNM6GMDZZNFQRAVCNFSM6AAAAABPGXDV36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGUZDGMJUGE. You are receiving this because you authored the thread.Message ID: @.***>
Hmm, a blank value should be impossible, as Yes or No are the only two options we set.
There's no custom module code or anything altering behaviour?
No custom module code. Just a basic form which has Name, Email, privacy policy checkbox.
Get Outlook for iOShttps://aka.ms/o0ukef
From: Josh Crawford @.> Sent: Wednesday, October 2, 2024 4:20:29 PM To: verbb/formie @.> Cc: Priti Burfield-Mills @.>; Author @.> Subject: Re: [verbb/formie] Campaign Monitor - ConsentToTrack is set to Yes but still Failed Queue (Issue #2076)
Hmm, a blank value should be impossible, as Yes or No are the only two options we sethttps://github.com/verbb/formie/blob/12905b31c62eb964e2e06d006b6ce6eccf3f64ed/src/integrations/emailmarketing/CampaignMonitor.php#L163.
There's no custom module code or anything altering behaviour?
— Reply to this email directly, view it on GitHubhttps://github.com/verbb/formie/issues/2076#issuecomment-2387551984, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHTN2A7GW4MDCXK4IP6K4WLZZNJ63AVCNFSM6AAAAABPGXDV36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGU2TCOJYGQ. You are receiving this because you authored the thread.Message ID: @.***>
Can you send through a support request via Formie > Settings > Get Support for that form? I would like to see your integration mappings as stored in the database, just to double check things are all okay.
thank you. I have just send Support Request from the Formie settings.
From: Josh Crawford @.> Sent: Wednesday, 2 October 2024 4:53 pm To: verbb/formie @.> Cc: Priti Burfield-Mills @.>; Author @.> Subject: Re: [verbb/formie] Campaign Monitor - ConsentToTrack is set to Yes but still Failed Queue (Issue #2076)
Can you send through a support request via Formie > Settings > Get Support for that form? I would like to see your integration mappings as stored in the database, just to double check things are all okay.
— Reply to this email directly, view it on GitHubhttps://github.com/verbb/formie/issues/2076#issuecomment-2387575462, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHTN2A47ZFQVUHG7552C4QDZZNN3PAVCNFSM6AAAAABPGXDV36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGU3TKNBWGI. You are receiving this because you authored the thread.Message ID: @.***>
Thanks for that, I can confirm your form settings are all correct. As an example, my job detail looks like:
{
"description": null,
"submissionId": 16796,
"payload": {
"EmailAddress": "[email protected]",
"Name": null,
"CustomFields": [],
"Resubscribe": true,
"RestartSubscriptionBasedAutoresponders": true,
"ConsentToTrack": "Yes",
"ConsentToSendSms": "No"
},
"integration": {
"apiKey": ".........",
"clientId": ".........",
"fieldMapping": {
"Email": "{field:email}",
"Name": "{field:multiName.firstName}",
"MobileNumber": "",
"ConsentToTrack": "true",
"ConsentToSendSms": "false"
},
"listId": "b26198236334d2a12d6f8f92c45b2",
Thank you for taking a look at it. What would you think the issue could be at my side? Should I need to do reintegration? I am trying to re-run the failed queue and it could be the failed queue isn't storing the ConsentToTrack value when I re-run it?
From: Josh Crawford @.> Sent: Wednesday, 2 October 2024 5:16 pm To: verbb/formie @.> Cc: Priti Burfield-Mills @.>; Author @.> Subject: Re: [verbb/formie] Campaign Monitor - ConsentToTrack is set to Yes but still Failed Queue (Issue #2076)
Thanks for that, I can confirm your form settings are all correct. As an example, my job detail looks like:
{ "description": null, "submissionId": 16796, "payload": { "EmailAddress": @.***", "Name": null, "CustomFields": [], "Resubscribe": true, "RestartSubscriptionBasedAutoresponders": true, "ConsentToTrack": "Yes", "ConsentToSendSms": "No" }, "integration": { "apiKey": ".........", "clientId": ".........", "fieldMapping": { "Email": "{field:email}", "Name": "{field:multiName.firstName}", "MobileNumber": "", "ConsentToTrack": "true", "ConsentToSendSms": "false" }, "listId": "b26198236334d2a12d6f8f92c45b2",
— Reply to this email directly, view it on GitHubhttps://github.com/verbb/formie/issues/2076#issuecomment-2387593359, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHTN2A3MT3K4ZMNUQV3AL5TZZNQQRAVCNFSM6AAAAABPGXDV36VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGU4TGMZVHE. You are receiving this because you authored the thread.Message ID: @.***>
What does the job detail look like compared to my above example? Re-running the job should update any field mapping you have defined in your form settings.