PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Possible error cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<sfConnection variable>.Modify (Function)
In french: <Variable sfConnexion>.Modifie
Modifies the records of a file defined in Salesforce. This file can be a preset Salesforce file or a custom file.
Versions 20 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
WINDEVLinux This function is now available for WINDEV applications in Linux.
iPhone/iPad This function is now available for iPhone/iPad applications.
WINDEVLinux This function is now available for WINDEV applications in Linux.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 24 and later
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 24
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
// Connexion à Salesforce
Cnx est une sfConnexion
Cnx..Login = "balthazar@gmail.com"
Cnx..MotDePasse = "azerty" + "XXB12VCZ54"
SI Cnx.Connecte() = Faux ALORS
Erreur("La connexion a échoué")
RETOUR
FIN
 
tabObjets est un tableau de sfObjet
ResRequête est un sfRésultatExécuteRequête
sTexteRequête est chaîne = "SELECT RecordTypeId, Beneficiaire__c, "...
"ID, Indice_de_mobiliot__c FROM BCM__c WHERE NAME='" + sRecherche + "'"
 
ResRequête = Cnx.ExécuteRequête(sTexteRequête)
 
UnEnregistrement est un sfObjet
POUR TOUT UnEnregistrement DE ResRequête.Objet
UnEnregistrement.Indice_de_mobiliot__c = "698" // Modification
Ajoute(tabObjets, UnEnregistrement)
FIN
 
tabRes est un tableau de sfRésultatSauvegarde
tabRes = Cnx.Modifié(tabObjets)
POUR TOUT res DE tabRes
Trace("Succès = "+res..Succès)
FIN
Syntax

Modifying the existing records Hide the details

<Result> = <Salesforce connection>.Modify(<Records to modify>)
<Result>: Array variable
Array variables of type sfSaveResult containing the result data, in particular the identifiers of the objects actually modified.
<Salesforce connection>: sfConnection variable
Name of the Variable type sfConnection to be used.
<Records to modify>: Array variable
Array of sfObject variables corresponding to the Salesforce records to modify. This array can contain up to 200 elements.

Modifying the existing records or creating records Hide the details

<Result> = <Salesforce connection>.Modify(<Records to modify or create> , <Mode> , <External identifier>)
<Result>: Array variable
Array variables of type sfSaveResult containing the result data, in particular the identifiers of the objects actually modified.
<Salesforce connection>: sfConnection variable
Name of the Variable type sfConnection to be used.
<Records to modify or create>: Array variable
Array variables of type sfObject corresponding to Salesforce records to be modified or created. This array can contain up to 200 elements.
<Mode>: Integer
Modification mode used:
sfCreationIfNotFoundThe record is automatically created if it does not exist.
<External identifier>: Character string
For a custom file, name of the item defined as unique item identifier from an external system.
  • This item is also used to identify the record to modify.
  • This item and its value are found in the sfObject object to modify.
    • The record will be automatically created if the value does not exist.
    • The record is updated if the value exists once.
    • An error is returned if the value exists several times.
Remarks
WINDEVWEBDEV - Server codeWindowsAjax

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.
Component: wd270ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment