Home Developers

Developers

API, webhooks and technical setup.
Christian
By and 1 other
• 7 articles

How to Create and Manage Incoming Webhooks in Simply CRM

How to Create and Manage Incoming Webhooks in Simply CRM Webhooks are a powerful way to automate actions in Simply CRM by sending real-time data to external services whenever specific events occur. This guide will walk you through the process of creating and managing incoming webhooks within Simply CRM. What is an Incoming Webhook? An incoming webhook is a method of receiving HTTP requests from external services whenever certain events happen within Simply CRM. This can be used to integrate Simply CRM with other applications, automate workflows, or trigger external actions based on CRM events. Creating an Incoming Webhook To create an incoming webhook, follow these steps: 1. Navigate to Module Settings - Go to the module for which you want to create an incoming webhook. - Open the settings by clicking on the settings icon within the module. Module Settings 2. Go to Record Creation - In the settings menu, select "Record Creation." This is where you’ll set up your incoming webhook. Record Creation 3. Fill in Webhook Details - You’ll be presented with a form to fill in the webhook details. Below is an explanation of each field. Webhook Details - Webhook Name: Enter a descriptive name for your webhook. This name will help you identify it later. - Module Name: Select the module in which the record will be created when the webhook is triggered. - Is Active: Toggle this option to enable or disable the webhook. If disabled, the webhook won’t send data even if triggered. - Mandatory Parameters: Here you can specify the required fields that must be filled when creating a record via the webhook. Fields marked with red text are mandatory. Mandatory Parameters Adding Fields to Create a Record When setting up the incoming webhook, you’ll need to define the fields that will be sent in the HTTP request when the webhook is triggered. 1. Select the Module Field - Choose the specific fields from the selected module that you want to include in the webhook request. Module Field 2. Specify the Value Type - For each field, you can specify the type of value it will contain: - Value: Use a fixed value that you enter in the field. - Field: Use the value from a specified field in the record. - Expression: Use an expression to dynamically generate the value. - Reference: Use a reference to another record or module. Testing and Saving Your Incoming Webhook After setting up your incoming webhook, it's important to test it to ensure it works as expected. 1. Test the Webhook - Use the testing functionality within the module to simulate the event that would trigger the webhook. Verify that the data is being sent correctly to the external service. 2. Save Your Webhook - Once you’re satisfied with the setup and testing, save your webhook. Managing Existing Webhooks You can manage your incoming webhooks by going back to the module’s settings where you initially created them. Here, you can: - Edit: Make changes to an existing webhook. - Deactivate/Activate: Toggle the webhook’s status without deleting it. - Delete: Permanently remove a webhook if it’s no longer needed. Tips for Using Incoming Webhooks Effectively - Ensure Security: Always verify that the external service you’re sending data to is secure. Consider using HTTPS and validating the data sent via the webhook. - Monitor Performance: Keep an eye on the performance of your webhooks, especially if they are critical to your workflows. Ensure that the external services receiving the webhooks are reliable. - Documentation: Maintain proper documentation of your webhooks, especially if multiple team members will manage them. Need Help? If you have any questions or need assistance with setting up your webhooks, our support team is here to help! You can reach out to us via chat or email us at support@simply-crm.com. By following these steps, you can efficiently set up and manage incoming webhooks within Simply CRM, ensuring seamless integration and automation of your business processes.

Last updated on Sep 15, 2024

Simply CRM Web Service & API Documentation

