Skip to main content

sgrAgendaProgramacao

Method for allocating a vehicle/driver to a schedule.

SoapAction

PARAMETERS:

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
cdProgramacaointegerYesCode of the program that will be scheduled.
nrPlacaCavalostringYesHorse license plate
nrPlacaCarreta1stringNoMain trailer license plate
nrPlacaCarreta2stringNoSecondary trailer license plate
nrCPFstringNoCPF of the driver linked to the appointment.

METHOD RETURN:

ReturnDataset: If the parameters are correct, the dataset will display:

Scheduling successfully completed.

ReturnDescription: If there is an error in the execution of the method, the property will be displayed:

ErrorDescription
Schedule not found.Need to correctly check the code of the schedule to be scheduled.
Field nrPlacaCavalo is mandatory.Vehicle license plate must be filled in.