Skip to main content

sgrListaProdutos

Returns a list of the company's products.

SoapAction

PARAMETERS

FieldTypeRequired?Description
chaveacessostringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclienteintegerYesClient code, returned by the sgrListaEmpresasPASUsuario method.

METHOD RETURN:

ReturnDataset: If the access key provided is valid, the property will display:

FieldTypeDescription
CDPRODintegerProduct code
DSPRODUTOstringProduct description
DSPRODSIGLAstringProduct description (acronym)
FLPERIGOSOsmallintIndicates whether the product is dangerous (1-Yes, 0-No)

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

ErrorDescription
There are no products linked to the company!