This documentation describes the REST based application programming interface (the API) published by Simply CRM. It is meant as a reference document for everyone who uses our API’s. We recommend that you go through the tutorial before you attempt reading this documentation. All structural data including response from the API is represented as JSON strings. Each entity has a specially formatted ID that can be used to look up an entity’s type and the record. Create is the one case that does not require an ID. <a href="http://Simply_url/webservice.php?operation=">http://Simply_url/webservice.php?operation=</a> [operation type]&sessionName=[session Name]&[operation specific parameters] Currently, Simply CRM supports the following operations: - getchallenge - login - create - retrieve - update - delete - sync - query - listtypes - describe - logout - extendsession SessionName The key that is used to uniquely identify the current session. This information should be sent to the server as part of each request. Web service The web service API supports the security model followed in the Simply web user interface. The login process uses a two step challenge/response scheme. Data types used by the API All responses will have the format shown below. If the request is processed successfully, then the format is: If a failure occurs while the request is being processed, you will receive the following response format: Response { <br></br> success:Boolean=true <br></br> result:Object //The Result object <br></br>} Response { <br></br> success:Boolean=false <br></br> error:ErrorObject <br></br>} ErrorObject {<br></br> errorCode:String //String representation of the error type<br></br> errorMessage:String //Error message from the api<br></br>} ErrorCode is a string representation of the error type. SimplyObject SimplyObject is a map representing the contents of a crm entity based object. All reference fields use the ID type, which assigns a unique number to each object. This field is present for all objects fetched from the database. ID format objectTypeId 'x' objectId<br></br> <br></br>objectTypeId - Id of the object type. This is generated uniquely for each entity supported by the web service API and returned in the result of describe operation as idPrefix.<br></br> <br></br>objectId - id of object in database. This is a globally unique id for objects of the given entity. Map An associative array of key value pairs. Usually used in the create operation. TimeStamp A long representation of the number of seconds since the Unix epoch. Operations Login Login is a two step process : First we generate a unique token calling getChallenge. And then use that token and our unique access key to generate a session ID which acts like an authentication identifier. Important: It is required to enter the IP in the Whitelist IP field under My Preferences on the user’s profile in Simply CRM that is being used to access the API. Get Challenge Used to get a challenge token from the server. Request Type: GET username: A Simply username operation: getchallenge ``` GET /webservice.php?operation=getchallenge&username=[username] **Response** { success: true, result: { token: String, serverTime: TIMESTAMP, expireTime: TIMESTAMP } } ##### Login Login to the server using the challenge token obtained through the get challenge operation. login(username:String, accessKey:String): LoginResult **Request** **Type**: POST **operation**: login **username**: A Simply username. **accessKey**: An md5 of the concatenation of the challenge token and the user’s web service access key. **Response** { success: true, result: { sessionId: String, userId: String, version: String, SimplyVersion:String } } **Note:** In *accessKey, ‘*K’ is uppercase. ### Create Create a new entry on the server. An entity is a record in one of Simply’s modules. To get the list of fields for the create operation you can call **Describe** operation first create(element:Map, elementType:String): SimplyObject **Request** **Type**: POST **operation**: create **element**: Fields of the object to populate. Values for mandatory fields must be provided. **elementType**: The class name of the object. This must be a POST request. #### URL format http://Simply_url/webservice.php?operation=create&sessionName= [session id]&element=[object]&elementType=[object type] response: A SimplyObject instance representing the new object. ### Retrieve Retrieve an existing entry from the server. retrieve(id: Id): SimplyObject **Request Type**: GET **id**: The ID of the object. **response**: A SimplyObject instance representing the retrieved object. This must be a GET request. #### URL format http://Simply_url/webservice.php?operation=retrieve&session_name= [session id]&id=[object id] ### Update Update an existing entry on the Simply CRM object. update(object: SimplyObject): SimplyObject **Request Type**: POST **object**: The SimplyObject to update. response: A SimplyObject representing the object after the update. This must be a POST request. #### URL format http://Simply_url/webservice.php?operation=update&sessionName= [session id]&element=[object] ### Delete Delete an entry from the server. delete(id:Id): Nothing **Request** **Type**: POST **id**: The Id of the object to be deleted.response: A map with one key status with value ‘successful’ This must be a POST request. #### URL format http://Simply_url/webservice.php?operation=delete&sessionName= [session id]&id=[object id] ### Query The query operation provides a way to query Simply for data. query(queryString : String): \[SimplyObject\] **Request** **Type**: GET **queryString**: The query to process. **response**: A list of maps containing the fields selected. Queries are currently limited to a single object. Joins are not supported. The query always limits its output to 100 records. The client application can use limit operators to get different records. #### Query format select * | <column_list> | <count(*)> from [where ] [order by <column_list>] [limit [, ]]; The column list in the order by clause can have at most two column names. column\_list: comma separated list of field names. object: type name of the object. conditionals: condition operations or in clauses or like clauses separated by ‘and’ or ‘or’ operators these are processed from left to right. The are no grouping that is bracket operators. conditional operators: &lt;, &gt;, &lt;=, &gt;=, =, !=. in clauses: in (). like clauses: like ‘sqlregex’. value list: a comma separated list of values. m, n: integer values to specify the offset and limit respectively. This must be a GET request. Query operation is currently supported for the Entity module only. #### URL format http://Simply_url/webservice.php?operation=query&sessionName= [session id]&query=[query string] ### Sync Sync will return a SyncResult object containing details of changes after modifiedTime. sync(modifiedTime: Timestamp, elementType: String): SyncResult **Request** **Type**: GET modifiedTime: The time of the last synced modification.elementType: This is an optional parameter, if specified the changes for that module after the given time otherwise changes to all user accessible module are returned. **Response** SyncResult { updated:[Object] //List of Objects created or modified. deleted:[Id] //List of Id of objects deleted. lastModifiedTime:Timstamp //time of the latest change. which can used in the next call to the Sync api to get all the latest changes that the client hasn't obtained. } This must be a GET request. #### URL format http://Simply_url/webservice.php?operation=sync&sessionName= [session id]&modifiedTime=[timestamp]&elementType=[elementType] ### Logout Logout from the webservice session, which leaves the webservice session invalid for further use. logout(): Map Request Type: GET Returns a map containing the key ‘message’ with the value ‘successful’. This must be a GET request. #### URL format http://Simply_url/webservice.php?operation=logout&sessionName= [session id] ### List Types List the names of all the Simply objects available through the API. listtypes(): Map Request Type: GET Returns a map containing the key ‘types’ with the value being a list of names of Simply objects. This must be a GET request. #### URL format http://Simply_url/webservice.php?operation=listtypes&sessionName= [session id] ### Describe Get the type information about a given Simply object. describe(elementType: String): DescribeResult Request Type: GET elementType: The type name of the Simply object to describe. Returns a DescribeResult instance. This must be a GET request. #### URL format http://Simply_url/webservice.php?operation=describeobject&sessionName= [session id]&elementType=[elementType] ### Extend Session Extends the current Simply web session to the web service and returns the webservice’s session ID. extendsession(username:String): LoginResult Request Type: POST username: A Simply username. This must be a POST request. #### URL format http://Simply_url/webservice.php?operation=extendsession CRM entities ------------ What follows is the list of CRM entities exposed by the API. | **Name** | **Description** | |---|---| | Calendar | The Calendar module is used to manage to-dos, events and meetings. | | Leads | The Leads module is used to track sales leads. | | Accounts | The Accounts module is used to manage individuals or organizations involved with your business. | | Contacts | The Contacts module is used to manage individuals that may be associated with an account. | | Potentials | The Potentials module is used to manage sales opportunities. | | Products | The Products module is used to manage the products that your organization sells. | | Documents | The Documents module is used to manage the uploaded documents and notes. | | Emails | The Emails module is a email client used to manage your emails. | | HelpDesk | The HelpDesk module is used to track customer issues such as feedback, problems, etc. | | FAQ | The FAQ module is used to manage the frequently asked question posed by your customers. | | Vendors | The Vendors module is used to manage manufacturers and producers. | | PriceBooks | The PriceBook Module is used to manage the pricing of products. | | Quotes | The Quotes module is used to manage product quotes. | | PurchaseOrder | The PurchaseOrder module is used to manage and process the purchase orders. | | SalesOrder | The SalesOrder module is used to manage and process sale orders. | | Invoice | The Invoice module is used to create invoice reports. | | Campaigns | The Campaigns module is used to manage marketing campaigns. | | Events | The Events module is used to manage activities such as calls and meetings. | | Users | The Users module is used to manage the CRM users. | | Groups | User groups in Simply CRM. | | Currency | Currency module lets the administrator define different currencies and set the expected conversion rates with respect to the base currency. These currencies can be used in the Inventory module to support multi-currency. | | DocumentFolders | The DocumentFolders module is used to Groups Documents. | Field Types ----------- ### Picklist A field that can a hold one of a list of values, in which case the map will contain two elements: picklistValues which is a list of possible values, and defaultValue which is the default value for the picklist. | **Name** | **Description** | |---|---| | picklistValues | Represents the list of possible values. | | defaultValue | Specifies which value should be used as the default value for the picklist. | | name | The name of the field type. | ### Reference A field that shows a relation to another object. The field type map will contain another element called refersTo which is an array containing the modules to which the field can point. | **Name** | **Description** | |---|---| | refersTo | An array containing the modules to which the field can point. | | name | The name of the field type. | ### Datetime A string representing the date and time, the format is base on the user’s settings date format. ### Date A string representing a date. The field type map will contain another element called *format*, which specifies the expected format of the field value, based on the user’s date format settings. | **Name** | **Description** | |---|---| | format | The expected format of the field value. | | name | The name of the field type. | ### Text A multiline text field. ### Time A string with the format hh:mm, which is based on the user’s time format settings. ### String A one line text field. ### Boolean A boolean field, which can only have the values *true* or *false*. ### Integer A non-decimal number field. ### Owner A field used to define the owner of the field. This can be a group or an individual user. ### Autogenerated Fields, such as the object’s ID, whose values are generated automatically by Simply. ### Email A field used to store email IDs. ### Phone A field used to store phone numbers. ### URL A field for storing URLs. ### Double A field for for floating point numbers. ### File A field used to add files to Simply. | **Name** | **Description** | |---|---| | maxUploadFileSize | The maximum allowed size allowed for uploading files. | | name | The name of the field type. | ### Password A field used to store passwords. ### Decimal A field used for floating point numbers. ### Skype A field used to store Skype IDs or phone numbers. ### Multipicklist A picklist field where multiple values can be selected. Known issues ------------ Sync does not work on the Users module and non-entity modules like Currency, Groups, etc. Query does not work on non-entity modules like Currency, Groups, etc.

Last updated on Aug 27, 2024

Simply CRM JSON Rest API

