Skip to main content

sgrEditarProgramacao

Edit the Schedule that has been included in the system.

SoapAction

PARAMETERS:

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
programmingobjectYesObject containing the programming and recipient data. The fields that must be entered can be found in the Programming item.

METHOD RETURN:

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

FieldTypeDescription
cdProgramacaointCode of the schedule posted in the system.
cdDestinatarioProgramacaoListList with the codes of the posted recipients.

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

ErrorDescription
Loading location not found.No recipient has been entered in the “schedule” parameter.
Carrier not found.The carrier informed in the “programming” parameter must be linked to the customer informed.
Consignee not found.The consignee informed in the “programming” parameter was not found in the system. Check that it is registered, or register it using the sgrAddDestinatarioProgramacao method. Note: This field will only be validated if the [Require CNPJ of delivery locations] parameter is checked.