Skip to main content

sgrAtualizaFotoPF

Adds/Updates a photo to the professional profile.

SoapAction

PARAMETERS

FieldTypeReq.Description
keyaccessstringYesKey returned by the sgrLogin method.
cdpasintegerYesPAS code, returned by the sgrListaPASUsuario method
cdclientintegerYesClient code, returned by the sgrListCompaniesPASUser method.
cdpersonintegerYesProfessional profile code. This code is returned by the sgrConsultaPF.
photoimageYesProfessional profile photo.

METHOD RETURN:

ReturnDataset: If the parameters are valid, the photo is included in the record and the property will display:

FieldTypeDescription
CDPFJintegerCode of the professional profile to which the photo was added

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

ErrorDescription
The person informed is not registeredFollow the steps in the item DRIVER CONSULTATION AND REGISTRATION
Photo recording failed! Try againThis 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.