Please note: this documents refers to the JSON Rest API of Simply CRM (sometimes popularly) also referred to as the mobile API), not the webservice, which is available at http://crm-base-url/webservice.php and whose operations are described in the article https://support.simply-crm.com/knowledge-base/web-service-api-documentation/ This document also serves as internal documentation, so in case you are missing functionality, feel free to contact us at support@simply-crm.com to ask questions or ask for additional functionalities. Endpoint https://your-instance-ur/modules/Mobile/api.php All operations are POST requests. File Structure - /modules/mobile/ - api.php endpoint for mobile web services. Send all POST requests there. Do not use arguments, but form arguments - index.php HTML page for mobile web service - /modules/mobile/api/ - Request.php is the file containing the Request “model” - /modules/mobile/api/ws/ - contains one file for each operation - Utils.php utilities file, not a proper request How modules work Modules follow the following rules: - if I disable a field in the module settings (I set its “Visibility” checkbox to False), that field is not listed anymore in Describe call - fields for a record are organized in “Blocks” of fields. Each block is represented by an array and has a - Calendar is listed a module, but it’s actually made of 3 modules: Task, Meeting and Call. - Task record IDs have the structure 1xID - Meeting record IDs have the structure 18xID - The tasks module that you see displayed in the frontend is the module internally called ProjectTasks. Important: The module ID’s will vary from CRM instance to CRM instance, as individual customers can have custom modules installed in other order, etc. The below loginAndFethcModules always returns the available modules, incl. what ID they have on your specific CRM instance. We generally refer to a record ID as MODULEIDxRECORDID – ie like 12×525 etc. Also remember that there is difference between a modules name (the internal name we use to reference the module) and its label (the name displayed to the user, who can be using his/her preferred language). Operations Dump of operations - ‘login’ - ‘loginAndFetchModules’ - ‘fetchModuleFilters’ - ‘filterDetailsWithCount’ - ‘fetchAllAlerts’ - ‘alertDetailsWithMessage’ - ‘listModuleRecords’ - ‘fetchRecord’ - ‘fetchRecordWithGrouping’ - ‘fetchRecordsWithGrouping’ - ‘describe’ - ‘saveRecord’ - ‘syncModuleRecords’ - ‘query’ - ‘queryWithGrouping’ - ‘relatedRecordsWithGrouping’ - ‘deleteRecords’ - ‘addRecordComment’ Details of Operations NOTE: Most operations support more parameters than the ones that are needed. Parameters such as action, file and search can be left out and this will only cause server logs to display Notice-level errors. Operations described in this document: - login - loginAndFetchModules - describe - syncModuleRecords - fetchRecord - fetchRecordWithGrouping - fetchRecordsWithGrouping - saveRecord login Note that login is using username which is is a specific field in the CRM (normal users use their email to login, but in practice there is a username also). Params: | Name | Value | |---|---| | _operation | login | | username | username | | password | password | | Response: { "success": true, "result": { "login": { "userid": "1", "session": "fa000f0a6c5a414e62dcc4cbf99175d6", "simply_version": "7.1.0", "mobile_module_version": "1.2.1" } } } loginAndFetchModules It’s used by the mobile web client to display a list of modules to the user after the login is successful. It’s also useful to check if a module is enabled or not. Params: | Name | Value | |---|---| | _operation | loginAndFetchModules | | username | username | | password | password | | Response: { "success": true, "result": { "login": { "userid": "1", "session": "fa000f0a6c5a414e62dcc4cbf99175d6", "simply_version": "7.1.0", "mobile_module_version": "1.2.1" }, "modules": [ { "id": "1", "name": "Calendar", "isEntity": true, "label": "Calendar", "singular": "To Do" }, { "id": "2", "name": "Leads", "isEntity": true, "label": "Leads", "singular": "Lead" }, { "id": "3", "name": "Accounts", "isEntity": true, "label": "Accounts", "singular": "Account" }, { "id": "4", "name": "Contacts", "isEntity": true, "label": "Contacts", "singular": "Contact" }, { "id": "5", "name": "Potentials", "isEntity": true, "label": "Potentials", "singular": "Potential" }, { "id": "6", "name": "Products", "isEntity": true, "label": "Products", "singular": "Product" }, { "id": "7", "name": "Documents", "isEntity": true, "label": "Documents", "singular": "Document" }, { "id": "8", "name": "Emails", "isEntity": true, "label": "Email", "singular": "Email" }, { "id": "9", "name": "HelpDesk", "isEntity": true, "label": "Trouble Tickets", "singular": "Ticket" }, { "id": "10", "name": "Faq", "isEntity": true, "label": "FAQ", "singular": "Faq" }, { "id": "11", "name": "Vendors", "isEntity": true, "label": "Vendors", "singular": "Vendor" }, { "id": "12", "name": "PriceBooks", "isEntity": true, "label": "Price Books", "singular": "PriceBook" }, { "id": "13", "name": "Quotes", "isEntity": true, "label": "Quotes", "singular": "Quote" }, { "id": "14", "name": "PurchaseOrder", "isEntity": true, "label": "Purchase Order", "singular": "PurchaseOrder" }, { "id": "15", "name": "SalesOrder", "isEntity": true, "label": "Sales Order", "singular": "SalesOrder" }, { "id": "16", "name": "Invoice", "isEntity": true, "label": "Invoice", "singular": "Invoice" }, { "id": "17", "name": "Campaigns", "isEntity": true, "label": "Campaigns", "singular": "Campaign" }, { "id": "23", "name": "PBXManager", "isEntity": true, "label": "PBX Manager", "singular": "SINGLE_PBXManager" }, { "id": "24", "name": "ServiceContracts", "isEntity": true, "label": "Service Contracts", "singular": "Service Contract" }, { "id": "25", "name": "Services", "isEntity": true, "label": "Services", "singular": "Service" }, { "id": "26", "name": "Assets", "isEntity": true, "label": "Assets", "singular": "Asset" }, { "id": "27", "name": "ModComments", "isEntity": true, "label": "Comments", "singular": "Comment" }, { "id": "28", "name": "ProjectMilestone", "isEntity": true, "label": "Project Milestones", "singular": "Project Milestone" }, { "id": "29", "name": "ProjectTask", "isEntity": true, "label": "Project Tasks", "singular": "Project Task" }, { "id": "30", "name": "Project", "isEntity": true, "label": "Projects", "singular": "Project" }, { "id": "31", "name": "SMSNotifier", "isEntity": true, "label": "SMSNotifier", "singular": "SMS Info" } ] } } describe Describe queries the API for a specified module and returns its configuration. Custom fields are returned. Parameters: | Name | Value | |---|---| | _operation | describe | | _session | session (from Login) | | module | Module | | | | Allowed values for module: - Calendar - Leads - Accounts - Contacts - HelpDesk - Potentials - Campaigns Example of return result: { "success": true, "result": { "describe": { "label": "Calendar", "name": "Calendar", "createable": true, "updateable": true, "deleteable": true, "retrieveable": true, "fields": [ { "name": "subject", "label": "Subject", "mandatory": true, "type": { "name": "string" }, "nullable": false, "editable": true, "uitype": null }, { "name": "assigned_user_id", "label": "Assigned To", "mandatory": true, "type": { "name": "owner" }, "nullable": false, "editable": true, "default": "0", "uitype": null }, { "name": "date_start", "label": "Start Date & Time", "mandatory": true, "type": { "format": "yyyy-mm-dd", "name": "date" }, "nullable": false, "editable": true, "uitype": null }, { "name": "time_start", "label": "Time Start", "mandatory": false, "type": { "name": "time" }, "nullable": true, "editable": true, "uitype": 252 }, { "name": "time_end", "label": "End Time", "mandatory": false, "type": { "name": "time" }, "nullable": true, "editable": true, "uitype": 252 }, { "name": "due_date", "label": "Due Date", "mandatory": true, "type": { "format": "yyyy-mm-dd", "name": "date" }, "nullable": true, "editable": true, "uitype": null }, { "name": "parent_id", "label": "Related to", "mandatory": false, "type": { "refersTo": [ "Accounts", "HelpDesk", "Leads", "Potentials", "Invoice", "Quotes", "PurchaseOrder", "SalesOrder", "Campaigns" ], "name": "reference" }, "nullable": false, "editable": true, "uitype": null }, { "name": "contact_id", "label": "Contact Name", "mandatory": false, "type": { "refersTo": [ "Contacts" ], "name": "reference" }, "nullable": false, "editable": true, "default": "0", "uitype": null }, { "name": "taskstatus", "label": "Status", "mandatory": true, "type": { "picklistValues": [ { "label": "Not Started", "value": "Not Started" }, { "label": "In Progress", "value": "In Progress" }, { "label": "Completed", "value": "Completed" }, { "label": "Pending Input", "value": "Pending Input" }, { "label": "Deferred", "value": "Deferred" }, { "label": "Planned", "value": "Planned" } ], "defaultValue": "Not Started", "name": "picklist" }, "nullable": true, "editable": true, "uitype": null }, { "name": "eventstatus", "label": "Status", "mandatory": false, "type": { "picklistValues": [ { "label": "Planned", "value": "Planned" }, { "label": "Held", "value": "Held" }, { "label": "Not Held", "value": "Not Held" } ], "defaultValue": "Planned", "name": "picklist" }, "nullable": true, "editable": true, "uitype": null }, { "name": "taskpriority", "label": "Priority", "mandatory": false, "type": { "picklistValues": [ { "label": "High", "value": "High" }, { "label": "Medium", "value": "Medium" }, { "label": "Low", "value": "Low" } ], "defaultValue": "High", "name": "picklist" }, "nullable": true, "editable": true, "uitype": null }, { "name": "sendnotification", "label": "Send Notification", "mandatory": false, "type": { "name": "boolean" }, "nullable": false, "editable": true, "default": "0", "uitype": null }, { "name": "createdtime", "label": "Created Time", "mandatory": false, "type": { "name": "datetime" }, "nullable": false, "editable": false, "uitype": null }, { "name": "modifiedtime", "label": "Modified Time", "mandatory": false, "type": { "name": "datetime" }, "nullable": false, "editable": false, "uitype": null }, { "name": "activitytype", "label": "Activity Type", "mandatory": false, "type": { "picklistValues": [ { "label": "Call", "value": "Call" }, { "label": "Meeting", "value": "Meeting" } ], "defaultValue": "Call", "name": "picklist" }, "nullable": false, "editable": true, "uitype": null }, { "name": "visibility", "label": "Visibility", "mandatory": false, "type": { "picklistValues": [ { "label": "Private", "value": "Private" }, { "label": "Public", "value": "Public" } ], "defaultValue": "Private", "name": "picklist" }, "nullable": false, "editable": true, "default": "all", "uitype": null }, { "name": "description", "label": "Description", "mandatory": false, "type": { "name": "text" }, "nullable": true, "editable": true, "uitype": null }, { "name": "duration_hours", "label": "Duration", "mandatory": false, "type": { "name": "time" }, "nullable": true, "editable": true, "uitype": null }, { "name": "duration_minutes", "label": "Duration Minutes", "mandatory": false, "type": { "picklistValues": [ { "label": "00", "value": "00" }, { "label": "15", "value": "15" }, { "label": "30", "value": "30" }, { "label": "45", "value": "45" } ], "defaultValue": "00", "name": "picklist" }, "nullable": true, "editable": true, "uitype": null }, { "name": "location", "label": "Location", "mandatory": false, "type": { "name": "string" }, "nullable": true, "editable": true, "uitype": null }, { "name": "reminder_time", "label": "Send Reminder", "mandatory": false, "type": { "name": "integer" }, "nullable": false, "editable": true, "uitype": null }, { "name": "recurringtype", "label": "Recurrence", "mandatory": false, "type": { "picklistValues": [ { "label": "--None--", "value": "--None--" }, { "label": "Day(s)", "value": "Daily" }, { "label": "Week(s)", "value": "Weekly" }, { "label": "Month(s)", "value": "Monthly" }, { "label": "Year", "value": "Yearly" } ], "defaultValue": "--None--", "name": "picklist" }, "nullable": true, "editable": true, "uitype": null }, { "name": "notime", "label": "No Time", "mandatory": false, "type": { "name": "boolean" }, "nullable": false, "editable": true, "default": "0", "uitype": null }, { "name": "cf_617", "label": "Telefono da chiamare per chiarimenti", "mandatory": false, "type": { "name": "phone" }, "nullable": true, "editable": true, "uitype": null }, { "name": "id", "label": "activityid", "mandatory": false, "type": { "name": "autogenerated" }, "editable": false, "nullable": false, "default": "", "uitype": null } ], "idPrefix": "1", "isEntity": true, "labelFields": "subject" } } } listModuleRecords List records of the specified module. With no other parameters, it will return all records in the module (as allowed for the currently logged in user per user permissions), but can also be used in combination with either “searchText” (a broad search in all fields) or “searchField” that searches a specific field for contents. searchField accepets input in the format of [“email”,”c”,”username@emaildomain.com”] if you want to search the field named email to verify if it contains (“c”) the string “username@emaildomain.com”. As the “c” will return results that contain the string, this means that a search for “username@emaildomain” would also return records where the email field has the value of username@emaildomain.com. | Name | Value | |---|---| | _operation | listModuleRecords | | _session | session (from Login) | | module | Module | | searchText | [empty, or a text you would like to search for in all fields] | | searchField | [empty, or a specific field and text you would like to search for in a specific field] | | page | | syncModuleRecords Performs a sync of records for specified modules, returning the updated and deleted records since last sync. (Identified by syncToken parameter) IMPORTANT: syncModuleRecords does not display custom fields (apparently) Parameters: | Name | Value | |---|---| | _operation | syncModuleRecords | | _session | session (from Login) | | module | Module | | syncToken | [empty, or the token from previous sync] | | mode | PRIVATE | | page | integer | Allowed values for module: - Calendar - Leads - Accounts - Contacts - HelpDesk - Potentials - Campaigns Allowed values for mode: - PRIVATE - PUBLIC Page can be empty. { "success": true, "result": { "sync": { "nextSyncToken": 1385311551, "deleted": [], "updated": [ { "blocks": [ { "label": "Task Information", "fields": [ { "name": "subject", "value": "Meeting with Lead", "label": "Subject", "uitype": "2" }, { "name": "reminder_time", "value": "0", "label": "Send Reminder", "uitype": "30" }, { "name": "assigned_user_id", "value": { "value": "19x1", "label": "Administrator" }, "label": "Assigned To", "uitype": "53", "type": { "defaultValue": { "value": "19x1", "label": "Administrator" } } }, { "name": "date_start", "value": "2014-01-13", "label": "Start Date & Time", "uitype": "6" }, { "name": "time_end", "value": "10:45", "label": "End Time", "uitype": 252 }, { "name": "time_start", "value": "09:45", "label": "Time Start", "uitype": 252 }, { "name": "due_date", "value": "2014-01-13", "label": "Due Date", "uitype": "23" }, { "name": "recurringtype", "value": "", "label": "Recurrence", "uitype": "16" }, { "name": "parent_id", "value": { "value": "2x37", "label": "Davis Jennifer" }, "label": "Related to", "uitype": "66" }, { "name": "contact_id", "value": { "value": "", "label": "" }, "label": "Contact Name", "uitype": "57" }, { "name": "eventstatus", "value": "Planned", "label": "Status", "uitype": "15" }, { "name": "taskpriority", "value": "High", "label": "Priority", "uitype": "15" }, { "name": "sendnotification", "value": "", "label": "Send Notification", "uitype": "56" }, { "name": "createdtime", "value": "2013-11-18 09:44:20", "label": "Created Time", "uitype": "70" }, { "name": "modifiedtime", "value": "2013-11-18 09:44:20", "label": "Modified Time", "uitype": "70" }, { "name": "activitytype", "value": "Meeting", "label": "Activity Type", "uitype": "15" }, { "name": "duration_hours", "value": "1", "label": "Duration", "uitype": "63" }, { "name": "visibility", "value": "Private", "label": "Visibility", "uitype": "16" }, { "name": "duration_minutes", "value": "0", "label": "Duration Minutes", "uitype": "16" }, { "name": "location", "value": "via dei mille 45, Brescia, Italia", "label": "Location", "uitype": "1" }, { "name": "notime", "value": "0", "label": "No Time", "uitype": "56" } ] }, { "label": "", "fields": [ { "name": "description", "value": "description of meeting with Lead", "label": "Description", "uitype": "19" } ] }, { "label": "Custom Information", "fields": [] } ], "id": "18x1207", "labelFields": [ "subject" ] }, { "blocks": [ { "label": "Task Information", "fields": [ { "name": "subject", "value": "Meeting with Lead", "label": "Subject", "uitype": "2" }, { "name": "reminder_time", "value": "0", "label": "Send Reminder", "uitype": "30" }, { "name": "assigned_user_id", "value": { "value": "19x1", "label": "Administrator" }, "label": "Assigned To", "uitype": "53", "type": { "defaultValue": { "value": "19x1", "label": "Administrator" } } }, { "name": "date_start", "value": "2014-01-12", "label": "Start Date & Time", "uitype": "6" }, { "name": "time_end", "value": "10:45", "label": "End Time", "uitype": 252 }, { "name": "time_start", "value": "09:45", "label": "Time Start", "uitype": 252 }, { "name": "due_date", "value": "2014-01-12", "label": "Due Date", "uitype": "23" }, { "name": "recurringtype", "value": "", "label": "Recurrence", "uitype": "16" }, { "name": "parent_id", "value": { "value": "2x37", "label": "Davis Jennifer" }, "label": "Related to", "uitype": "66" }, { "name": "contact_id", "value": { "value": "", "label": "" }, "label": "Contact Name", "uitype": "57" }, { "name": "eventstatus", "value": "Planned", "label": "Status", "uitype": "15" }, { "name": "taskpriority", "value": "High", "label": "Priority", "uitype": "15" }, { "name": "sendnotification", "value": "", "label": "Send Notification", "uitype": "56" }, { "name": "createdtime", "value": "2013-11-18 09:44:19", "label": "Created Time", "uitype": "70" }, { "name": "modifiedtime", "value": "2013-11-18 09:44:19", "label": "Modified Time", "uitype": "70" }, { "name": "activitytype", "value": "Meeting", "label": "Activity Type", "uitype": "15" }, { "name": "duration_hours", "value": "1", "label": "Duration", "uitype": "63" }, { "name": "visibility", "value": "Private", "label": "Visibility", "uitype": "16" }, { "name": "duration_minutes", "value": "0", "label": "Duration Minutes", "uitype": "16" }, { "name": "location", "value": "via dei mille 45, Brescia, Italia", "label": "Location", "uitype": "1" }, { "name": "notime", "value": "0", "label": "No Time", "uitype": "56" } ] }, { "label": "", "fields": [ { "name": "description", "value": "description of meeting with Lead", "label": "Description", "uitype": "19" } ] }, { "label": "Custom Information", "fields": [] } ], "id": "18x1206", "labelFields": [ "subject" ] } ], "nextPage": 0 } } } fetchRecord Fetches a single record. Fields are laid out in a simple key:value association, and all additional keys (such as uitype, label) are skipped. IMPORTANT: fetchRecord fetches Custom Fields correctly, but does not display a label for them. Parameters: | Name | Value | |---|---| | _operation | fetchRecord | | _session | session (from Login) | | record | module_idXrecord_id | | | Allowed values for module: - Calendar - Leads - Accounts - Contacts - HelpDesk - Potentials Record must be in the form module_idXrecord_id such as 1×1151 { "success": true, "result": { "record": { "subject": "new todo with very long title that in iOS will be cut somewhere!", "assigned_user_id": { "value": "19x1", "label": "Administrator" }, "date_start": "2013-05-27", "time_start": "15:40", "time_end": "", "due_date": "2013-05-27", "parent_id": { "value": "", "label": "" }, "contact_id": { "value": "", "label": "" }, "taskstatus": "Not Started", "eventstatus": "", "taskpriority": "High", "sendnotification": "0", "createdtime": "2013-05-26 15:39:57", "modifiedtime": "2013-05-26 15:39:57", "activitytype": "Task", "visibility": "", "description": "desc", "duration_hours": "", "duration_minutes": "", "location": "", "reminder_time": "", "recurringtype": "", "notime": "0", "cf_617": "", "id": "1x1151" } } } fetchRecordWithGrouping Fetches a single record and returns fields with the complete representation containing uitype, label (translated), value and name. IMPORTANT: fetchRecord fetches Custom Fields and it’s sent in the 3rd “block” of fields. Parameters: | Name | Value | |---|---| | _operation | fetchRecordWithGrouping | | _session | session (from Login) | | record | module_idXrecord_id | | | Record must be in the form module_idXrecord_id such as 1×1151 { "success": true, "result": { "record": { "blocks": [ { "label": "Task Information", "fields": [ { "name": "subject", "value": "new todo with very long title that in iOS will be cut somewhere!", "label": "Subject", "uitype": "2" }, { "name": "reminder_time", "value": "", "label": "Send Reminder", "uitype": "30" }, { "name": "assigned_user_id", "value": { "value": "19x1", "label": "Administrator" }, "label": "Assigned To", "uitype": "53", "type": { "defaultValue": { "value": "19x1", "label": "Administrator" } } }, { "name": "date_start", "value": "2013-05-27", "label": "Start Date & Time", "uitype": "6" }, { "name": "time_end", "value": "", "label": "End Time", "uitype": 252 }, { "name": "time_start", "value": "15:40", "label": "Time Start", "uitype": 252 }, { "name": "due_date", "value": "2013-05-27", "label": "Due Date", "uitype": "23" }, { "name": "recurringtype", "value": "", "label": "Recurrence", "uitype": "16" }, { "name": "parent_id", "value": { "value": "", "label": "" }, "label": "Related to", "uitype": "66" }, { "name": "taskstatus", "value": "Not Started", "label": "Status", "uitype": "15" }, { "name": "contact_id", "value": { "value": "", "label": "" }, "label": "Contact Name", "uitype": "57" }, { "name": "eventstatus", "value": "", "label": "Status", "uitype": "15" }, { "name": "taskpriority", "value": "High", "label": "Priority", "uitype": "15" }, { "name": "sendnotification", "value": "0", "label": "Send Notification", "uitype": "56" }, { "name": "createdtime", "value": "2013-05-26 15:39:57", "label": "Created Time", "uitype": "70" }, { "name": "modifiedtime", "value": "2013-05-26 15:39:57", "label": "Modified Time", "uitype": "70" }, { "name": "activitytype", "value": "Task", "label": "Activity Type", "uitype": "15" }, { "name": "duration_hours", "value": "", "label": "Duration", "uitype": "63" }, { "name": "visibility", "value": "", "label": "Visibility", "uitype": "16" }, { "name": "duration_minutes", "value": "", "label": "Duration Minutes", "uitype": "16" }, { "name": "location", "value": "", "label": "Location", "uitype": "1" }, { "name": "notime", "value": "0", "label": "No Time", "uitype": "56" } ] }, { "label": "", "fields": [ { "name": "description", "value": "desc", "label": "Description", "uitype": "19" } ] }, { "label": "Custom Information", "fields": [ { "name": "cf_617", "value": "", "label": "Telefono da chiamare per chiarimenti", "uitype": "11" } ] } ], "id": "1x1151" } } } fetchRecordsWithGrouping Fetches an array of records and returns fields with the complete representation containing uitype, label (translated), value and name. Custom fields are fetched. IMPORTANT: fetchRecord fetches Custom Fields and it’s sent in the 3rd “block” of fields. Parameters: | Name | Value | |---|---| | _operation | fetchRecordsWithGrouping | | _session | session (from Login) | | ids | [“module_idXrecord_id”,”module_idXrecord_id”] | | alertid | (optional) | | Allowed values for module: - Calendar - Leads - Accounts - Contacts - HelpDesk - Potentials Records must be in the form module_idXrecord_id, such as 1×1151, and the ids parameter should be formatted as a JSON string (["18x1164", "1x1151"]). { "success": true, "result": { "records": [ { "blocks": [ { "label": "Task Information", "fields": [ { "name": "subject", "value": "new todo with very long title that in iOS will be cut somewhere!", "label": "Subject", "uitype": "2" }, { "name": "reminder_time", "value": "", "label": "Send Reminder", "uitype": "30" }, { "name": "assigned_user_id", "value": { "value": "19x1", "label": "Administrator" }, "label": "Assigned To", "uitype": "53", "type": { "defaultValue": { "value": "19x1", "label": "Administrator" } } }, { "name": "date_start", "value": "2013-05-27", "label": "Start Date & Time", "uitype": "6" }, { "name": "time_end", "value": "", "label": "End Time", "uitype": 252 }, { "name": "time_start", "value": "15:40", "label": "Time Start", "uitype": 252 }, { "name": "due_date", "value": "2013-05-27", "label": "Due Date", "uitype": "23" }, { "name": "recurringtype", "value": "", "label": "Recurrence", "uitype": "16" }, { "name": "parent_id", "value": { "value": "", "label": "" }, "label": "Related to", "uitype": "66" }, { "name": "taskstatus", "value": "Not Started", "label": "Status", "uitype": "15" }, { "name": "contact_id", "value": { "value": "", "label": "" }, "label": "Contact Name", "uitype": "57" }, { "name": "eventstatus", "value": "", "label": "Status", "uitype": "15" }, { "name": "taskpriority", "value": "High", "label": "Priority", "uitype": "15" }, { "name": "sendnotification", "value": "0", "label": "Send Notification", "uitype": "56" }, { "name": "createdtime", "value": "2013-05-26 15:39:57", "label": "Created Time", "uitype": "70" }, { "name": "modifiedtime", "value": "2013-05-26 15:39:57", "label": "Modified Time", "uitype": "70" }, { "name": "activitytype", "value": "Task", "label": "Activity Type", "uitype": "15" }, { "name": "duration_hours", "value": "", "label": "Duration", "uitype": "63" }, { "name": "visibility", "value": "", "label": "Visibility", "uitype": "16" }, { "name": "duration_minutes", "value": "", "label": "Duration Minutes", "uitype": "16" }, { "name": "location", "value": "", "label": "Location", "uitype": "1" }, { "name": "notime", "value": "0", "label": "No Time", "uitype": "56" } ] }, { "label": "", "fields": [ { "name": "description", "value": "desc", "label": "Description", "uitype": "19" } ] }, { "label": "Custom Information", "fields": [ { "name": "cf_617", "value": "", "label": "Telefono da chiamare per chiarimenti", "uitype": "11" } ] } ], "id": "1x1151" } ] } } saveRecord Updates or creates a record, depending whether the record id is set or not. Parameters: | Name | Value | |---|---| | _operation | saveRecord | | _session | session (from Login) | | module | Module | | record | module_idXrecord_id | | values | json string | | Allowed values for module: You can use all the modules you get back when you loginAndFetchModules via the API (those are the accessible modules to the currently logged in user). In addition to this, you can also access “Users” which will allow you to create new users directly from the API. Also be aware that some modules – such as CustomQuickCreate and ProcessBar – are mainly used in the Web version of the CRM for UI elements, and thereby not very valuable outside the Web version of Simply CRM. Example modules you will find: - Accounts (Organizations) - Contacts - Tasks - Vendors - SalesOrder - Potentials (Deals) - Products - Services - Projects - ProjectTasks (Tasks) - ProjectMilestones - ModComments (Comments) - Documents - Emails - HelpDesk (Tickets) - Invoice - Calendar Please be aware that the modules can have different ID’s and orders based on what CRM installation you have, so if you want to make a generic solution you should always get the module ID. Example of JSON String to set in the values parameter: { "date_start": "2014-01-18", "due_date": "2014-01-18", "start_time": "14:44", "activitytype": "Call", "location": "Overhoeksplein 2, Amsterdam", "subject": "Call Smith", "assigned_user_id": "19x1", "taskstatus": "Planned", "visibility": "Private" } Note the absence of “id” because we want to create a new record. For setting the assigned user, The id must be in the form of moduleid x entityid. Record must be in the form module_idXrecord_id such as 1x1151. Example of successful response: (basically returns the entire record created) { "success": true, "result": { "record": { "blocks": [ { "label": "Task Information", "fields": [ { "name": "subject", "value": "Call Smith", "label": "Subject", "uitype": "2" }, { "name": "reminder_time", "value": "", "label": "Send Reminder", "uitype": "30" }, { "name": "assigned_user_id", "value": { "value": "19x1", "label": "Administrator" }, "label": "Assigned To", "uitype": "53", "type": { "defaultValue": { "value": "19x1", "label": "Administrator" } } }, { "name": "date_start", "value": "2014-01-18", "label": "Start Date & Time", "uitype": "6" }, { "name": "time_end", "value": "", "label": "End Time", "uitype": 252 }, { "name": "time_start", "value": "", "label": "Time Start", "uitype": 252 }, { "name": "due_date", "value": "2014-01-18", "label": "Due Date", "uitype": "23" }, { "name": "recurringtype", "value": "", "label": "Recurrence", "uitype": "16" }, { "name": "parent_id", "value": { "value": "", "label": "" }, "label": "Related to", "uitype": "66" }, { "name": "taskstatus", "value": "", "label": "Status", "uitype": "15" }, { "name": "contact_id", "value": { "value": "", "label": "" }, "label": "Contact Name", "uitype": "57" }, { "name": "eventstatus", "value": "", "label": "Status", "uitype": "15" }, { "name": "taskpriority", "value": "", "label": "Priority", "uitype": "15" }, { "name": "sendnotification", "value": "0", "label": "Send Notification", "uitype": "56" }, { "name": "createdtime", "value": "2013-11-25 13:43:49", "label": "Created Time", "uitype": "70" }, { "name": "modifiedtime", "value": "2013-11-25 13:43:49", "label": "Modified Time", "uitype": "70" }, { "name": "activitytype", "value": "Call", "label": "Activity Type", "uitype": "15" }, { "name": "duration_hours", "value": "0", "label": "Duration", "uitype": "63" }, { "name": "visibility", "value": "Private", "label": "Visibility", "uitype": "16" }, { "name": "duration_minutes", "value": "", "label": "Duration Minutes", "uitype": "16" }, { "name": "location", "value": "", "label": "Location", "uitype": "1" }, { "name": "notime", "value": "0", "label": "No Time", "uitype": "56" } ] }, { "label": "", "fields": [ { "name": "description", "value": "", "label": "Description", "uitype": "19" } ] }, { "label": "Custom Information", "fields": [ { "name": "cf_617", "value": "", "label": "Telefono da chiamare per chiarimenti", "uitype": "11" } ] } ], "id": "1x1225" } } } "success": true, "result": { "record": { "blocks": [ { "label": "Task Information", "fields": [ { "name": "subject", "value": "Call Smith", "label": "Subject", "uitype": "2" }, { "name": "reminder_time", "value": "", "label": "Send Reminder", "uitype": "30" }, { "name": "assigned_user_id", "value": { "value": "19x1", "label": "Administrator" }, "label": "Assigned To", "uitype": "53", "type": { "defaultValue": { "value": "19x1", "label": "Administrator" } } }, { "name": "date_start", "value": "2014-01-18", "label": "Start Date & Time", "uitype": "6" }, { "name": "time_end", "value": "", "label": "End Time", "uitype": 252 }, { "name": "time_start", "value": "", "label": "Time Start", "uitype": 252 }, { "name": "due_date", "value": "2014-01-18", "label": "Due Date", "uitype": "23" }, { "name": "recurringtype", "value": "", "label": "Recurrence", "uitype": "16" }, { "name": "parent_id", "value": { "value": "", "label": "" }, "label": "Related to", "uitype": "66" }, { "name": "taskstatus", "value": "", "label": "Status", "uitype": "15" }, { "name": "contact_id", "value": { "value": "", "label": "" }, "label": "Contact Name", "uitype": "57" }, { "name": "eventstatus", "value": "", "label": "Status", "uitype": "15" }, { "name": "taskpriority", "value": "", "label": "Priority", "uitype": "15" }, { "name": "sendnotification", "value": "0", "label": "Send Notification", "uitype": "56" }, { "name": "createdtime", "value": "2013-11-25 13:43:49", "label": "Created Time", "uitype": "70" }, { "name": "modifiedtime", "value": "2013-11-25 13:43:49", "label": "Modified Time", "uitype": "70" }, { "name": "activitytype", "value": "Call", "label": "Activity Type", "uitype": "15" }, { "name": "duration_hours", "value": "0", "label": "Duration", "uitype": "63" }, { "name": "visibility", "value": "Private", "label": "Visibility", "uitype": "16" }, { "name": "duration_minutes", "value": "", "label": "Duration Minutes", "uitype": "16" }, { "name": "location", "value": "", "label": "Location", "uitype": "1" }, { "name": "notime", "value": "0", "label": "No Time", "uitype": "56" } ] }, { "label": "", "fields": [ { "name": "description", "value": "", "label": "Description", "uitype": "19" } ] }, { "label": "Custom Information", "fields": [ { "name": "cf_617", "value": "", "label": "Telefono da chiamare per chiarimenti", "uitype": "11" } ] } ], "id": "1x1225" } } } Example of error: { "success": false, "error": { "code": "MANDATORY_FIELDS_MISSING", "message": "assigned_user_id does not have a value" } } Example of creating a new user: | Name | Value | |---|---| | _operation | saveRecord | | _session | session (from Login) | | module | Users | | values | json string | | Here the values JSON string have some required fields, as illustrated below, and here note that the roledid is typically formatted as “H1”, “H2”, etc. You can see the actual role under the roles in your Simply CRM administration settings. { "user_name": "username", "user_password": "thepassword", "confirm_password": "thepassword", "last_name": "lastname", "roleid": "H2", "email1": "user@gdomain.com" } Example of creating a new group: | Name | Value | |---|---| | _operation | saveRecord | | _session | session (from Login) | | module | Groups | | values | json string | | Here the values JSON string have some required fields, as illustrated below, and here note that “members” is a list similarly to how groups are created in the web version of Simply CRM. { "groupname": "Groupname", "description": "Description of group", "members": ["Users:5"] } Module-specific considerations Contacts Contacts have a picture field available, but it can be accessed only through the web interface and its content (e.g. the file name) are not retrieved either by the webservice.php or any operation such as syncModuleRecords. When displaying the fields as grouped, a “block” contains the file information but the array is actually empty, even when a contact picture is uploaded. { "label": "Contact Image Information:", "fields": [] } Documents Documents is be designed to contain files and metadata. Not all data is currently available through the mobile API. HelpDesk (Tickets) Tickets have the possibility to have Comments associated to each, and when retrieving the records there is even a Comments block containing an array. But the array is empty independently from the presence of comments. { "label": "COMMENTS", "fields": [] }

