Functions

Functions

Functions are the building blocks for developing an extension. They come handy for all server side customization. Sigma executes functions without additional infrastructure cost. External function calls can be done using rest APIs. You have to generate an API token to call functions outside Sigma. 
Sigma uses Deluge for building functions. Deluge script builder provides a drag-and-drop user interface which helps in creating functions quickly. Build anything from simple methods like sending an email notification to complex recursive functions using the editor. Click here to know more about writing functions in Deluge. 

Create a function

Let’s build a function to send an email notification

  1. Navigate to Functions module and click New Function at the top right corner. 
  2. Enter a function name and give a description. 
  3. Click Save.
  4. Open the newly created function. 
  5. Drag and drop the send mail function under the Notifications section. 
  6. Specify the from and to addresses, email subject, and the main text. 
  7. Click Edit to add place holders to your email. 
  8. Click Save

Associate a function to an extension

Write a function and reuse it across your extensions wherever you require. You can associate a function to multiple extensions.    
  1. Navigate to Extensions module, hover over your extension and click .
  2. Choose View and click Functions.
  3. Go to the Functions tab and click Associate function.
  4. Select sendmailnotification from the drop-down.
  5. Select Latest under Version.
  6. Click Associate.
  7. Your function is successfully associated with your extension.


    • Related Articles

    • Functions

      Set Up Functions   You can set up functions in six places: Create a standalone function. Associate function to a workflow rule. Use functions later by including them in Schedules. Set the function to get executed upon the click of a Custom Button. ...
    • Custom Functions

      Custom functions help in automation where procedural logic is required, which cannot be implemented with the default actions such as, Tasks, Webhooks, etc. With custom functions you can automatically update the data in the related Zoho Recruit ...
    • Custom Functions

      The Manage Business icon in the top menu bar is your go-to for managing all of your booking preferences. This page discusses Custom Functions. Aside from the default flow of a customer booking, you can define additional workflows at each stage of the ...
    • Custom Functions

      Super admins and admins can view and edit this information. Managers can only view this information. Staff members will not have access to this information. Custom functions help with automating actions that require procedural logic and that cannot ...
    • Custom functions

      Automate your issues workflow using Custom Functions. What Is a Custom Function? A custom function is a piece of code that can be used for automating a process. You can write your own function in Deluge and call it from one or more business rules. It ...