remind_participants is working as intended

More
5 months 5 days ago #155882 by solte98
solte98 created the topic: remind_participants is working as intended
I'm following api.limesurvey.org/classes/remotecontrol..._remind_participants and sending sessionKey, surveyID, null, null, $tokenIDs

$tokenIDs is an array, for example:

array (
0 => '3881',
)

This is the response I get:

array (
'status' => 'Error: No candidate tokens',
)

The token in question, 3881 was sent an invitation on 17.05.2017

invite_participants and various other methods work fine, so I don't think it's an issue with the session key or survey ID

Please Log in to join the conversation.

More
5 months 4 days ago #155890 by LouisGac
LouisGac replied the topic: remind_participants is working as intended
maybe it can help you, here the code:

github.com/LimeSurvey/LimeSurvey/blob/ma...ndle.php#L2421-L2424

            $aResultTokens = $oTokens->findUninvited($aTokenIds, $iMaxEmails, false, $SQLemailstatuscondition, $SQLremindercountcondition, $SQLreminderdelaycondition);
            if (empty($aResultTokens))
                return array('status' => 'Error: No candidate tokens');


So it's calling the method findUninvited from the token dynamic model:
github.com/LimeSurvey/LimeSurvey/blob/ma...ynamic.php#L155-L167


Here my bet: you should check in your config the email batch size (maxemails) setting:
manual.limesurvey.org/Global_settings#Email_settings

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!