Last updated on Dec 16, 2024

Introduction to Webhooks

An introduction to Simply CRM Webhooks Webhooks in Simply CRM let you send or receive information automatically when things happen—like a little messenger running between Simply CRM and your favorite apps. Whether it’s sending information out (outgoing) or receiving it (incoming), webhooks make your life easier by automating things you’d normally have to do manually. If you're already familiar with how webhooks work, feel free to jump straight to how to set up incoming webhooks or outgoing webhooks. Here’s what we’ll cover: - What webhooks are (in a way that makes sense). - Where to find webhook settings in Simply CRM. - How to test your webhooks without the frustration. - Security and authentication. - Understanding the data format (JSON). What Are Webhooks? Webhooks are like smart notifications that automatically send or receive information when something important happens. It’s like getting an automatic email whenever something changes—but instead of a person sending it, it’s Simply CRM telling another system, or receiving a message from another system. Examples: - Outgoing Webhook: When a deal in Simply CRM is updated, an outgoing webhook can instantly send that information to your accounting software. You don’t need to lift a finger. - Incoming Webhook: When someone signs up on your website, their information can be sent straight to Simply CRM, creating a new contact automatically. Where to Find Webhooks in Simply CRM You can set up webhooks in two places: 1. Incoming Webhooks: These receive data from external systems. Head over to Settings > Webhooks > Incoming to set them up. This is great when you want Simply CRM to take in new data from other services (like new signups from your website). 2. Outgoing Webhooks: These are part of workflows, so you can trigger them when something happens inside Simply CRM (like when a deal is updated). Go to Settings > Automation > Workflows and choose the action "Send Webhook." Testing Your Webhooks Testing is a smart move to make sure your webhooks are doing what they’re supposed to do. Here’s how you can test both incoming and outgoing webhooks without too much hassle: Using Postman Postman lets you simulate how your webhook will send or receive data. It’s great for testing outgoing webhooks from Simply CRM, but you can also use it to simulate incoming webhooks. 1. Download Postman (Yay! It's free!). 2. Create a new request in Postman. 3. Set the request method to POST. 4. For outgoing webhooks, enter the external service’s URL that will receive the data. - Add your test data (like a sample deal update or contact creation). - Click send and check the external service to see if it got the data. 5. For incoming webhooks, you’ll do the reverse—enter Simply CRM’s webhook URL in Postman. - Add some sample data (like a new signup), and check if it creates a new contact in Simply CRM. 6. You can learn more about using Postman here. Using webhook.site Webhook.site is another super handy tool that makes it easy to receive and inspect webhook data. This is especially helpful for testing outgoing webhooks to see exactly what Simply CRM is sending. 1. Go to webhook.site and grab your unique URL. 2. For outgoing webhooks, paste this URL into your Simply CRM webhook settings as the destination. - When the webhook triggers, you’ll see the data appear instantly on webhook.site’s dashboard. 3. For incoming webhooks, you can use webhook.site to simulate the service that sends data to Simply CRM. - Grab your incoming webhook URL from Simply CRM and trigger the event on webhook.site to see what your system receives. 4. You can explore more about webhook.site here. Security (Authentication) Let’s talk security—because you don’t want just anyone messing with your webhooks. Simply CRM offers a couple of simple ways to keep things secure: - Basic Auth: Think of it like logging into a website with a username and password. You’ll provide these, and Simply CRM will send them with the webhook to prove it’s coming from you. - API Tokens: This works like a secret password hidden in the URL. Add the token to your webhook URL, and it verifies that the request is legit. Understanding the Data Format (JSON) Webhooks in Simply CRM use JSON (JavaScript Object Notation) to send or receive information. Don’t worry—it’s not as scary as it sounds. JSON is just a way to organize the data so that it’s clear and readable by both systems. Here’s an example of the type of data Simply CRM might receive when someone signs up on your website: jsonKopier kode{ "event": "new.signup", "data": { "email": "newuser@example.com", "name": "New User", "signup_date": "2024-10-23" } } In this case, Simply CRM would receive details about a new signup: their email, name, and the date they signed up. Conclusion Webhooks are a simple yet powerful way to automate tasks and make your systems work together. Whether you’re sending or receiving data, webhooks make things easier by doing it automatically—so you don’t have to. Make sure to test them using tools like Postman or webhook.site, and set up proper security to keep things running smoothly. For more specific guides on setting up webhooks, check out these articles: - Incoming Webhooks - Outgoing Webhooks

