Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

remind_participants is working as intended

  • solte98
  • solte98's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #155882 by solte98
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
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
6 years 9 months ago #155890 by LouisGac
Replied by LouisGac on 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

Code:
            $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
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose