AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones Salesforce
  • Possible error cases:
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
<sfConnection variable>.EmptyRecycleBin (Función)
Clears the specified records from the Salesforce recycle bin.
Remark: After 30 days, items in the Salesforce recycle garbage can are automatically deleted.
Ejemplo
// Connexion à Salesforce
Cnx is sfConnection
Cnx..Login = "balthazar@gmail.com"
Cnx..Password = "azerty" + "XXB12VCZ54"
IF Cnx.Connected() = False THEN
	Error("La connexion a échoué")
	RETURN
END
ResRequête is sfExecuteQueryResult 
ResRequête = Cnx.ExécuteRequête("SELECT Date__c,Miles__c,Contact__c FROM Mileage__c")

MonEnregistrement is sfObject
FOR EACH MonEnregistrement OF ResRequête..Subject
	Trace("---- Type: " + MonEnregistrement..Type + " | ID: " + MonEnregistrement..ID)
	Trace(MonEnregistrement..Date__c + " / " + MonEnregistrement..Miles__c + " / " + ...
		MonEnregistrement..Contact__c)
END

// Suppression d'un objet
tabSuppr is array of strings
tabSuppr.Ajoute(ResRequête..Subject[1]..ID)

tabResSuppr is array of sfDeleteResult
tabResSuppr = Cnx.Supprime(tabSuppr)
FOR EACH res OF tabResSuppr
	Trace("ID: " + res..ID + " - Suppression = " + res..Success)
END

tabResVideCorb is array of sfEmptyRecycleBinResult
tabResVideCorb = Cnx.VideCorbeille(tabSuppr)
FOR EACH res OF tabResVideCorb
	Trace("ID: " + res..ID + "- VideCorbeille  = " + res..Success)
END
Sintaxis
<Result> = <Salesforce connection>.ClearRecycleBin(<Records to delete>)
<Result>: Array of sfEmptyRecycleBinResult
Array of sfEmptyRecycleBinResult variables that contains the records deleted from the recycle bin.
<Salesforce connection>: Variable sfConnection
Name of the variable of type sfConnection to be used.
<Records to delete>: Variable de tipo Array
Array of character strings containing the Salesforce identifiers of the records to delete from the recycle bin.
Observaciones

Possible error cases:

  • The Internet connection is not valid.
  • The authentication was not performed properly.
  • The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred variable.
Componente: wd300ggl.dll
Versión mínima requerida
  • Versión 24
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local