Last updated on Nov 07, 2026

Incoming Webhooks

Simply CRM Incoming Webhooks Welcome to the guide for setting up Incoming Webhooks in Simply CRM. If you haven’t already checked out our introduction to webhooks or are curious about outgoing webhooks, feel free to give them a quick read first to get a fuller picture of how Simply CRM uses webhooks to send and receive data. We also have a slightly more elaborate guide on How to Create and Manage Incoming Webhooks if you need this. Incoming webhooks allow Simply CRM to receive data from external systems or applications, automatically creating or updating records without any manual input. How to Set Up Incoming Webhooks Here’s how you can set up incoming webhooks in Simply CRM: 1. Go to Settings: Navigate to Settings > Webhooks > Incoming to manage your incoming webhooks. 2. Create a New Webhook: Click on the button to create a new webhook. 3. Fill Out the Webhook Details: When setting up the webhook, you'll be prompted to complete the following fields: - Webhook Name: Choose a name to identify your webhook. - Module Name: Select the Simply CRM module where the incoming data will be recorded (e.g., Contacts, Deals). - Is Active: Choose whether the webhook should be active or paused. - Mandatory Fields: Specify which fields must be filled to create or update a record. Fields marked in red are required. 4. Configure the Data Fields: After selecting your module, define which fields the webhook will populate from the incoming data. For each field, you can choose: - VALUE: A fixed value to be used for this field. - FIELD: Pull the value directly from the incoming data (JSON). Testing Your Incoming Webhooks To make sure everything’s set up correctly, it's important to test your incoming webhooks. You can use tools like Postman or webhook.site to simulate and inspect the incoming data: - Postman: Create a POST request to simulate sending data to your webhook. Enter the Simply CRM webhook URL, add your test data in JSON format, and send the request. This helps you check whether your webhook is receiving and processing data as expected. - webhook.site: Use webhook.site to inspect the data your webhook receives. Simply trigger an event from your external system, and webhook.site will display the incoming data for you to verify. Both tools are easy to use, and we’ve mentioned them in our general webhooks guide, so feel free to check that out for more details. JSON Format for Incoming Webhooks The data sent to Simply CRM via incoming webhooks is structured in JSON format. This ensures that the information is well-organized and can be processed by Simply CRM. Here’s an example of a typical JSON payload: jsonKopier kode{ "event": "new.contact", "data": { "name": "John Doe", "email": "johndoe@example.com", "phone": "123456789" } } This example shows how a new contact’s information (name, email, phone) could be sent to Simply CRM, where the system would create a new record based on the incoming data. Conclusion Incoming webhooks are a powerful way to streamline data entry in Simply CRM. By automatically pulling in data from external systems, you can save time and reduce manual work. Whether you’re receiving new signups, updates from other platforms, or any other data, incoming webhooks keep your CRM up-to-date. Be sure to also check out our guides on outgoing webhooks and the general introduction to webhooks to explore more ways to automate and integrate Simply CRM into your workflows.

