ssgrAdicionaRefPessoais
Adds personal references to the professional's record.
PARAMETERS:
Field | Type | Req. | Description |
---|---|---|---|
keyaccess | string | Yes | Key returned by the sgrLogin method. |
cdpas | integer | Yes | PAS code, returned by the sgrListaPASUsuario method |
cdclient | integer | Yes | Client code, returned by the sgrListCompaniesPASUser method. |
cdpessoa | integer | Yes | Professional profile code, returned by the sgrConsultaPF method |
References | List | Yes | List of personal references. Array of type sgrRefPersonal. |
METHOD RETURN:
ReturnDataset: If the parameters are correct, the reference is included and the dataset will display:
Field | Type | Description |
---|---|---|
CDPFJ | integer | Code of the professional profile to which the reference was associated |
ReturnDescription: If there is an error in the execution of the method, the object's property will display:
Error | Description |
---|---|
CPF not registered | The customer code entered was not found. The sgrConsultaPF method must be used to find the correct code. |
Personal references could not be registered | For this, the Web Service must return the dataset with the errors that made registration impossible. You need to check the data and try again. |