NAME
Kernel::System::Survey::Request – sub module of Kernel::System::Survey
DESCRIPTION
All survey request functions.
PUBLIC INTERFACE
RequestGet()
to get an array list of request elements
my %RequestData = $SurveyObject->RequestGet(
PublicSurveyKey => 'Aw5de3Xf5qA',
RequestSendTimeNewerDate => '2012-01-01 12:00:00', # (optional)
RequestSendTimeOlderDate => '2012-01-31 12:00:00', # (optional)
RequestVoteTimeNewerDate => '2012-01-01 12:00:00', # (optional)
RequestVoteTimeOlderDate => '2012-12-31 12:00:00', # (optional)
RequestCreateTimeNewerDate => '2012-01-01 12:00:00', # (optional)
RequestCreateTimeOlderDate => '2012-12-31 12:00:00', # (optional)
);
returns:
%RequestData = (
RequestID => 123,
TicketID => 123,
SurveyID => 123,
ValidID => 1,
PublicSurveyKey => 'b4c14552919018b51ec792c9b812b691',
SendTo => 'mail@localhost.com',
SendTime => '2017-01-01 12:00:00',
VoteTime => '2017-01-02 12:00:00',
);
RequestSend()
to send a request to a customer (if master survey is set)
my $Success = $SurveyObject->RequestSend(
TicketID => 123,
);
RequestCount()
to count all requests of a survey
my $RequestCount = $SurveyObject->RequestCount(
QuestionID => 123,
ValidID => 0, # (0|1|all)
Embedded => 0, # (0|1)
);
RequestDelete()
delete request by id
my $VoteDelete = $SurveyObject->RequestDelete(
RequestID => 123,
);