Last updated on Nov 07, 2026

Outgoing Webhooks

Outgoing webhooks in Simply CRM let you send data to, or retrieve data from, an external system automatically when a workflow is triggered. This is useful when you want to: - send CRM data to another system - fetch data from an external API - use the response from an external system to create or update records in Simply CRM If you are new to webhooks, these related articles are also useful: - Introduction to Webhooks - Incoming Webhooks - Outgoing Webhooks Where to find it Go to: Settings > Automation > Workflows Create or edit a workflow, and in the Actions section choose Add WebHook. If you need more background on workflows and webhook basics, see: - Introduction to Webhooks - Outgoing Webhooks Main webhook settings When adding an outgoing webhook, you can configure the following. Action Title An internal name for the webhook action. Description An optional internal description of what the webhook does. URL to Notify This is the external endpoint that Simply CRM will call. Example: https://api.example.com/offers You can also include query parameters directly in the URL. HTTP method Choose the method that should be used for the request, for example: - GET - POST The correct method depends on what the external system expects. Authorization Type You can choose how the request should be authenticated: - Basic Authentication - No Authentication - Token - Bearer Token Use the type required by the receiving API. Request Type This controls how the data is sent. A common option is: - query — sends data as query parameters Use the request type required by the external system. Key / Value fields You can add as many key/value rows as needed. - Key = the parameter name - Value = the value to send - Header Field = if checked, the key/value pair is sent as a request header instead of normal request data This can be used for: - fixed values - CRM field values - credentials - API keys - custom parameters required by the external API Important behavior when selecting fields from dropdowns When you select a field from a dropdown, * is appended automatically. This means the workflow will search values in the database dynamically. If you type the field name manually instead of selecting it from the dropdown, it will not be overwritten automatically. You can also manually enter your own custom parameter names. Using predefined variables You can use predefined variables in the webhook configuration. This works in: - the URL - the Value fields - credentials such as username, password, token, API key, and similar fields Examples: - $$global_wordpress_url$$ - $$global_api_username$$ - $$global_api_key$$ - $$global_magento_apikey$$ These values are defined centrally under: Admin > Predefined Settings This is useful when: - the same integration is used in multiple workflows - credentials or base URLs should be maintained in one place - you want to avoid hardcoding sensitive values into every workflow Example Instead of writing: https://my-wordpress-site.com/wp-json/custom-endpoint you can write: $$global_wordpress_url$$/wp-json/custom-endpoint If the predefined setting is updated later, workflows using it will automatically use the new value. Example: storing a temporary API token in a global value A predefined value can also be filled from a webhook response and then reused in other webhook calls. Example: $$global_magento_apikey$$ This is useful when an external system requires a temporary token that only stays valid for a limited time, for example 1 hour. Example setup You could create a workflow with a timed trigger that runs every 45 minutes. That workflow could contain a webhook that: 1. logs in to Magento 2. retrieves a valid API token 3. saves that returned token into the predefined setting global_magento_apikey Other workflows can then use: $$global_magento_apikey$$ in their headers, URL values, or other webhook parameters. This allows you to centralize token handling and reuse the latest valid token across multiple webhook actions. Using date variables You can also use dynamic date variables in the webhook. Examples: - $$get_date('today')$$ - $$get_date('yesterday')$$ These return dynamic date values when the workflow runs. This is useful when the external API expects a date filter in the request, for example: - fetch records from today - fetch records from yesterday - limit returned data based on a date Example https://api.example.com/orders?date=$$get_date('today')$$ Or as a value: - Key: from_date - Value: $$get_date('yesterday')$$ Skip duplicates by saving and comparing past response This option allows the webhook action to compare the newest response with the previous response. When enabled: 1. Simply CRM saves the latest webhook response 2. on the next run, the new response is compared with the previously saved response 3. if the response is identical to the last saved response, the action is skipped This is useful when the webhook is used to regularly fetch data from an external system, but you only want Simply CRM to continue processing when the returned data has actually changed. Typical use cases - polling an external API on a schedule - avoiding repeated creation of identical data - reducing unnecessary updates when the external result has not changed Important note This compares the full latest response against the previously saved response. If the response is unchanged, the webhook step is skipped. Handle Response The Handle Response section is used when you want to take values from the webhook response and save them into fields in Simply CRM. For each row: - choose the destination CRM field on the left - define the source value from the webhook response on the right Example response [ { "title": "Example Deal", "price": 2500, "customer_no": "CUST-1001", "created_on": "2025-03-01", "end_date": "2025-03-31" } ] Example mapping - potentialname -> [*].title - amount -> [*].price - customer_no -> [*].customer_no - createdtime -> [*].created_on - closingdate -> [*].end_date In this example, [*] means the response contains multiple records and that the mapping should use values from all returned items. Extracting values from the response You can extract values from the response using path expressions. Multiple records Use: [*].customer_no if you want the customer_no value from all returned records. This is typically used when the response contains many records and you want Simply CRM to create or update multiple CRM records based on the returned data. First record only Use: [0].customer_no if you only want the value from the first record in the response. This is useful when you only want to process the first returned item. Nested arrays You can also extract values from nested arrays. Example: items.[*].quantity This means: - go into the items array - retrieve the quantity value from all records inside that array You can use similar structures for other nested response formats. Examples: - items.[*].sku - items.[*].name - data.[0].customer_no - response.items.[*].quantity Nested object example If the webhook response contains nested JSON objects, you can access sub-values using dot notation. Example: { "statistics": { "counts": { "all": 7380, "closed": 6954, "opened": 426 } } } To get the value 426, use: statistics.counts.opened in the Handle Response source field. Record Matching The Record Matching dropdown allows you to define how Simply CRM should identify whether a returned record already exists. Here you choose an existing field in Simply CRM that should act as the unique identifier. Typical examples: - record number - email address - external ID - customer number - order number How it works When the webhook response is processed: 1. Simply CRM reads the value from the mapped field in Handle Response 2. it checks whether a record already exists with the same value in the field selected under Record Matching 3. if a match is found, the existing record is updated 4. if no match is found, a new record is created Important requirement For Record Matching to work, the matching value must also be filled in Handle Response. That means you must first map the response value to a CRM field in Handle Response, and then select that same field in Record Matching. If the value is not mapped in Handle Response, Simply CRM has nothing to compare against and cannot match existing records. Example If the response contains: [ { "customer_no": "CUST-1001", "title": "Example Deal", "price": 2500 } ] You could map: - customer_no -> [*].customer_no - potentialname -> [*].title - amount -> [*].price Then choose customer_no in Record Matching. Result: - if a record already exists with customer_no = CUST-1001, that record is updated - if no record with that customer number exists, a new record is created This is especially useful when syncing data from external systems without creating duplicates. Example setup Below is a typical example of an outgoing webhook used to fetch records from an external API and create or update CRM records. URL $$global_external_api_url$$/offers Authentication / header values Examples: - Username -> $$global_api_username$$ - Password -> $$global_api_password$$ - APIKey -> $$global_api_key$$ If these should be sent as headers, enable Header Field on those rows. Duplicate checking Enable Skip duplicates by saving and comparing past response if you only want processing to continue when the response changes. Handle Response example - potentialname -> [*].title - amount -> [*].price - customer_no -> [*].customer_no - createdtime -> [*].created_on - closingdate -> [*].end_date Record Matching example Choose a unique field such as: - customer number - email - order number - external ID If a returned record matches an existing value in that field, the existing record is updated instead of creating a new one. Testing and troubleshooting When testing outgoing webhooks, check: - that the URL is correct - that the authentication type matches the external API - that required headers are marked as Header Field - that the response structure matches your Handle Response mappings - that the matching field in Record Matching is also mapped in Handle Response For testing, tools like Postman and webhook.site are useful. The current webhooks overview article also recommends those tools. (help.simply-crm.com) If records are not being updated as expected: - verify that the returned value really exists in the webhook response - verify that the target CRM field is mapped correctly - verify that the selected Record Matching field contains the same value in existing records If no new data is being processed: - check whether Skip duplicates by saving and comparing past response is enabled - if enabled, the response may be identical to the previous run and therefore intentionally skipped Related articles - Introduction to Webhooks - Incoming Webhooks - Outgoing Webhooks -

