Edit Argument

  • We define an argument by specifying which piece of information we will pull into our function, in this case, just the Contact ID
  • The argument (Contact ID) is the input, the code is the engine or motor, and the end result of updating the Account record is our output

You will understand better by the end of this course, but here is why we should only define one argument per function:

  • Deluge as a language very efficiently stores records and pieces of data within the code
  • Using a well-chosen argument, usually one of the unique Zoho ID’s, we can query any piece of information we need within the function
  • Then, when testing and running a function, all the data querying happens within the code itself and we only have to provide that one argument as input
  • This allows for cleaner code and a much more streamlined and efficient process for testing your functions