sgrAtualizaFotoPF
Adds/Updates a photo to the professional profile.
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. |
cdperson | integer | Yes | Professional profile code. This code is returned by the sgrConsultaPF. |
photo | image | Yes | Professional profile photo. |
METHOD RETURN:
ReturnDataset: If the parameters are valid, the photo is included in the record and the property will display:
Field | Type | Description |
---|---|---|
CDPFJ | integer | Code of the professional profile to which the photo was added |
ReturnDescription: If there is an error when executing the method, the property will display:
Error | Description |
---|---|
The person informed is not registered | Follow the steps in the item DRIVER CONSULTATION AND REGISTRATION |
Photo recording failed! Try again | This error may be caused by an incorrect parameter, the field to be corrected will be indicated in the returnDataset property. This means you need to check the parameters and run the method again. It may also indicate a timeout or a dropped connection to the database. It is necessary to pass on the data entered, as well as the name of the method, the issue time and the customer code to the following e-mail address: [email protected] so that the error can be validated. |