Last updated on Nov 07, 2026

Publish a Filter as an External Feed

Publish a Filter as an External Feed You can publish a module filter as an external feed, allowing the filtered data to be accessed through a URL and used by external systems such as webforms, integrations, or other applications. This feature extends the normal filter functionality. If you are unfamiliar with filters, see: https://help.simply-crm.com/hc/simply-crm-support/articles/how_to_create_a_custom_filter What an External Feed Does An external feed makes a saved CRM filter accessible through a URL. The filter remains the single source of truth, meaning the feed always uses: - The filter’s module - The filter’s conditions - The filter’s sort order Additional URL parameters can be used to further narrow the results, but never expand them. Common use cases include: - Providing product lists to webforms or websites - Sharing customer phone numbers with a phone system - Making filtered CRM data available to external tools How to Create an External Feed 1. Go to the module where the data is stored. 2. Create or open a Custom Filter. 3. Open the Edit Filter screen. 4. Enable Create external feed. 5. Save the filter. When enabled: - A feed key is automatically generated. - The feed URL becomes available and can be copied. Feed Access and Keys All feeds require a key to be accessed. - The key is automatically generated when the feed is enabled. - The key must be included in the feed URL. - If the key is removed or revoked, the feed becomes inaccessible. This ensures that only systems with the correct URL and key can access the data. Example Feed URLs An external feed URL may look like this: https://yourcompany.simply-crm.com/feed.php?filterid=1234&key=abcd1234example This URL returns the results of the saved filter. You can also add additional parameters to further narrow the results using fields that are already shown in the filter. Example: https://yourcompany.simply-crm.com/feed.php?filterid=1234&key=abcd1234example&name=lego In this example, the feed will only return records where the Name field matches lego, in addition to the conditions already defined in the filter. Another example: https://yourcompany.simply-crm.com/feed.php?filterid=1234&key=abcd1234example&cf_row=1 Here, the results are further filtered to only include records where cf_row matches 1. How Feed Filtering Works When a feed is accessed: 1. The saved filter runs first 2. Any additional URL parameters are applied as extra AND conditions 3. The result set can only be narrowed, never expanded This means you can use parameters such as &name=lego or &cf_row=1 to limit the results further, but never to show records outside the original filter. Limits To keep the feature safe and efficient: - Feeds return a limited number of rows per request - Basic rate limiting and caching may apply If you want, I can also tighten the wording a bit more so it feels even more like a finished Simply-chat HC article.

Last updated on Nov 07, 2026