Skip to main content

sgrProcuraRota

Returns a list of the company's routes according to the search parameter.

SoapAction

PARAMETERS

FieldTypeRequired?Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListPASUser method
cdclienteintegerYesCustomer code, returned by the sgrListaEmpresasPASUsuario method.
tipopesquisastringYesType of search to be carried out. Enter 'n'/'N' to search by route name, or 'c'/'C' to query a code.
parametrostringNoParameter used in the search. If searching by name (searchtype = n), and the parameter is null, it lists all routes. Passing the parameter is mandatory when searching by code (typesearch = c).

METHOD RETURN:

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

FieldTypeDescription
CDROTAintegerRoute code
DSROTAstringRoute name

ReturnDescription: If there is an error when executing the method, the property will display:

ErrorDescription
Invalid parameter type!You must enter 'n'/'N' to search for the route name, or 'c'/'C' to query a code.
There are no routes with the parameter entered!