sgrListaProdutos
Returns a list of the company's products.
PARAMETERS
Field | Type | Required? | Description |
---|---|---|---|
chaveacesso | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdcliente | integer | Yes | Client code, returned by the sgrListaEmpresasPASUsuario method. |
METHOD RETURN:
ReturnDataset: If the access key provided is valid, the property will display:
Field | Type | Description |
---|---|---|
CDPROD | integer | Product code |
DSPRODUTO | string | Product description |
DSPRODSIGLA | string | Product description (acronym) |
FLPERIGOSO | smallint | Indicates whether the product is dangerous (1-Yes, 0-No) |
ReturnDescription: If there is an error executing the method, the property will display:
Error | Description |
---|---|
There are no products linked to the company! |