{"id": "53ccb2ae0280-0", "text": "Introduction\nOverview\nThe Sugar Developer Guide is an essential resource for developers who are new to Sugar or to CRM and web-based applications. It\u00c2\u00a0describes how to configure and customize the Sugar platform for a broad range of tasks applicable to any organization that has a need to manage business relationships with people.\nPrerequisites\nUsing and understanding the\u00c2\u00a0documentation contained in the Sugar Developer Guide requires basic programming and software development knowledge. Specifically, you should be familiar with the PHP general-purpose scripting language and the SQL programming language for accessing databases.\nUnderstanding Sugar's Framework", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/index.html"} {"id": "53ccb2ae0280-1", "text": "Understanding Sugar's Framework\nDesigned as the most modern web-based CRM platform available today, Sugar has quickly become the business application standard for companies around the world.\u00c2\u00a0The Sugar application framework has a sophisticated extension model built into it, allowing developers to make significant customizations to the application in an upgrade-safe and modular manner. It is easy to modify the core files in the distribution; you should always check for an upgrade-safe way to make changes. Educating developers on how to make upgrade-safe customizations is one of the key goals of this Developer Guide. For more information on Sugar's structure, please review the architecture section.\nSupported Platforms", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/index.html"} {"id": "53ccb2ae0280-2", "text": "Supported Platforms\nOriginally, Sugar\u00c2\u00ae was written on the LAMP stack (i.e. Linux, Apache, MySQL, and PHP), but has since\u00c2\u00a0added support for every operating system on which the PHP programming language runs, for the Microsoft IIS web server, and for the Microsoft SQL Server, IBM\u00c2\u00ae DB2\u00c2\u00ae, and Oracle databases.\u00c2\u00a0For more information about\u00c2\u00a0supported software versions and recommended stacks, please refer to the main\u00c2\u00a0Supported Platforms page.\nSugar Products\nSugar has several CRM products available: Sugar Sell, Sugar Serve, and Sugar Enterprise, which are all sold under a commercial subscription agreement. These\u00c2\u00a0products are developed by the same development team using the same source tree with different modules and features available depending on the product. A comparison of each product's features is available in the License Types section of the User Management documentation in the Administration Guide.\nBasic Development Rules for Sugar Products", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/index.html"} {"id": "53ccb2ae0280-3", "text": "Basic Development Rules for Sugar Products\nUnless SugarCRM has given you express permission to do so, the following are what not to do when you are configuring, customizing or modifying this Sugar product:\nDo not remove or alter any SugarCRM or Sugar copyright, trademark or proprietary notices that appear in the Sugar products.\nDo not \"fork\" the Sugar software (e.g., take a copy of source code from this product and start independent development on it, creating a distinct and separate piece of software).\nDo not modify, remove or disable any portion of SugarCRM's \"Critical Control Software.\"\nDo not combine or use the Sugar products with any code that is licensed under a prohibited license (e.g., AGPL, GPL v3, Creative Commons or another similar license that would \"taint\" the Sugar products and require you to share the source code for this product with a third party).", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/index.html"} {"id": "53ccb2ae0280-4", "text": "Do not use any part of the Sugar products for the purpose of building a competitive product or service or copying its features or user interface.\nDevelopment Tools\nSugar has a set of built-in tools that you can use to your advantage when troubleshooting or developing.\nDeveloper Mode\nDeveloper Mode will allow for Sugar to recompile cached files when the page is reloaded. The following file types are rebuilt:\nHandlebar Templates (.hbt)\nSmarty Templates (.tpl)\nJavaScript Controllers\u00c2\u00a0(.js)\nWhen Developer Mode is enabled, The Sidecar\u00c2\u00a0JavaScript library references the full JavaScript\u00c2\u00a0files located in ./sidecar/ rather than the concatenated and\u00c2\u00a0minified cached versions. You can turn on Developer Mode by navigating to Admin > System Settings. For more information, please refer to the System documentation.\nNote: This setting should remain off unless developing because it will degrade system performance.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/index.html"} {"id": "53ccb2ae0280-5", "text": "Note: This setting should remain off unless developing because it will degrade system performance.\nDiagnostic Tool\nWhen troubleshooting issues, you may find the diagnostic tool to be helpful. This tool will export a zipped package containing the requested diagnostics and is available even if you are hosting your instance on Sugar's cloud service.\nThe diagnostic tool has the ability to export the following:\nSugarCRM config.php\nSugarCRM Custom directory\nphpinfo()\nMySQL - Configuration Table Dumps\nMySQL - All Tables Schema\nMySQL - General Information\nMD5 info\nCopy files.md5\nCopy MD5 Calculated array\nBeanList/BeanFiles files exist\nSugarCRM Log File\nSugar schema output (VARDEFS)\nYou can use the diagnostic tool by navigating to Admin > Diagnostic Tool.\u00c2\u00a0For more information, please refer to the System documentation\u00c2\u00a0in the Administration Guide.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/index.html"} {"id": "53ccb2ae0280-6", "text": "Composer\nWhen building applications, some developers prefer to use Composer to manage their external dependencies\u00c2\u00a0and make them more intuitive. For more information, please refer to the Composer documentation.\n\u00c2\u00a0\nTopicsDevelopment MethodologyAn overview of code development methodologies for Sugar platform customizationsComposerUsing Composer as a dependency management system for third party libraries.Delivery and Deployment Guide for EnterprisesGuide to customization deployment steps used by Sugar Professional Services when engaged in CRM projects.Sugar 12.3 to 13.0 Migration GuideThe purpose of this document is to provide insight to Sugar Developers for upgrading custom Sugar code, extensions, and integrations to the Sugar 13.0 (Q2 2023) release.\n \tLast modified: 2023-05-23 16:27:13", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/index.html"} {"id": "b7a111614d86-0", "text": "Delivery and Deployment Guide for Enterprises\nOverview\nSugarCRM Professional Services has a set of best practices for managing instances, delivering upgraded customizations, and deploying those upgraded customizations into Sugar on-site for our Enterprise customers. The following is an example of deployment practices used by SugarCRM Professional Services team when engaged on Enterprise Sugar development projects. It does not list all possible customizations that can be made in the system, it is intended to be used as a guide for how to automate the deployment of certain types of customizations into an on-premise Sugar instance. The techniques below\u00c2\u00a0cannot be used with\u00c2\u00a0Sugar's cloud service.\nDeploying Application Configuration and Metadata\nUse Case: Deployment of System Settings\nSystem settings are stored in various places. In this section, we will address each type of storage for settings, and how to migrate each.\n Storage types: \nconfig_override.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-1", "text": "Storage types: \nconfig_override.php\nThis is a file stored in the Sugar root directory that allows for overriding core config values (found in config.php). In the UI, the main place to make changes to this is via Admin -> System Settings\ndatabase 'config' table\nIt is loaded, used, and accessible throughout the Sugar application through the Config API.\nSystem Tab Settings\nForecasting Settings\nPortal Settings\nThis is a simple key/value/category store. There aren't too many components that use this. Here are some:\n\u00c2\u00a0\nconfig_override.php\n System considerations: \nFile System:\nconfig_override.php is placed in Sugar web root directory\u00c2\u00a0\nScripts required\nPHP", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-2", "text": "Scripts required\nPHP\nYou will need to write a script to read the current config_override.php and merge the existing array with the new values you'd like to change. This can be done one time, and re-used for all future config_override.php changes\n\u00c2\u00a0\n Steps to migrate: \nAssess the values to be changed, added, or removed\nWrite a script to read the existing config_override.php, make the changes to the array, and re-write the file back to the system.\n\u00c2\u00a0\ndatabase 'config' table\n System considerations:\nDatabase:\nThe 'config' table stores all these values. They are stored in a very simple table schema.\nScripts required\nPHP\nWrite a simple PHP script to use Sugar object API. See Figure 1\n\u00c2\u00a0\n Steps to migrate:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-3", "text": "\u00c2\u00a0\n Steps to migrate: \nWrite script to use our object API for config table changes (See Figure 1)\nCopy script to Sugar root directory\nExecute the script\nRemove the script\u00c2\u00a0\n Screenshots: \nFigure 1:\n\u00c2\u00a0\n\u00c2\u00a0\nUse Case: Deployment of Reports\nThe customer creates a report in the Reports module. They would like to deploy that report so that end users can all access and run it.\n System considerations:\nDatabase\nRow is inserted into the Reports module (saved_reports table)\n(For new team combinations) Row is inserted into the team_sets table\n(For new team combinations) Rows are inserted into the team_sets_teams table\nScripts required\nSQL\nRetrieve the relevant rows (saved_reports, team_sets, team_sets_teams) and create a SQL script to insert them.\n Additional notes:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-4", "text": "Additional notes: \nIn the System considerations section, \"new combination of teams\" means that when creating the report, the end user created the Report with a set of teams that doesn't exist on any other record. This results in new entries in the team_sets and team_sets_teams tables.\n Steps to migrate: \nBuild a report in the dev instance\nSelect the database rows associated with that report (saved_reports, possibly team_sets and team_sets_teams tables)\nexample: \"SELECT * FROM saved_reports WHERE id = 'REPORT_ID'\"\nExport the row/rows into a SQL file\nExecute on the next system\n\u00c2\u00a0\nUse Case: Deployment of Dashboards", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-5", "text": "Execute on the next system\n\u00c2\u00a0\nUse Case: Deployment of Dashboards\nThe customer wants to deploy the pre-built dashboards in an automated way. See Figure 1 below. This example has two dashboards, \"Help Dashboard\" and \"My Dashboard\". Each dashboard has zero or more dashlets.\n System considerations:\nDatabase:\nRow is inserted into the dashboards table for each user dashboard. The metadata column stores all the dashlets associated with that dashboard, and the assigned_user_id column stores the user who will see this dashboard.\nScripts required\nPHP\nAfter deploying the dashboards you will need to run the Quick Repair and Rebuild script found in the admin section.\nCustom scripts: YES (if applying to multiple users)\nBecause users and id are dynamic, if applying to multiple users, you will need a custom script to retrieve those user ids and set them for each sql insert.\nSQL", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-6", "text": "SQL\nScript required to import the entry from the dashboards table.\n Steps to migrate: \nBuild a dashlet against a specific user\nSelect the database rows associated with that user\nexample: \"SELECT * FROM dashlets WHERE assigned_user_id = 'USER_ID'\"\nPick the dashboard you'd like to apply to other users, and export it into a SQL file\nDecide what set of users you need to create the dashboard for.\nWrite a script to pull that list of users, dynamically set the assigned_user_id and id (id must be unique) with the insert query you exported in step 3, and run for each one of those users.\n\u00c2\u00a0\n Screenshots: \nFigure 1\n\u00c2\u00a0\nUse Case: Deployment of Roles\nThe customer wants to deploy the roles in an automated way. This includes creating new roles and updating previously existing roles.\n System considerations:\nDatabase:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-7", "text": "System considerations:\nDatabase:\nRow is inserted into the acl_roles table for each role setting. Depending on how specific the role is, we might have acl_fields and acl_actions mapped to roles through acl_roles_actions\nScripts required\nPHP\nSugar has a SugarACL object API that can be used to create, read, and write roles and role definitions.\u00c2\u00a0\n Steps to migrate: \nWrite a script using our object API to create or write roles\nDefine the metadata for the changes or additions to be made\nWrite logic to add/update based on metadata\nExecute script on dev instance and confirm changes\nUse script to promote to next instance\nNote: See functional sample script below\nhttps://gist.github.com/sadekbaroudi/3191513e2bbce2170326\n\u00c2\u00a0\nUse Case: Deployment of Teams", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-8", "text": "\u00c2\u00a0\nUse Case: Deployment of Teams\nThe customer wants to deploy the teams in an automated way. This should be done via the Sugar object API.\n System considerations:\nScripts required\nPHP\nFollow steps in \"Additional Notes\" section below for details on building Team scripts.\nTeamSets are cached per user by SugarCache. \u00c2\u00a0SugarCache should be cleared after installing new teams.\n Additional notes: \nTo build a script to do this, see the following:\nmodules/Teams/Save.php\nThis file is called when a user posts data through the form in the UI. This code should be replicated (until the Teams module is refactored).\nmodules/Teams/Team.php\nfunction save() - this should be called as part of the save", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-9", "text": "function save() - this should be called as part of the save\nfunction mark_deleted() - this should be called on the object when you want to delete a team, be sure to make sure there are no related users before doing so.\n Steps to migrate: \nWrite a script using our Teams object API\nCreate needed team object\nSet appropriate data on object and/or POST data\nAfter saving, potentially add users to the team\nExecute script on dev instance and confirm changes\nUse script to promote to next instance\n\u00c2\u00a0\nUse Case: Deployment of User Settings\nThe customer wants to deploy the user settings in an automated way. There are a couple of places where we store User settings.\n Storage types: \nUser Preferences", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-10", "text": "Storage types: \nUser Preferences\nThis is a key value pair with a serialized and then base64 encoded value. We store many user preferences, all encoded. These are non-critical settings, and can be blown away. However, doing so will require the user to reconfigure their preferences. The data is stored in the user_preferences table. This includes data such as: \u00c2\u00a0Subpanel display order,\u00c2\u00a0Timezone preferences, etc.\nUsers module settings\n\u00c2\u00a0These are direct values on the Users module (users table). Here we track persistent User attributes such as:\u00c2\u00a0Address,\u00c2\u00a0Phone number,\u00c2\u00a0etc\u00c2\u00a0\nUser preferences\n System considerations:\nDatabase:\nRow is inserted into the user_preferences table for each user setting change.\nScripts required\nPHP\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-11", "text": "Scripts required\nPHP\u00c2\u00a0\nIn order to update values with a user's preferences, you would need to write a custom script to read, update, and rewrite to the user_preferences table\u00c2\u00a0\n Steps to Migrate: \nWrite a script using our User Preferences API\nQuery the database to retrieve the row for a given user\nbase64 decode the value\nunserialize the value\nupdate the data required\nserialize the data\nbase64 encode\nrewrite the row to the database\n(repeat for all applicable users)\n(See modules/UserPreferences/UserPreference.php or modules/Users/User.php, specifically getPreference() and setPreference())\nLoad the User object\nCall getPreference for the specified value\nMake changes\nCall setPreference for the specified value\nBetter performance method (direct database queries and updates):\nMore robust, but slower performance method (API):\n\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-12", "text": "More robust, but slower performance method (API):\n\u00c2\u00a0\nUser table\n\u00c2\u00a0\n System considerations:\nDatabase:\nUsers table is updated\nScripts required:\nSQL\nYou can directly update the Users table directly, provided the data is not encoded or encrypted (like password).\n\u00c2\u00a0\n Steps to Migrate: \nWrite a SQL script to update values in the users table based on need\nExecute script on dev instance and confirm changes\nUse script to promote to next instance\n\u00c2\u00a0\nUse Case: Deployment of custom fields\nA user wants to deploy custom fields created in an automated way. This includes anything created through Studio.\n System considerations: \nFile System:\nFiles are potentially created in the following directories:\nCustom field vardef:custom/Extension/modules//Ext/Vardefs/sugarfield_.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-13", "text": "Custom field label (and app_list_string if necessary): ./custom/Extension/modules/Accounts/Ext/Language/en_us.lang.php\nDatabase:\nThe _cstm table is created, if it doesn't already exist.\nThe field _c is created against that table\nScripts required\nA Quick Repair and Rebuild is required after copying the files and fields_meta_data table values.\nSQL\nYou will need to insert the relevant entries from the fields_meta_data table\n Steps to migrate: \nExport the fields_meta_data entries for the custom fields into a script\nCopy the files for the custom fields\nApply #1 and #2 to another system, and execute a Quick Repair and Rebuild\nExecute the DDL generated by the QRR above\n\u00c2\u00a0\nUse Case: Deployment of custom modules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-14", "text": "\u00c2\u00a0\nUse Case: Deployment of custom modules\nA developer creates a custom module and wants to deploy it, this use case refers to a basic module, because each additional feature (logic hooks, relationships,dependencies, etc) has its\u00c2\u00a0 own deployment scenario.\n System considerations: \nFile System:\n./custom/Extension/application/Ext/Include/.php\n./modules//*\n./custom/modules//*\n./custom/themes/default/images/**.(gif/png)\n./custom/Extension/modules//*\nDatabase:\nnew tables and _audit\nNote: the DDL gets generated by the Quick Repair and Rebuild script, at which point you can execute manually or automatically\nfields_meta_data table", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-15", "text": "fields_meta_data table\nNote: this stores all the custom fields built through Studio (not Module Builder) after the module is deployed. Make sure you retrieve all rows from this table that apply to this module and create a SQL script to insert into the next system\nScripts required\nAfter deploying the custom module, you will need to run the Quick Repair and Rebuild script found in the admin section.\nSQL\nScript required to import the entry from the and _audit table.\nScript required to import fields_meta_data table entries for this module (if there are any)\n Additional notes: \nFor a full custom module deployment scenario, this deployment scenario should be ran first then all of the extended module features deployment scenarios should be run:\n Steps to migrate: \nCopy all files listed in file system section above", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-16", "text": "Steps to migrate: \nCopy all files listed in file system section above\nExport fields_meta_data table entries as apply to the custom module (if any)\nRun Quick Repair and Rebuild\nEither manually or automatically run the DDL output from QRR\nTest functionality\u00c2\u00a0\nUse Case: Deployment of custom Relationships\nA user wants to deploy custom relationships created in an automated way. This includes anything created through Studio.\u00c2\u00a0\nFollow the same instructions as for Custom\u00c2\u00a0Fields, but:\nIgnore the fields_meta_data table\nBe sure to consider the following:\ncustom/Extension/modules//Ext/\ncustom/Extension/modules//Ext/\ncustom/Extension/modules/relationships/\nOtherwise, the same process applies.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-17", "text": "custom/Extension/modules/relationships/\nOtherwise, the same process applies.\nUse Case: Deployment of custom View or Layout metadata (Web)\nThe user creates custom layouts and views for web from studio and wants to deploy them.\n System considerations: \nFile System:\nLayouts:\n./custom/modules//clients//layouts// .php\nViews\nCreating a layout from Studio actually augments the Sidecar view metadata instead of Sidecar layout metadata\n./custom/modules//clients//views// .php\nScripts required\nAfter deploying you will need to run the Quick Repair and Rebuild script found in the admin section.\u00c2\u00a0\n Additional notes:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-18", "text": "Additional notes: \nFor layouts(record) you have the option to simply save the modified layout. In this case the metadata for the layout can be found in ./custom/working/modules///views//.php\nLayouts created from studio create views in .custom/modules//viewsThe created views can be record | list | selection-list\nFor the two popup layouts(created from studio), extra metadata is provided in the ./custom/modules//metadata/popupdefs.php\n\u00c2\u00a0\nUse Case: Deployment of custom View or Layout metadata (mobile)\nThe user creates custom layouts and views for mobile from studio and wants to deploy them.\n System considerations: \nFile System: YES\nLayouts:\n./custom/modules//clients/mobile/layouts// .php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-19", "text": "Views\n./custom/modules//clients/mobile/views// .php\nDatabase: NO\nScripts required\nAfter deploying you will need to run the Quick Repair and Rebuild script found in the admin section.\n Additional notes: \nLayouts and views are handled the same as with web. From Studio, you can augment detail, edit and list views.\nDeploying Application Code and Integrations\nUse Case: Deployment of custom CSS (LESS)\n\u00c2\u00a0\nIn order to update branding, developers can deploy customized CSS.\n System considerations: \nFile System: YES\u00c2\u00a0\n./custom/themes/custom.less\nScripts required\nYou will need to run the Quick Repair and Rebuild script found in the admin section to rebuild the Sugar CSS bundles.\nUse Case: Deployment of Logic Hooks and Web Logic Hooks", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-20", "text": "Use Case: Deployment of Logic Hooks and Web Logic Hooks\nThe developer\u00c2\u00a0creates custom logic hooks, they want to deploy them.\n System considerations:\n Logic Hook: \nFile System: YES\u00c2\u00a0\napplication hooks :\n./custom/Extension/application/Ext/LogicHooks/.php\nmodule specific hooks:\n./custom/Extension/modules//Ext/LogicHooks/.php\nScripts required\nYou will need to run the Quick Repair and Rebuild script found in the admin section to rebuild the extensions.\n Web Logic Hook: \nDatabase: YES\nOnly for weblogic hooks : row is inserted into the weblogichooks table.\u00c2\u00a0\nScripts required\nAfter deploying the custom hooks and database entry in the weblogichooks table, you will need to run the Quick Repair and Rebuild script found in the admin section.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-21", "text": "SQL\nScript required to import the entry from the weblogichooks table.\nUse Case: Deployment of custom API endpoints\nThe user creates a custom api endpoints, he wants to deploy them.\u00c2\u00a0\n System considerations: \nFile System\nclients//api/*\nmodules/:module/clients//api/*\ncustom/clients//api*\ncustom/modules//clients//api/*\nScripts required\nAfter deploying the custom api you will need to run the Quick Repair and Rebuild script found in the admin section. This will rebuild the ./cache/file_map.php and ./cache/include/api/ServiceDictionary.rest.php files to make\u00c2\u00a0your endpoint available.\n Additional notes:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-22", "text": "Additional notes: \nLogic for how api endpoints are loaded, can be found in ./include/api/ServiceDictionary.php (where api endpoints are loaded from, how they are built on Quick Build and Repair, etc.)\nUse Case: Deployment of custom Administration Panels\nThe user creates custom administration panels, and wants to deploy them.\n System considerations: \nFile System:\n./custom/Extension/modules/Administration/Ext/Administration/.php\n./custom/Extension/modules/Administration/Ext/Language/.php\n./custom/themes/default/images/.\n and depending on the admin panel url, either : \n./custom/modules//*\nor", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-23", "text": "./custom/modules//*\nor\n./custom/modules//clients/base/layouts//*\n./custom/modules//clients/base/views//*\nScripts required\nAfter deploying the admin panels, you will need to run the Quick Repair and Rebuild script found in the admin section.\n Additional notes: \nThe admin url can specify new sidecar routes, old bwc routes, edit view files, plain scripts, or just open a drawer. Determining the additional resources to be copied may be impossible without a standard in place.\nUse Case: Deployment of custom Jobs / Schedulers\nThe user creates custom jobs and schedulers, and wants to deploy them.\n System considerations: \nFile System: YES:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "b7a111614d86-24", "text": "System considerations: \nFile System: YES:\n./custom/Extension/modules/Schedulers/Ext/ScheduledTasks/.php\n./custom/Extension/modules/Schedulers/Ext/Language/.php\nDatabase: YES\nRow is inserted into the schedulers table, if a job is added as a scheduled job using\u00c2\u00a0Administration > Scheduler.\nScripts required\nAfter deploying the custom jobs, you will need to run the Quick Repair and Rebuild script found in the admin section.\nSQL\nScript required to import the entry from the schedulers table.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Delivery_and_Deployment_Guide_for_Enterprises/index.html"} {"id": "4f9ecdf775e8-0", "text": "Composer\nOverview\nComposer dependency management\u00c2\u00a0is the de facto standard for managing PHP dependencies. Sugar platform ships with all required code bundled and optimied together for our developers. The installer will, however,\u00c2\u00a0deploy both composer.json and composer.lock in the web root directory as a reference of all dependencies which are controlled by Composer.\nAutoloader\nSugar has a custom autoloader that is\u00c2\u00a0PSR-0 and PSR-4\u00c2\u00a0compliant and integrates with Composer's mapping definitions.\nIntegrations\nWhen updating the Composer configuration, Composer will generate different mappings based on the settings of every dependency:\nClass map\nPSR-0 map\nPSR-4 map\nInclude paths (deprecated)\nSugarCRM's autoloader uses those generated maps directly to initialize itself and to figure out how to load different classes.\nInternals", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Composer/index.html"} {"id": "4f9ecdf775e8-1", "text": "Internals\nTo prevent endless file stats, Sugar's autoloader maintains a full list of all files at its disposal. This list is only generated once and is maintained in ./cache/file_map.php. Most of the Sugar\u00c2\u00a0codebase uses the autoloader to determine whether a file is available rather than performing expensive file_exists calls.\nA second file,\u00c2\u00a0stored\u00c2\u00a0in\u00c2\u00a0./cache/class_map.php\u00c2\u00a0, maintains a flat list of class-name-to-file mappings. When you make any changes to the file system, clear both files before testing new code.\nOptimization", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Composer/index.html"} {"id": "4f9ecdf775e8-2", "text": "Optimization\nWhen updating dependencies through Composer, Sugar team uses the optimize flag: composer update --optimize-autoloader --no-dev\". \u00c2\u00a0By doing so, Composer will scan all files in the packages it manages and create a full list of PSR-0 and PSR-4 class name to file mappings, instead of performing this lookup on the fly by the autoloader itself on runtime.\nFrequently Asked Questions\nIs the composer package required to install a Sugar instance?\nNo. The Sugar installer ships with all required code bundled together. The installer process does not execute any Composer commands. The installer will deploy both composer.json and composer.lock in the web root directory as a reference of all dependencies which are controlled by Composer.\nWhy does Sugar ship ./composer.json and ./composer.lock\u00c2\u00a0if the installer doesn't rely on them?", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Composer/index.html"} {"id": "4f9ecdf775e8-3", "text": "Composer is\u00c2\u00a0used\u00c2\u00a0internally\u00c2\u00a0during development to manage Sugar's dependencies on third-party libraries and packages. The Composer files are shipped during development to manage Sugar's dependencies on third-party libraries and packages. The composer files are shipped with the product to give our customers the ability to expand from them.\nIs the Composer package required to upgrade a Sugar instance?\nNo. The Sugar upgrader ships, just like the installer, with all required code bundled together. The upgrade process will validate the present Composer configuration and verify if it is compatible with the upgrade. In the case of a custom configuration, the upgrade process will report any issues which need to be resolved\u00c2\u00a0by the\u00c2\u00a0system administrator\u00c2\u00a0before the upgrade can proceed.\nWhy are there no wildcards in the version constraints? Doesn't composer.lock keep track of exact version numbers?", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Composer/index.html"} {"id": "4f9ecdf775e8-4", "text": "The lock file is designed to lock the dependencies to a specific version, but to protect our customers from unintentionally pulling in newer versions of dependencies owned by SugarCRM, we have chosen to use explicit version numbers in the composer.json file too.\nMay I change the version number of a package?\nYou cannot change version numbers for packages added by Sugar. Sugar will always configure exact version numbers for all of its dependencies. Changing these version numbers will result in an unsupported platform. The version constraints of packages not owned by Sugar may be modified at the developer's discretion.\nCan I use Composer's autoloader?", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Composer/index.html"} {"id": "4f9ecdf775e8-5", "text": "Can I use Composer's autoloader?\nWe strongly recommend against using Composer's autoloader. The Sugar autoloader is fully compatible with the PSR-0 and PSR-4 autoloading recommendations from PHP-FIG, which makes the registration of an additional autoloader like the one from Composer redundant. Sugar's autoloader consumes the different mappings which are generated by Composer directly.\nHow can I optimize the autoloader?\nSugar ships with an optimized class map out of the box, which is pre-generated through Composer. This class map contains all different class to file mappings known to the dependencies managed by Composer. When customizing the Composer configuration, it is sufficient to run composer update --optimize-autoloader which will refresh the class map. SugarCRM's autoloader takes full advantage of this optimization.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Composer/index.html"} {"id": "4f9ecdf775e8-6", "text": "Can I load customizations in Sugar through Composer?\nAlthough not yet available out of the box,\u00c2\u00a0we are investigating this as a future capability.\nCan I move the vendor directory out of the web root?\nYou cannot currently move the vendor directory, but we are investigating this as a future capability.\nThe Composer integration in Sugar is not flexible enough for me. What can I do?\nWe continuously strive to make our platform better and to facilitate both end users and developers. Our goal is to deliver a state-of-the-art environment. Do not hesitate to reach out to Sugar Support if we have overlooked your use case\u00c2\u00a0or if there too many constraints in the current implementation to make this a useful feature.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Composer/index.html"} {"id": "a6c87b1ffede-0", "text": "Sugar 12.3 to 13.0 Migration Guide\nOverview\nThe purpose of this document is to provide insight to Sugar Developers for upgrading custom Sugar code, extensions, and integrations to the Sugar 13.0 (Q2 2023) release.\u00c2\u00a0\nCloud and On-Site Sugar Release\nFor those looking to upgrade from Sugar 12.0, you will be catching up with additional content released in the 12.1 (Q3 2022), 12.2 (Q4 2022), and 12.3 (Q1 2023) cloud-only Sugar releases. In addition to this guide, please review the\u00c2\u00a0Sugar 12.1,\u00c2\u00a0Sugar 12.2, and\u00c2\u00a0Sugar 12.3\u00c2\u00a0migration guides and the release\u00c2\u00a0notes linked below to get a full view of changes since Sugar 12.0.\nREST API Version Number\nThe current version for the Sugar REST API is 11_20.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Migration_Guide/index.html"} {"id": "a6c87b1ffede-1", "text": "The current version for the Sugar REST API is 11_20.\u00c2\u00a0\nChanges That May Affect Developers\nThe changes in\u00c2\u00a0Sugar 13.0 (Q2 2023) that could cause an immediate impact on customizations and integrations that were built for earlier versions of Sugar are highlighted in the following Developer Blog post in the SugarClub community:\u00c2\u00a0\nSugar 13.0 (Q2 2023) Customization Guide\nRelated Documents\nFor more information about what changed in Sugar 13.0.x, please refer to the following related documents:\nWhat to Expect When Upgrading to Sugar 13.0 (Q2 2023)\n13.0.0 Upgrade Paths\n13.0 Installation and Upgrade Guide\n13.0.x Supported Platforms\nRelease Notes\nSugar Sell 13.0.0 Release Notes\nSugar Serve 13.0.0 Release Notes\nSugar Enterprise 13.0.0 Release Notes", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Migration_Guide/index.html"} {"id": "a6c87b1ffede-2", "text": "Sugar Enterprise 13.0.0 Release Notes\n \tLast modified: 2023-04-05 00:05:28", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Migration_Guide/index.html"} {"id": "de6527dc9b3e-0", "text": "Development Methodology\nOverview\nThis page\u00c2\u00a0discusses\u00c2\u00a0standard\u00c2\u00a0practices that we recommend for improving the success rates of\u00c2\u00a0Sugar\u00c2\u00a0development projects.\u00c2\u00a0\nDevelopment Best Practices\nWhen developing Sugar\u00c2\u00ae customizations as part of an on-site CRM project implementation, we recommended placing the entire Sugar application filesystem under source code management. Sugar developers know that customizations made to Sugar are placed under the ./custom/ directory. But during the lifecycle of a CRM implementation, you will need to upgrade Sugar versions, which will change core files. Many projects will also need to track other related project files that may not all be Sugar platform code. For example, pre-flight SQL scripts, data migration scripts, Web server configuration settings, etc.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-1", "text": "For SugarCloud projects and ISVs, if you are building a custom module package or integration designed to be installed into many Sugar instances (including SugarCloud instances), then tracking only ./custom/ directory files should be enough.\nUsing .gitignore Files\nToday, many developers choose to use Git as their source control management. There are certain Sugar application files that you do not want to track; most of these are generated files that are created at runtime or are Sugar instance-specific configuration files.\nBelow is a sample .gitignore file that you can use or adapt to the source control management system of your choice.\n*.log\n/.htaccess\n/config.php\n/config_override.php\n/cache\n/upgrades/module\n/upload\n/custom/blowfish\n/custom/history\n/custom/application/Ext\n/custom/modules/*/Ext\n/custom/Extension/**/*orderMapping.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-2", "text": "/custom/Extension/**/*orderMapping.php\nRecommendations for Development Teams\nCode quality is important to maintain because Sugar customizations run in the same environment as the rest of the Sugar application. Here are a few best practices to help\u00c2\u00a0development teams uphold code quality.\nAdopt an appropriate Git workflow for development. For reference, see Atlassian's tutorial on Git workflow options.\nDevelop within feature branches that are tested before being merged back into master to keep master stable.\nAvoid workflows that involve developers committing directly into the master branch to prevent\u00c2\u00a0code destabilization.\nDevelopment teams should always perform code reviews before merging in new code.\nDeploying Sugar Code\nWhere you plan to deploy Sugar code is the biggest factor in determining how Sugar code should be deployed and how your project should be managed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-3", "text": "Are you working on a Sugar project for an on-premise Sugar implementation? Are you working on a custom module that you plan on distributing through SugarExchange? Are you planning a solely REST API integration? The answers to these questions guide how you should develop and deploy Sugar code.\nSugar on-site\u00c2\u00a0projects :\u00c2\u00a0Develop these customizations using the exact version and flavor of Sugar that you plan to use in production.\nSugarCloud\u00c2\u00a0projects :\u00c2\u00a0Develop these customizations on the latest available version of Sugar for the particular flavor the customer has purchased.\nCustom modules or integrations : If you plan on distributing your customization to many Sugar customers via SugarExchange or channel partners,\u00c2\u00a0design your customization with Sugar's cloud service in mind.\nSugar's cloud service is more restrictive than our on-site installs regarding supported customizations.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-4", "text": "Sugar's cloud service is more restrictive than our on-site installs regarding supported customizations.\nA customization designed for Sugar's cloud service can\u00c2\u00a0be supported in Sugar on-site instances, but the inverse is not always true.\nFor more information on Sugar's cloud service restrictions, please refer to the SugarCloud Policy Guide.\nPackaging\nThe packaging of customizations is not a concern for many Sugar projects. Many projects just use Git (or some other file version control) to manage the distribution and deployment of Sugar code customizations. However, there are situations where the packaging of Sugar customizations is necessary.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-5", "text": "If you plan on distributing Sugar custom code, then you must package your customization as a Module Loadable Package\u00c2\u00a0(a .zip file that includes all custom code along with a manifest file). It is easy to write a script to build a module loadable package either from custom directory content or by extracting customizations out of a development environment. See examples on Github here and here.\nNote: Sugar Sell Essentials customers do not have the ability to upload custom file packages to Sugar using Module Loader.\nIn some Enterprise environments, changes are tightly controlled, and ownership of various Sugar application components may be spread across multiple teams, requiring a coordinated deployment. For example, a Database Administrator (DBA) may be responsible for implementing database schema (DDL) changes and a System Administrator may be responsible for implementing file system changes.\nFor these situations:\nFile system changes can be accounted for using Git to determine the difference between current production state and the latest changes to be deployed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-6", "text": "DDL changes can be accounted for via deploying latest file system changes on a clone of Sugar production instance and running Quick Repair command. Sugar will prompt you with any DDL changes that need to be made that you can then capture and share with your DBA.\nData Manipulation Language (DML) changes, if necessary, should be managed within SQL or PHP scripts.\nDeployment\nIf using the traditional Git-based deployment, then deploying new Sugar code is as easy as checking out the latest branch and then running Quick Repair and Rebuild. Run the quick repair from the Sugar user interface, or\u00c2\u00a0script\u00c2\u00a0it\u00c2\u00a0for fully automated deployment.\nWhen deploying to an instance on Sugar's cloud service, it is necessary to install\u00c2\u00a0the package\u00c2\u00a0manually using Module Loader. It is not possible to automate the deployment of packages into instances on Sugar's cloud service.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-7", "text": "In a coordinated deployment, database changes should be deployed first, followed by filesystem changes, followed by a Quick Repair (if permitted) to clear system caches. You can clear caches manually by deleting the contents of the ./cache/ directory and then truncate the metadata_cache table in the Sugar database. The Sugar application regenerates these caches as needed.\nUsing Sugar Studio to deploy changes into new environments (especially Production) is not recommended. Manually re-creating customizations using the Studio user interface can be error-prone. It also runs the risk of\u00c2\u00a0inadvertently\u00c2\u00a0overwriting other code customizations. It may be initially slower to create a custom field, etc.\u00c2\u00a0manually using extensions on filesystem but, in the\u00c2\u00a0long run, you benefit from better change management and automation.\nManaging Multiple Environments", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-8", "text": "Managing Multiple Environments\nCRMs are business-critical applications so development should never be performed directly on your production environment. A typical Sugar project involves multiple staging environments as well as individual development environments that each Sugar developer uses for actual coding.\nSugarCRM recommends 4 different environments:\nProduction environment : used by real users\nUser Acceptance Test (UAT) environment : used by business stakeholders to sign off on changes that go into production\nQuality Assurance environment : used for test and validation of new features and bug fixes\nDevelopment environments : used by individual Sugar developers to create and test code (often running on a local laptop or PC)\nCode changes that flow upstream from a development environment should not be allowed into production without going through quality assurance (QA) and user acceptance testing (UAT) first. The intermediate environments serve as gates between development and production that help\u00c2\u00a0intercept problems before they reach production.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-9", "text": "User and CRM data that needs to flow downstream from production environment should pass through intermediate environments as well to ensure consistency and that it is cleaned or anonymized of any personally identifiable or sensitive information.\nConsistency\nMaintaining as much consistency as possible for each of these environments is essential. Inconsistent environments can create issues where bugs are reproducible in one environment and not others (for example, a bug that only appears in production). Many times, these bugs are traced to configuration parameters that are not directly related to Sugar or the features and customizations under development.\nTo replicate your production environment as accurately as possible,\u00c2\u00a0we recommend you use VM or container technology in your development and QA environments.\nYour UAT environment should match the infrastructure of your production environment.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-10", "text": "Your UAT environment should match the infrastructure of your production environment.\nSugarCRM uses a variety of container technologies in developing the core Sugar application and for working on Sugar projects. In particular, we use Virtual Box, VMWare, Amazon AMIs, Docker containers, Vagrant, and Packer. SugarCRM Engineering also uses Puppet to centrally manage the provisioning and configuration of all these different environments.\nTesting\nSugarCRM recommends using a variety of testing methods to ensure the quality of your Sugar project. Perform unit testing, functional testing (either manual or GUI automation), system integration testing, user acceptance testing, and performance testing.\nUnit testing should be applied to ensure that even the smallest code units within your application are behaving as expected.\nFunctional testing should be performed to ensure that each feature and function behaves the way it was designed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-11", "text": "System Integration testing should be performed to ensure that Sugar co-exists with external systems and that data flows between all these systems successfully.\nUser acceptance testing should be performed by key stakeholders to ensure that your project is meeting business requirements.\nPerformance testing should be performed to ensure that the Sugar application's responsiveness meets user expectations and that the application continues to scale.\nIn our experience, neglecting any of these tests can negatively impact a Sugar project in terms of maintainability, customer satisfaction, and business success.\u00c2\u00a0\nIn the next section, we introduce some tools and open-source resources that can help you start a QA practice for your project.\nSugar Test Tools", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-12", "text": "Sugar Test Tools\nFor Sugar customers and partners,\u00c2\u00a0SugarCRM provides Test Tools\u00c2\u00a0that can be used to verify and perform quality assurance on Sugar customizations. Use of Sugar test technology requires familiarity with PHPUnit for PHP unit testing, Jasmine for JavaScript unit testing, and Apache JMeter for performance load testing.\nSugar Unit Tests\nThe Sugar Unit Test suites are the automated unit tests developed and maintained by SugarCRM Engineering during the process of building and releasing each new Sugar release. As part of our development process, these tests are required to run \"green\" (100% passing) at all times on each master release branch. Essentially, these tests form a regression test suite for an uncustomized version of Sugar running in our controlled build environment.\nWith that understanding, here is a recommended approach to take advantage of these unit tests.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-13", "text": "With that understanding, here is a recommended approach to take advantage of these unit tests.\nRun test suite against an uncustomized copy of Sugar in your development environment to establish a baseline. Not all tests may immediately pass; some may fail due to configuration differences between your development environment and SugarCRM Engineering's controlled build environment.\nCorrect any observed failures or skip/remove the failing tests to create a base test suite that is 100% passing.\nAs you develop customizations on Sugar, ensure that your base test suite continues to pass.\nCreate new tests for new code customizations that you create.\nSugar Performance Tests\nInstead of sanitizing data from a production environment for purposes of load testing, SugarCRM provides an open source tool called Tidbit that can be used to generate pseudo-random data to populate a Sugar instance with representable data.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-14", "text": "We also provide Apache JMeter scenarios to Sugar customers and partners who request access. These JMeter scenarios can be used to drive a simulated load against the Sugar REST API interface used by Sugar. They can validate that your customizations have not had an unexpected impact on the performance of a Sugar instance.\nDevOps\nIn order to facilitate and streamline development processes, Sugar recommends implementing DevOps automation. Use a tool such as Jenkins to orchestrate test automation, stage changes in any environment (dev, QA, UAT, and prod) for manual verification, and manage the promotion of changes from one environment to the next.\nPerform automated tests (e.g. unit tests) on each commit.\nStage development changes on at least a nightly basis for use by QA or demos.\nAutomate the rollback of changes in any environment as needed.\nAutomate notifications to affected and responsible parties whenever a test fails, or a build fails to deploy.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-15", "text": "Co-Existing with Studio Customizations\nSugar Studio and Module Builder enable administrator users to implement quick changes to a Sugar environment. But Sugar Studio lacks the rigorous change control that larger CRM projects need. Sometimes, Studio changes can even break code-level Sugar customizations. For this reason, we often discourage using Studio on heavily customized Sugar instances.\nHowever, if Sugar Studio is an important up-front requirement for a CRM project, then there are strategies you can adopt for your customizations to avoid conflicts.\nSugar Studio can be used to modify the layouts, fields, and relationships for the majority of modules in Sugar. Module Builder can be used to define new modules along with their layouts, fields, and relationships. In practice, this means that the fields and layouts for any module's record view, list view, mobile view, and subpanels can be customized using simple administration tools.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-16", "text": "Studio users, therefore, could potentially break code customizations that are reliant on a particular field or having a field on a particular layout or location. Here are some practices to avoid conflicts between Studio customizations and custom code:\nAvoid custom record, list, and subpanel view controllers because Studio users can change fields and layouts that affect expectations within your controller code.\nAvoid custom record validations because Studio users can change fields and layouts that affect expectations within your validation code.\nAvoid hard-coded integrations that rely on a particular field because Studio users can change fields that affect expectations within your integration.\nAvoid new field and relationship vardefs customizations because Studio users can create new fields and relationships.\nAvoid viewdefs\u00c2\u00a0customizations for record, list, and subpanel layouts because Studio users perform these customizations.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "de6527dc9b3e-17", "text": "Many customizations have a smaller risk of side effects related to Studio customizations. Here is a list of some changes that administrator users cannot perform via Studio:\nAdding custom dashlets\nAdding custom layouts or additions to footer or header\nAdding custom actions in record view action dropdown\nAdding metadata-aware integrations that discover fields and modules on the system\nAdding logic hooks\nConversely, certain customizations can provide Studio users with additional tools:\nAdding custom Sugar Logic functions\nAdding custom Sugar field types\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Introduction/Development_Methodology/index.html"} {"id": "3e8f59072df9-0", "text": "Cookbook\nWelcome to the SugarCRM Developer Cookbook! This library is filled with real-world code examples for common Sugar customizations and best practices. Sugar's DevClub is always cooking up new ideas, so be sure to check in often and see what's new. Get started by browsing the categories below.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-1", "text": "TopicsAdding Buttons to the Record ViewThis example explains how to create additional buttons on the record view and add events. We will extend and override the stock Accounts record view to add a custom button. The custom button will be called \"Validate Postal Code\" and ping the Zippopotamus REST service to validate the records billing state and postal code.Adding Field Validation to the Record ViewThis page explains how to add additional field validation to the record view. In the following examples, we will extend and override the stock Accounts record view to add custom validation. The custom validation will require the Office Phone field when the account type is set to \"Customer\" and also require the user to enter at least one email address.Adding an Existing Note to an Email as AttachmentThere may be times when you want to reuse a file attached to one Note record as an attachment for an Email, similar to the ability in the Compose Email view to add an attachment using 'Sugar", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-2", "text": "Email, similar to the ability in the Compose Email view to add an attachment using 'Sugar Document'.Adding the Email Field to a BeanThis example explains how to add an emails field for modules that don't extend the Person module template. We will create an email field and bring the email functionality module bean. The steps are applicable for stock and custom modules. In this example, we will add the email field into the Opportunities module.Converting Address' Country Field to a DropdownAddress fields in Sugar\u00c2\u00ae are normally text fields, which allow users to enter in the appropriate information (e.g. street, city, and country) for the record. However, with multiple users working in Sugar, it is possible for data (e.g. country) to be entered in a variety of different ways (e.g. USA, U.S.A, and United States) when creating or editing the record. This can cause some issues when creating a report grouped by", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-3", "text": "States) when creating or editing the record. This can cause some issues when creating a report grouped by the Billing Country field, for example, as records with the same country will be grouped separately based on the different ways the country was entered.Changing the Default Module When Logging a New Call or MeetingWhen creating a call or meeting directly from the Calls or Meetings module in Sugar, the default module for the Related To field is Accounts. If your sales team frequently schedules calls and meetings related to records from a module other than Accounts, it may make sense to adjust the behavior so that the Related To field defaults to a more commonly used module. This article covers how to change the default related module for calls and meetings in Sugar.Creating Custom Field TypesIn this example, we create a custom field type called \"Highlightfield\", which will mimic the base text field type with the added feature that the displayed text for the field will be highlighted in a color chosen when the field is created in", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-4", "text": "that the displayed text for the field will be highlighted in a color chosen when the field is created in Studio.Creating an Auto-Incrementing FieldThis article will cover the two approaches to creating an auto-incrementing field in Sugar.Customizing Prefill Fields When Copying RecordsThe copy action on the record view allows for users to duplicate records. This article will cover the various ways to customize the prefill fields on the copy view.Customizing the Email Editor ButtonsThe Emails module in Sugar\u00c2\u00ae displays commonly-used buttons in the HTML editor. This article explains how to modify the buttons on the editor's toolbar.Customizing the Start Speed of List View SearchWhen searching a Sidecar module's list view, Sugar\u00c2\u00ae begins returning results automatically once a predefined number of milliseconds have passed. This article covers how to customize the start speed of the list view search for Sidecar modules in Sugar.Disabling RLI Alerts on OpportunitiesHow to disable Revenue Line Item", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-5", "text": "modules in Sugar.Disabling RLI Alerts on OpportunitiesHow to disable Revenue Line Item (RLI) alerts on Opportunities using a custom JavaScript controller.Disabling TooltipsThis article will demonstrate how to disable the tooltips in Sugar.Dynamically Hiding Subpanels Based on Record ValuesThis article will demonstrate how to dynamically hide subpanels that are dependent on record values by overriding the subpanels layout for a module. This example is for an account record where we will hide the Contacts subpanel when the account type is not 'Customer'.Enabling Importing for Custom ModulesWhen designing a custom module in Module Builder, you have the option to enable importing for the module. If the custom module is deployed without enabling this option, it is not recommended that you redeploy the module since any changes made in Studio and potentially other areas of the application could be lost. This article will cover how to enable importing for custom modules via a code-level change to preserve", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-6", "text": "This article will cover how to enable importing for custom modules via a code-level change to preserve any additional configurations made to the module since being deployed from Module Builder.Increasing the Number of Dashboards Displayed in the Home MenuBy default, the \"Home Dashboard\" comes out-of-the-box with Sugar\u00c2\u00ae to display on the home page. In addition, Sugar users with a Sugar Serve and/or Sugar Sell license type will have access to specialized Home page dashboards called \"Service Console\" and \"Renewals Console\". Users have the ability to create new dashboards on their home page and build out its layout and dashlet set. Currently, Sugar imposes a limit of 50 dashboards that can be displayed under the Home module tab. So, when creating multiple dashboards, keep in mind that having more than 50 in the list of available dashboards will cause the ones in the beginning to be dropped off the list. This article covers how to increase the number of", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-7", "text": "ones in the beginning to be dropped off the list. This article covers how to increase the number of dashboards allowed in the Home menu via a code-level customization.Logic HooksThese pages demonstrate some common examples of working with logic hooks in Sugar.Modifying Calendar Item ColorsEach calendar event type (Meetings, Calls, and Tasks) has its own distinct color scheme. This article will review how to modify these colors, as well as demonstrate how to set the event color based on the event status.Modifying Layouts to Display Additional ColumnsBy default, the record view layout for each module displays two columns of fields. The number of columns to display can be customized on a per-module basis with the following steps.Modifying Subpanel ButtonsSeveral buttons exist on each subpanel by default such as \"Create\" (+ Plus symbol) and \"Link Existing Record\". These buttons are controlled by the panel-top view for each module. To make changes to the buttons", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-8", "text": "These buttons are controlled by the panel-top view for each module. To make changes to the buttons included in a subpanel layout, you will need to create an override for the panel-top view in ./custom/Extension/modules//Ext/clients/base/views/panel-top/ and update the corresponding buttons property to include or exclude a button.Module Loadable PackagesExamples working with the module loadable packages.Moving Footer content to Sidebar NavThis example explains how to add additional buttons to a new section in the sidebar nav layout. You may have previously customized a button that was added to the footer layout, which can be repurposed here and added to the sidebar-nav layout. We will create a custom view and append the view component to the sidebar-nav layout metadata. The additional button will merely show an alert and a flyout menu with a link to the Accounts module but can be expanded to do much", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-9", "text": "alert and a flyout menu with a link to the Accounts module but can be expanded to do much more.Passing Data to TemplatesThis page explains how to create a custom view component that passes data to the Handlebars template.Prepopulating the Compose Email ViewWhen composing an email in Sugar, it may be useful to modify the compose view to better suit your common business practices. In this article, we will use JavaScript to create a code-level customization which causes the To, CC, and Subject fields of the email to prepopulate with data from a related Opportunity.Refreshing Subpanels on the RecordViewHow to refresh specific subpanels on the Record View.Removing the Account Requirement on OpportunitiesThis article covers how to remove the Account field from being required on the Opportunities module.Web ServicesExamples when working with Sugar's web service endpoints.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "3e8f59072df9-10", "text": "Last modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/index.html"} {"id": "2b10ebc7b4e2-0", "text": "Web Services\nExamples when working with Sugar's web service endpoints.\nTopicsREST APIExamples of integrating with Sugar REST APIs.Legacy APIExamples of the legacy v4_1 web service endpoints.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/index.html"} {"id": "a1cf507d6c9b-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nLegacy API\nExamples of the legacy v4_1 web service endpoints.\nTopicsRESTExamples of v4.1 REST API calls.SOAPExamples of v4.1 SOAP API calls.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/index.html"} {"id": "ef226d8a483c-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nSOAP\nExamples of v4.1 SOAP API calls.\nTopicsC#C# SOAP v4_1 Examples.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/index.html"} {"id": "64a83025f021-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nC#\nC# SOAP v4_1 Examples.\nTopicsCreating or Updating a RecordA C# example demonstrating how to create or update an account with the set_entry method using SOAP and the v4 SOAP API.Logging InA C# example demonstrating how to log in and retrieve a session key using SOAP and the v4 SOAP API.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/index.html"} {"id": "71262fde3c64-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nLogging In\nOverview\nA C# example demonstrating how to log in and retrieve a session key using SOAP and the v4 SOAP API.\nExample\nusing System;\nusing System.Text;\nusing System.Security.Cryptography;\nnamespace SugarSoap\n{\n class Program\n {\n static void Main(string[] args)\n {\n string UserName = \"admin\";\n string Password = \"password\";\n string URL = \"http://{site_url}/service/v4/soap.php\";\n string SessionID = String.Empty;\n //SugarCRM is a web reference added that points to http://{site_url}/service/v4/soap.php?wsdl", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Logging_In/index.html"} {"id": "71262fde3c64-1", "text": "SugarCRM.sugarsoap SugarClient = new SugarCRM.sugarsoap();\n SugarClient.Timeout = 900000;\n SugarClient.Url = URL;\n //Create authentication object\n SugarCRM.user_auth UserAuth = new SugarCRM.user_auth();\n //Populate credentials\n UserAuth.user_name = UserName;\n UserAuth.password = getMD5(Password);\n //Try to authenticate\n SugarCRM.name_value[] LoginList = new SugarCRM.name_value[0];\n SugarCRM.entry_value LoginResult = SugarClient.login(UserAuth, \"SoapTest\", LoginList);\n \n //get session id\n SessionID = LoginResult.id;\n if (SessionID != String.Empty)\n {\n //print session", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Logging_In/index.html"} {"id": "71262fde3c64-2", "text": "if (SessionID != String.Empty)\n {\n //print session\n Console.WriteLine(SessionID);\n }\n //Pause Window\n Console.ReadLine();\n }\n static private string getMD5(string TextString)\n {\n MD5 md5 = MD5.Create();\n byte[] inputBuffer = System.Text.Encoding.ASCII.GetBytes(TextString);\n byte[] outputBuffer = md5.ComputeHash(inputBuffer);\n StringBuilder Builder = new StringBuilder(outputBuffer.Length);\n for (int i = 0; i < outputBuffer.Length; i++)\n {\n Builder.Append(outputBuffer[i].ToString(\"X2\"));\n }\n return Builder.ToString().ToLower(); //lowercase as of 7.9.0.0\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Logging_In/index.html"} {"id": "71262fde3c64-3", "text": "}\n }\n}\nNote:\u00c2\u00a0As of 7.9.0.0, the md5 of the password must be lowercase.\nResult\nb2uv0vrjfiov41d03sk578ufq6\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Logging_In/index.html"} {"id": "b09712f07b03-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nCreating or Updating a Record\nOverview\nA C# example demonstrating how to create or update an account with the set_entry method using SOAP and the v4 SOAP API.\nExample\nusing System;\nusing System.Text;\nusing System.Security.Cryptography;\nusing System.Collections.Specialized;\nnamespace SugarSoap\n{\n class Program\n {\n static void Main(string[] args)\n {\n //login -----------------------------------------\n \n string UserName = \"admin\";\n string Password = \"password\";\n string URL = \"http://{site_url}/service/v4/soap.php\";", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Creating_or_Updating_a_Record/index.html"} {"id": "b09712f07b03-1", "text": "//SugarCRM is a web reference added that points to http://{site_url}/service/v4/soap.php?wsdl\n SugarCRM.sugarsoap SugarClient = new SugarCRM.sugarsoap();\n SugarClient.Timeout = 900000;\n SugarClient.Url = URL;\n string SessionID = String.Empty;\n //Create authentication object\n SugarCRM.user_auth UserAuth = new SugarCRM.user_auth();\n //Populate credentials\n UserAuth.user_name = UserName;\n UserAuth.password = getMD5(Password);\n //Try to authenticate\n SugarCRM.name_value[] LoginList = new SugarCRM.name_value[0];", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Creating_or_Updating_a_Record/index.html"} {"id": "b09712f07b03-2", "text": "SugarCRM.entry_value LoginResult = SugarClient.login(UserAuth, \"SoapTest\", LoginList);\n \n //get session id\n SessionID = LoginResult.id;\n //create account --------------------------------\n \n NameValueCollection fieldListCollection = new NameValueCollection();\n //to update a record, you will nee to pass in a record id as commented below\n //fieldListCollection.Add(\"id\", \"68c4781f-75d1-223a-5d8f-5058bc4e39ea\");\n fieldListCollection.Add(\"name\", \"Test Account\");\n //this is just a trick to avoid having to manually specify index values for name_value[]\n SugarCRM.name_value[] fieldList = new SugarCRM.name_value[fieldListCollection.Count];\n int count = 0;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Creating_or_Updating_a_Record/index.html"} {"id": "b09712f07b03-3", "text": "int count = 0;\n foreach (string name in fieldListCollection)\n {\n foreach (string value in fieldListCollection.GetValues(name))\n {\n SugarCRM.name_value field = new SugarCRM.name_value();\n field.name = name; field.value = value;\n fieldList[count] = field;\n }\n count++;\n }\n \n try\n {\n SugarCRM.new_set_entry_result result = SugarClient.set_entry(SessionID, \"Accounts\", fieldList);\n string RecordID = result.id;\n //show record id to user\n Console.WriteLine(RecordID);\n }\n catch (Exception ex)\n {\n Console.WriteLine(ex.Message);\n Console.WriteLine(ex.Source);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Creating_or_Updating_a_Record/index.html"} {"id": "b09712f07b03-4", "text": "Console.WriteLine(ex.Source);\n }\n \n //Pause Window\n Console.ReadLine();\n }\n static private string getMD5(string PlainText)\n {\n MD5 md5 = MD5.Create();\n byte[] inputBuffer = System.Text.Encoding.ASCII.GetBytes(PlainText);\n byte[] outputBuffer = md5.ComputeHash(inputBuffer);\n //Convert the byte[] to a hex-string\n StringBuilder builder = new StringBuilder(outputBuffer.Length);\n for (int i = 0; i < outputBuffer.Length; i++)\n {\n builder.Append(outputBuffer[i].ToString(\"X2\"));\n }\n return Builder.ToString().ToLower(); //lowercase as of 7.9.0.0\n }\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Creating_or_Updating_a_Record/index.html"} {"id": "b09712f07b03-5", "text": "}\n }\n}\nResult\n68c4781f-75d1-223a-5d8f-5058bc4e39ea\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/SOAP/C_sharp/Creating_or_Updating_a_Record/index.html"} {"id": "69e810841c9b-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nREST\nExamples of v4.1 REST API calls.\nTopicsPHPPHP v4_1 REST Examples.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/index.html"} {"id": "c3b7e9104ad8-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nPHP\nPHP v4_1 REST Examples.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/index.html"} {"id": "c3b7e9104ad8-1", "text": "TopicsCreating DocumentsA PHP example demonstrating how to create a document using set_entry and a document revision with the set_document_revision method using cURL and the v4_1 REST API.Creating Notes with AttachmentsA PHP example demonstrating how to create a note using set_entry and add an attachment with the set_note_attachment method using cURL and the v4_1 REST API.Creating or Updating a RecordA PHP example demonstrating how to create or update an Account with the set_entry method using cURL and the v4_1 REST API.Creating or Updating Multiple RecordsA PHP example demonstrating how to create or update multiple contacts with the set_entries method using cURL and the v4_1 REST API.Creating or Updating TeamsA PHP example demonstrating how to manipulate teams using cURL and the v4_1 REST API.Logging InA PHP example demonstrating how to log in and retrieve a session key using", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/index.html"} {"id": "c3b7e9104ad8-2", "text": "REST API.Logging InA PHP example demonstrating how to log in and retrieve a session key using cURL and the v4_1 REST API.Relating Quotes and ProductsA PHP example demonstrating how to create and relate Products to Quotes using cURL and the v4_1 REST API.Retrieving a List of Fields From a ModuleA PHP example demonstrating how to retrieve fields vardefs from the accounts module with the get_module_fields method using cURL and the v4_1 REST API.Retrieving a List of RecordsA PHP example demonstrating how to retrieve a list of records from a module with the get_entry_list method using cURL and the v4_1 REST API.Retrieving a List of Records With Related InfoA PHP example demonstrating how to retrieve a list of records with info from a related entity with the get_entry_list method using cURL and the v4_1 REST API.Retrieving Email AttachmentsA", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/index.html"} {"id": "c3b7e9104ad8-3", "text": "method using cURL and the v4_1 REST API.Retrieving Email AttachmentsA PHP example demonstrating how to retrieve an email and its attachments from using the get_entry and get_note_attachment methods using cURL and the v4_1 REST API.Retrieving Multiple Records by IDA PHP example demonstrating how to retrieve multiple records from the accounts module with the get_entries method using cURL and the v4_1 REST API.Retrieving Records by Email DomainA PHP example demonstrating how to retrieve email addresses based on an email domain with the search_by_module and get_entries methods using cURL and the v4_1 REST API.Retrieving Related RecordsA PHP example demonstrating how to retrieve a list of related records with the get_relationships method using cURL and the v4_1 REST API.Searching RecordsA PHP example demonstrating how to search the accounts module with the search_by_module method using cURL and", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/index.html"} {"id": "c3b7e9104ad8-4", "text": "example demonstrating how to search the accounts module with the search_by_module method using cURL and the v4_1 REST API.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/index.html"} {"id": "c3b7e9104ad8-5", "text": "Last modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/index.html"} {"id": "8bf227cf7260-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nLogging In\nOverview\nA PHP example demonstrating how to log in and retrieve a session key using cURL and the v4_1 REST API.\nStandard Authentication Example\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "8bf227cf7260-2", "text": "\"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ------------------------------ \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "8bf227cf7260-3", "text": "),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n //get session id\n $session_id = $login_result->id;\n?>\nLDAP Authentication Example\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "8bf227cf7260-6", "text": "ob_end_flush();\n return $response;\n }\n //login ---------------------------------\n $ldap_enc_key = substr(md5($ldap_enc_key), 0, 24);\n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => bin2hex(mcrypt_encrypt(MCRYPT_3DES, $ldap_enc_key, $password, MCRYPT_MODE_CBC, \"password\")),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n /* \n The mcrypt extension is deprecated as of PHP 7.1.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "8bf227cf7260-7", "text": "/* \n The mcrypt extension is deprecated as of PHP 7.1. \n If on 7.1+, LDAP passwords will need to be sent unencrypted, with\n $login_parameters[\"user_auth\"][\"encryption\"] set to \"PLAIN\". An example is below:\n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => $password,\n \"version\" => \"1\",\n \"encryption\" => \"PLAIN\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n */\n $login_result = call(\"login\", $login_parameters, $url);\n echo \"
\";\n    print_r($login_result);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"}
{"id": "8bf227cf7260-8", "text": "echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n //get session id\n $session_id = $login_result->id;\n?>\nResult\nstdClass Object\n(\n [id] => lb7479svj8pjtf57ipmshepo80\n [module_name] => Users\n [name_value_list] => stdClass Object\n (\n [user_id] => stdClass Object\n (\n [name] => user_id\n [value] => 1\n )\n [user_name] => stdClass Object\n (\n [name] => user_name\n [value] => admin\n )\n [user_language] => stdClass Object\n (\n [name] => user_language\n [value] => en_us", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "8bf227cf7260-9", "text": "[name] => user_language\n [value] => en_us\n )\n [user_currency_id] => stdClass Object\n (\n [name] => user_currency_id\n [value] => -99\n )\n [user_is_admin] => stdClass Object\n (\n [name] => user_is_admin\n [value] => 1\n )\n [user_default_team_id] => stdClass Object\n (\n [name] => user_default_team_id\n [value] => 1\n )\n [user_default_dateformat] => stdClass Object\n (\n [name] => user_default_dateformat\n [value] => m/d/Y\n )\n [user_default_timeformat] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "8bf227cf7260-10", "text": ")\n [user_default_timeformat] => stdClass Object\n (\n [name] => user_default_timeformat\n [value] => h:ia\n )\n [user_number_seperator] => stdClass Object\n (\n [name] => user_number_seperator\n [value] => ,\n )\n [user_decimal_seperator] => stdClass Object\n (\n [name] => user_decimal_seperator\n [value] => .\n )\n [mobile_max_list_entries] => stdClass Object\n (\n [name] => mobile_max_list_entries\n [value] => 10\n )\n [mobile_max_subpanel_entries] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "8bf227cf7260-11", "text": "[mobile_max_subpanel_entries] => stdClass Object\n (\n [name] => mobile_max_subpanel_entries\n [value] => 3\n )\n [user_currency_name] => stdClass Object\n (\n [name] => user_currency_name\n [value] => US Dollars\n )\n )\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Logging_In/index.html"} {"id": "51e606fd7f73-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRetrieving a List of Records With Related Info\nOverview\nA PHP example demonstrating how to retrieve a list of records with info from a related entity with the get_entry_list method using cURL and the v4_1 REST API.\nThis example will retrieve a list of contacts and their related email addresses.\nExample\n $method,\n \"input_type\" => \"JSON\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-2", "text": "\"method\" => $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ---------------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-3", "text": "\"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //retrieve records ------------------------------------- \n $get_entry_list_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => \"Contacts\",\n //The SQL WHERE clause without the word \"where\".", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-4", "text": "//The SQL WHERE clause without the word \"where\".\n 'query' => \"\",\n //The SQL ORDER BY clause without the phrase \"order by\".\n 'order_by' => \"\",\n //The record offset from which to start.\n 'offset' => \"0\",\n //Optional. The list of fields to be returned in the results\n 'select_fields' => array(\n 'id',\n 'first_name',\n 'last_name',\n ),\n //A list of link names and the fields to be returned for each link name\n 'link_name_to_fields_array' => array(\n array(\n 'name' => 'email_addresses',\n 'value' => array(\n 'id',\n 'email_address',\n 'opt_out',\n 'primary_address'\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-5", "text": "'opt_out',\n 'primary_address'\n ),\n ),\n ),\n //The maximum number of results to return.\n 'max_results' => '2',\n //To exclude deleted records\n 'deleted' => 0,\n //If only records marked as favorites should be returned.\n 'Favorites' => false,\n );\n $get_entry_list_result = call(\"get_entry_list\", $get_entry_list_parameters, $url);\n echo \"
\";\n    print_r($get_entry_list_result);\n    echo \"
\";\n?>\nResult\nstdClass Object\n(\n [result_count] => 2\n [total_count] => 200\n [next_offset] => 2\n [entry_list] => Array\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-6", "text": "[entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 116d9bc6-4a24-b826-952e-4f7cb6b25ea7\n [module_name] => Contacts\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 116d9bc6-4a24-b826-952e-4f7cb6b25ea7\n )\n [first_name] => stdClass Object\n (\n [name] => first_name\n [value] => Lucinda\n )\n [last_name] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-7", "text": ")\n [last_name] => stdClass Object\n (\n [name] => last_name\n [value] => Jacoby\n )\n )\n )\n [1] => stdClass Object\n (\n [id] => 11c263ef-ff61-71ff-f090-4f7cb6fc9f68\n [module_name] => Contacts\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 11c263ef-ff61-71ff-f090-4f7cb6fc9f68\n )\n [first_name] => stdClass Object\n (\n [name] => first_name", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-8", "text": "(\n [name] => first_name\n [value] => Ike\n )\n [last_name] => stdClass Object\n (\n [name] => last_name\n [value] => Gassaway\n )\n )\n )\n )\n [relationship_list] => Array\n (\n [0] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [id] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-9", "text": "(\n [id] => stdClass Object\n (\n [name] => id\n [value] => 13066f13-d6ea-405c-0f95-4f7cb6fa3a08\n )\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => support52@example.org\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-10", "text": "[primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] => \n )\n )\n )\n [1] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 13e3d111-b226-c363-4832-4f7cb699a3a0\n )\n [email_address] => stdClass Object\n (\n [name] => email_address", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-11", "text": "(\n [name] => email_address\n [value] => qa.section@example.it\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 1\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] => \n )\n )\n )\n )\n )\n )\n )\n [1] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-12", "text": "(\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 16aeaf8b-b31f-943d-3844-4f7cb6ac63f2\n )\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => vegan.sales.im@example.cn", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-13", "text": "[value] => vegan.sales.im@example.cn\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] => \n )\n )\n )\n [1] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-14", "text": "(\n [name] => id\n [value] => 173bacf5-5ea6-3906-d91d-4f7cb6c6e883\n )\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => kid.the.section@example.org\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 1\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "51e606fd7f73-15", "text": "(\n [name] => primary_address\n [value] => \n )\n )\n )\n )\n )\n )\n )\n )\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records_With_Related_Info/index.html"} {"id": "818899da472b-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nCreating or Updating Teams\nOverview\nA PHP example demonstrating how to manipulate teams using cURL and the v4_1 REST API.\n \nNote: If you are creating a private team for a user, you will need to set private to true and populate the associated_user_id populated. You should also populate the name and name_2 properties with the users first and last name.\n \nExample \n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n \n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n \n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n \n return $response;\n }\n \n //login --------------------------------------------", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Teams/index.html"} {"id": "818899da472b-3", "text": "return $response;\n }\n \n //login --------------------------------------------\n \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n \n $login_result = call(\"login\", $login_parameters, $url);\n \n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n \n //get session id\n $session_id = $login_result->id;\n \n //create team -----------------------------------------------\n \n $set_entry_parameters = array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Teams/index.html"} {"id": "818899da472b-4", "text": "$set_entry_parameters = array(\n \n // session id\n \"session\" => $session_id,\n \n // The name of the module that the record will be create in.\n \"module_name\" => \"Teams\",\n \n // array of arrays for the record attributes\n \"name_value_list\" => array(\n /* Setting the id with a valid record id will update the record.\n array(\n \"name\" => \"id\",\n \"value\" => \"47dbab1d-bd78-09e8-4392-5256b4501d90\"\n ),\n */\n array(\n \"name\" => \"name\",\n \"value\" => \"My Team\"\n ),\n array(\n \"name\" => \"description\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Teams/index.html"} {"id": "818899da472b-5", "text": "),\n array(\n \"name\" => \"description\",\n \"value\" => \"My new team\"\n ),\n //Whether the team is private.\n //Private teams will have the associated_user_id populated.\n array(\n \"name\" => \"private\",\n \"value\" => 0\n ),\n ),\n );\n \n $set_entry_result = call(\"set_entry\", $set_entry_parameters, $url);\n \n echo \"
\";\n    print_r($set_entry_result);\n    echo \"
\";\n?>\nResult \nstdClass Object\n(\n [id] => 5c35a3be-4601-fb45-3afd-52ab78b03f89\n [entry_list] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Teams/index.html"} {"id": "818899da472b-6", "text": "[entry_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => My Team\n )\n [description] => stdClass Object\n (\n [name] => description\n [value] => My new team\n )\n [private] => stdClass Object\n (\n [name] => private\n [value] =>\n )\n )\n)\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Teams/index.html"} {"id": "c528764306be-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRetrieving Records by Email Domain\nOverview\nA PHP example demonstrating how to retrieve email addresses based on an email domain with the search_by_module and get_entries methods using cURL and the v4_1 REST API.\n \nWhen using the search_by_module method, the email address information is not returned in the result. Due to this behavior, we will gather the record ids and pass them back to the get_entries method to fetch our related email addresses.\nExample \n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n \n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n \n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-3", "text": "ob_end_flush();\n \n return $response;\n }\n \n //login --------------------------------------------\n \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n \n $login_result = call(\"login\", $login_parameters, $url);\n \n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n \n //get session id\n $session_id = $login_result->id;\n \n //search_by_module -------------------------------------------------", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-4", "text": "//search_by_module -------------------------------------------------\n \n $search_by_module_parameters = array(\n \"session\" => $session_id,\n 'search_string' => '%@example.com',\n 'modules' => array(\n 'Accounts',\n 'Contacts',\n 'Leads',\n ),\n 'offset' => 0,\n 'max_results' => 1,\n 'assigned_user_id' => '',\n 'select_fields' => array('id'),\n 'unified_search_only' => false,\n 'favorites' => false\n );\n \n $search_by_module_results = call('search_by_module', $search_by_module_parameters, $url);\n \n /*\n echo '
';", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"}
{"id": "c528764306be-5", "text": "/*\n    echo '
';\n    print_r($search_by_module_results);\n    echo '
';\n */\n \n $record_ids = array();\n foreach ($search_by_module_results->entry_list as $results)\n {\n $module = $results->name;\n \n foreach ($results->records as $records)\n {\n foreach($records as $record)\n {\n if ($record->name = 'id')\n {\n $record_ids[$module][] = $record->value;\n //skip any additional fields\n break;\n }\n }\n }\n \n }\n \n $get_entries_results = array();\n $modules = array_keys($record_ids);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-6", "text": "$modules = array_keys($record_ids);\n \n foreach($modules as $module)\n {\n $get_entries_parameters = array(\n //session id\n 'session' => $session_id,\n \n //The name of the module from which to retrieve records\n 'module_name' => $module,\n \n //An array of record IDs\n 'ids' => $record_ids[$module],\n \n //The list of fields to be returned in the results\n 'select_fields' => array(\n 'name',\n ),\n \n //A list of link names and the fields to be returned for each link name\n 'link_name_to_fields_array' => array(\n array(\n 'name' => 'email_addresses',\n 'value' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-7", "text": "'name' => 'email_addresses',\n 'value' => array(\n 'email_address',\n 'opt_out',\n 'primary_address'\n ),\n ),\n ),\n \n //Flag the record as a recently viewed item\n 'track_view' => false,\n );\n \n $get_entries_results[$module] = call('get_entries', $get_entries_parameters, $url);\n }\n \n echo '
';\n    print_r($get_entries_results);\n    echo '
';\nResult \nArray\n(\n [Accounts] => stdClass Object\n (\n [entry_list] => Array\n (\n [0] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-8", "text": "(\n [0] => stdClass Object\n (\n [id] => 1bb7ef28-64b9-cbd5-e7d6-5282a3b96953\n [module_name] => Accounts\n [name_value_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Underwater Mining Inc.\n )\n )\n )\n [1] => stdClass Object\n (\n [id] => efbc0c4e-cc72-f843-b6ed-5282a38dad7f\n [module_name] => Accounts\n [name_value_list] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-9", "text": "[name_value_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => 360 Vacations\n )\n )\n )\n )\n [relationship_list] => Array\n (\n [0] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-10", "text": "(\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => beans.the.qa@example.com\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n [1] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-11", "text": "[1] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => section.sales@example.edu\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-12", "text": ")\n )\n )\n )\n )\n )\n )\n [1] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => section51@example.com\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-13", "text": ")\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n [1] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-14", "text": "(\n [name] => email_address\n [value] => kid.sugar.qa@example.co.uk\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n )\n )\n )\n )\n )\n )\n [Contacts] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-15", "text": ")\n )\n [Contacts] => stdClass Object\n (\n [entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 24330979-0e39-f9ec-2622-5282a372f39b\n [module_name] => Contacts\n [name_value_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Errol Goldberg\n )\n )\n )\n [1] => stdClass Object\n (\n [id] => 2542dad2-85f3-5529-3a30-5282a3104e31\n [module_name] => Contacts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-16", "text": "[module_name] => Contacts\n [name_value_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Luis Deegan\n )\n )\n )\n )\n [relationship_list] => Array\n (\n [0] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-17", "text": "[link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => hr.phone@example.com\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n [1] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-18", "text": ")\n [1] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => the.info.phone@example.cn\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 1\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-19", "text": "[value] =>\n )\n )\n )\n )\n )\n )\n )\n [1] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => im.the.sales@example.name", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-20", "text": "[value] => im.the.sales@example.name\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n [1] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-21", "text": "[email_address] => stdClass Object\n (\n [name] => email_address\n [value] => the36@example.com\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 1\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n )\n )\n )\n )\n )\n )\n [Leads] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-22", "text": ")\n )\n [Leads] => stdClass Object\n (\n [entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 83abeeff-5e71-0f06-2e5f-5282a3f04f41\n [module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Caryn Wert\n )\n )\n )\n [1] => stdClass Object\n (\n [id] => 2a3b304b-5167-8432-d4e7-5282a300eabb", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-23", "text": "[module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Marco Castonguay\n )\n )\n )\n )\n [relationship_list] => Array\n (\n [0] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-24", "text": "[link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => hr60@example.com\n )\n [opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n )\n )\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-25", "text": ")\n )\n )\n )\n )\n [1] => stdClass Object\n (\n [link_list] => Array\n (\n [0] => stdClass Object\n (\n [name] => email_addresses\n [records] => Array\n (\n [0] => stdClass Object\n (\n [link_value] => stdClass Object\n (\n [email_address] => stdClass Object\n (\n [name] => email_address\n [value] => im.the@example.com\n )\n [opt_out] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c528764306be-26", "text": "[opt_out] => stdClass Object\n (\n [name] => opt_out\n [value] => 0\n )\n [primary_address] => stdClass Object\n (\n [name] => primary_address\n [value] =>\n )\n )\n )\n )\n )\n )\n )\n )\n )\n)\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Records_by_Email_Domain/index.html"} {"id": "c2d23fb2e5f2-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRetrieving Email Attachments\nOverview\nA PHP example demonstrating how to retrieve an email and its attachments from using the get_entry and get_note_attachment methods using cURL and the v4_1 REST API.\nThis example will retrieve a specified email record by its ID and write the attachments to the local filesystem.\nExample\n $method,\n \"input_type\" => \"JSON\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-2", "text": "\"method\" => $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n}\n//login --------------------------------------------- \n$login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-3", "text": "\"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n);\n$login_result = call(\"login\", $login_parameters, $url);\n/*\necho \"
\";\nprint_r($login_result);\necho \"
\";\n*/\n//get session id\n$session_id = $login_result->id;\n//retrieve the email --------------------------------------------- \n// email id of an email with an attachment\n$email_id = '5826bd75-527a-a736-edf5-5205421467bf';\n// use get_entry to get the email contents\n$get_entry_parameters = array(\n 'session' => $session_id,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-4", "text": "'session' => $session_id,\n 'module_name' => 'Emails',\n 'id' => $email_id,\n 'select_fields' => array(),\n 'link_name_to_fields_array' => array(\n array(\n 'name' => 'notes',\n 'value' => array(\n 'id',\n 'name',\n 'file_mime_type',\n 'filename',\n 'description',\n ),\n ),\n ),\n 'track_view' => false\n);\n$get_entry_result = call('get_entry', $get_entry_parameters, $url);\n//Email record contents\necho \"
\";\nprint_r($get_entry_result);\necho \"
\";", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-5", "text": "print_r($get_entry_result);\necho \"
\";\nif (!isset($get_entry_result->entry_list[0]))\n{\n echo \"Email not found!\";\n die();\n}\nif (!isset($get_entry_result->relationship_list) || count($get_entry_result->relationship_list) == 0)\n{\n echo \"No attachments found!\";\n die();\n}\n//retrieve any attachments --------------------------------------------- \nforeach ($get_entry_result->relationship_list[0][0]->records as $key => $attachmentInfo)\n{\n $get_note_attachment_parameters = array(\n 'session' => $session_id,\n 'id' => $attachmentInfo->id->value,\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-6", "text": "'id' => $attachmentInfo->id->value,\n );\n $get_note_attachment_result = call('get_note_attachment', $get_note_attachment_parameters, $url);\n //attachment contents\n echo \"
\";\n    print_r($get_note_attachment_result);\n    echo \"
\";\n $file_name = $get_note_attachment_result->note_attachment->filename;\n //decode and get file contents\n $file_contents = base64_decode($get_note_attachment_result->note_attachment->file);\n //write file\n file_put_contents($file_name, $file_contents);\n}\nResult\n//Email Result\nstdClass Object\n(\n [entry_list] => Array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-7", "text": "//Email Result\nstdClass Object\n(\n [entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 5826bd75-527a-a736-edf5-5205421467bf\n [module_name] => Emails\n [name_value_list] => stdClass Object\n (\n [assigned_user_name] => stdClass Object\n (\n [name] => assigned_user_name\n [value] => Administrator\n )\n [modified_by_name] => stdClass Object\n (\n [name] => modified_by_name\n [value] => Administrator\n )\n [created_by_name] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-8", "text": "[created_by_name] => stdClass Object\n (\n [name] => created_by_name\n [value] => Administrator\n )\n [team_id] => stdClass Object\n (\n [name] => team_id\n [value] => 1\n )\n [team_set_id] => stdClass Object\n (\n [name] => team_set_id\n [value] => 1\n )\n [team_name] => stdClass Object\n (\n [name] => team_name\n [value] => Global\n )\n [id] => stdClass Object\n (\n [name] => id", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-9", "text": "(\n [name] => id\n [value] => 5826bd75-527a-a736-edf5-5205421467bf\n )\n [date_entered] => stdClass Object\n (\n [name] => date_entered\n [value] => 2013-08-09 19:28:00\n )\n [date_modified] => stdClass Object\n (\n [name] => date_modified\n [value] => 2013-08-09 19:29:08\n )\n [assigned_user_id] => stdClass Object\n (\n [name] => assigned_user_id\n [value] => 1\n )\n [modified_user_id] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-10", "text": ")\n [modified_user_id] => stdClass Object\n (\n [name] => modified_user_id\n [value] => 1\n )\n [created_by] => stdClass Object\n (\n [name] => created_by\n [value] => 1\n )\n [deleted] => stdClass Object\n (\n [name] => deleted\n [value] => 0\n )\n [from_addr_name] => stdClass Object\n (\n [name] => from_addr_name\n [value] => SugarCRM\n )\n [to_addrs_names] => stdClass Object\n (\n [name] => to_addrs_names", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-11", "text": "(\n [name] => to_addrs_names\n [value] => email@address.com\n )\n [description_html] => stdClass Object\n (\n [name] => description_html\n [value] =>\n )\n [description] => stdClass Object\n (\n [name] => description\n [value] =>\n )\n [date_sent] => stdClass Object\n (\n [name] => date_sent\n [value] => 2013-08-09 19:28:00\n )\n [message_id] => stdClass Object\n (\n [name] => message_id\n [value] =>\n )\n [message_uid] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-12", "text": ")\n [message_uid] => stdClass Object\n (\n [name] => message_uid\n [value] =>\n )\n [name] => stdClass Object\n (\n [name] => name\n [value] => Example\n )\n [type] => stdClass Object\n (\n [name] => type\n [value] => out\n )\n [status] => stdClass Object\n (\n [name] => status\n [value] => read\n )\n [flagged] => stdClass Object\n (\n [name] => flagged\n [value] => 0\n )\n [reply_to_status] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-13", "text": "[reply_to_status] => stdClass Object\n (\n [name] => reply_to_status\n [value] => 0\n )\n [intent] => stdClass Object\n (\n [name] => intent\n [value] => pick\n )\n [mailbox_id] => stdClass Object\n (\n [name] => mailbox_id\n [value] =>\n )\n [parent_name] => stdClass Object\n (\n [name] => parent_name\n [value] => Having trouble adding new items\n )\n [parent_type] => stdClass Object\n (\n [name] => parent_type\n [value] => Cases\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-14", "text": "[value] => Cases\n )\n [parent_id] => stdClass Object\n (\n [name] => parent_id\n [value] => 116d4d46-928c-d4af-c22e-518ae4eb13fc\n )\n )\n )\n )\n [relationship_list] => Array\n (\n [0] => Array\n (\n [0] => stdClass Object\n (\n [name] => notes\n [records] => Array\n (\n [0] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-15", "text": "(\n [name] => id\n [value] => 1b63a8f9-ce67-6aad-b5a4-52054af18c47\n )\n [name] => stdClass Object\n (\n [name] => name\n [value] => Example.zip\n )\n [file_mime_type] => stdClass Object\n (\n [name] => file_mime_type\n [value] => application/zip\n )\n [filename] => stdClass Object\n (\n [name] => filename\n [value] => Example2.zip\n )\n [description] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-16", "text": ")\n [description] => stdClass Object\n (\n [name] => description\n [value] =>\n )\n [_empty_] => stdClass Object\n (\n [name] =>\n [value] =>\n )\n )\n [1] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 592f382d-b633-fd5f-803e-5205423a6d0b\n )\n [name] => stdClass Object\n (\n [name] => name\n [value] => Example2.zip", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-17", "text": "[value] => Example2.zip\n )\n [file_mime_type] => stdClass Object\n (\n [name] => file_mime_type\n [value] => application/zip\n )\n [filename] => stdClass Object\n (\n [name] => filename\n [value] => Example2.zip\n )\n [description] => stdClass Object\n (\n [name] => description\n [value] =>\n )\n [_empty_] => stdClass Object\n (\n [name] =>\n [value] =>\n )\n )\n )\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-18", "text": ")\n )\n )\n )\n )\n )\n)\n//Attachment 1 Result\nstdClass Object\n(\n [note_attachment] => stdClass Object\n (\n [id] => 1b63a8f9-ce67-6aad-b5a4-52054af18c47\n [filename] => Example.zip\n [file] => UEsDBAoAAAAIAOujCEOkMbvsNa0AAMCFAgAXAAAARmlsZXMvaW\n [related_module_id] => 5826bd75-527a-a736-edf5-5205421467bf\n [related_module_name] => Emails\n )\n)\n//Attachment 2 Result\nstdClass Object\n(\n [note_attachment] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "c2d23fb2e5f2-19", "text": "stdClass Object\n(\n [note_attachment] => stdClass Object\n (\n [id] => 592f382d-b633-fd5f-803e-5205423a6d0b\n [filename] => Example2.zip\n [file] => AEUoaAAARmlslsZXMvaWZXujCEOkMbvsNa0AAMCFAgAXAAAARm\n [related_module_id] => 5826bd75-527a-a736-edf5-5205421467bf\n [related_module_name] => Emails\n )\n)\nRelated\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Email_Attachments/index.html"} {"id": "5434f45c495a-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRetrieving Related Records\nOverview\nA PHP example demonstrating how to retrieve a list of related records with the get_relationships method using cURL and the v4_1 REST API.\nThis example will retrieve a list of leads related to a specific target list.\nExample\n $method,\n \"input_type\" => \"JSON\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "5434f45c495a-2", "text": "\"method\" => $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login --------------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "5434f45c495a-3", "text": "\"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //retrieve related list ------------------------------ \n $get_relationships_parameters = array(\n 'session'=>$session_id,\n //The name of the module from which to retrieve records.\n 'module_name' => 'ProspectLists',\n //The ID of the specified module bean.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "5434f45c495a-4", "text": "//The ID of the specified module bean.\n 'module_id' => '76d0e694-ef66-ddd5-9bdf-4febd3af44d5',\n //The relationship name of the linked field from which to return records.\n 'link_field_name' => 'leads',\n //The portion of the WHERE clause from the SQL statement used to find the related items.\n 'related_module_query' => '',\n //The related fields to be returned.\n 'related_fields' => array(\n 'id',\n 'first_name',\n 'last_name',\n ),\n //For every related bean returned, specify link field names to field information.\n 'related_module_link_name_to_fields_array' => array(\n ),\n //To exclude deleted records", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "5434f45c495a-5", "text": "),\n //To exclude deleted records\n 'deleted'=> '0',\n //order by\n 'order_by' => '',\n //offset\n 'offset' => 0,\n //limit\n 'limit' => 5,\n );\n $get_relationships_result = call(\"get_relationships\", $get_relationships_parameters, $url);\n echo \"
\";\n    print_r($get_relationships_result);\n    echo \"
\";\n?>\nResults\nstdClass Object\n(\n [entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 117c26c0-11d4-7b8b-cb8f-4f7cb6823dd8\n [module_name] => Leads", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "5434f45c495a-6", "text": "[module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 117c26c0-11d4-7b8b-cb8f-4f7cb6823dd8\n )\n [first_name] => stdClass Object\n (\n [name] => first_name\n [value] => Diane\n )\n [last_name] => stdClass Object\n (\n [name] => last_name\n [value] => Mckamey\n )\n )\n )\n [1] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "5434f45c495a-7", "text": ")\n )\n [1] => stdClass Object\n (\n [id] => 142faeef-1a19-b53a-b780-4f7cb600c553\n [module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 142faeef-1a19-b53a-b780-4f7cb600c553\n )\n [first_name] => stdClass Object\n (\n [name] => first_name\n [value] => Leonor\n )\n [last_name] => stdClass Object\n (\n [name] => last_name", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "5434f45c495a-8", "text": "(\n [name] => last_name\n [value] => Reser\n )\n )\n )\n )\n [relationship_list] => Array\n (\n )\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Related_Records/index.html"} {"id": "16c413eeb21c-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRetrieving a List of Records\nOverview\nA PHP example demonstrating how to retrieve a list of records from a module with the get_entry_list method using cURL and the v4_1 REST API.\nThis example will retrieve a list of leads.\nExample\n $method,\n \"input_type\" => \"JSON\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "16c413eeb21c-2", "text": "\"method\" => $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ----------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "16c413eeb21c-3", "text": "\"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //get list of records --------------------------------\n \n $get_entry_list_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => 'Leads',\n //The SQL WHERE clause without the word \"where\".", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "16c413eeb21c-4", "text": "//The SQL WHERE clause without the word \"where\".\n 'query' => \"\",\n //The SQL ORDER BY clause without the phrase \"order by\".\n 'order_by' => \"\",\n //The record offset from which to start.\n 'offset' => '0',\n //Optional. A list of fields to include in the results.\n 'select_fields' => array(\n 'id',\n 'name',\n 'title',\n ),\n /*\n A list of link names and the fields to be returned for each link name.\n Example: 'link_name_to_fields_array' => array(array('name' => 'email_addresses', 'value' => array('id', 'email_address', 'opt_out', 'primary_address')))\n */", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "16c413eeb21c-5", "text": "*/\n 'link_name_to_fields_array' => array(\n ),\n //The maximum number of results to return.\n 'max_results' => '2',\n //To exclude deleted records\n 'deleted' => '0',\n //If only records marked as favorites should be returned.\n 'Favorites' => false,\n );\n $get_entry_list_result = call('get_entry_list', $get_entry_list_parameters, $url);\n echo '
';\n    print_r($get_entry_list_result);\n    echo '
';\n?>\nResult\nstdClass Object\n(\n [result_count] => 2\n [total_count] => 200\n [next_offset] => 2\n [entry_list] => Array\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "16c413eeb21c-6", "text": "[entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 18124607-69d1-b158-47ff-4f7cb69344f7\n [module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 18124607-69d1-b158-47ff-4f7cb69344f7\n )\n [name] => stdClass Object\n (\n [name] => name\n [value] => Bernie Worthey\n )\n [title] => stdClass Object\n (\n [name] => title", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "16c413eeb21c-7", "text": "(\n [name] => title\n [value] => Senior Product Manager\n )\n )\n )\n [1] => stdClass Object\n (\n [id] => 1cdfddc1-2759-b007-8713-4f7cb64c2e9c\n [module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 1cdfddc1-2759-b007-8713-4f7cb64c2e9c\n )\n [name] => stdClass Object\n (\n [name] => name\n [value] => Bobbie Kohlmeier\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "16c413eeb21c-8", "text": "[value] => Bobbie Kohlmeier\n )\n [title] => stdClass Object\n (\n [name] => title\n [value] => Director Operations\n )\n )\n )\n )\n [relationship_list] => Array\n (\n )\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Records/index.html"} {"id": "7df7ec303a2c-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nCreating Documents\nOverview\nA PHP example demonstrating how to create a document using set_entry and a document revision with the set_document_revision method using cURL and the v4_1 REST API.\nExample\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Documents/index.html"} {"id": "7df7ec303a2c-2", "text": "\"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ----------------------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Documents/index.html"} {"id": "7df7ec303a2c-3", "text": "),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //create document -------------------------------------------- \n $set_entry_parameters = array(\n //session id\n \"session\" => $session_id,\n //The name of the module\n \"module_name\" => \"Documents\",\n //Record attributes\n \"name_value_list\" => array(\n //to update a record, pass in a record id as commented below", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Documents/index.html"} {"id": "7df7ec303a2c-4", "text": "//to update a record, pass in a record id as commented below\n //array(\"name\" => \"id\", \"value\" => \"9b170af9-3080-e22b-fbc1-4fea74def88f\"),\n array(\"name\" => \"document_name\", \"value\" => \"Example Document\"),\n array(\"name\" => \"revision\", \"value\" => \"1\"),\n ),\n );\n $set_entry_result = call(\"set_entry\", $set_entry_parameters, $url);\n echo \"
\";\n    print_r($set_entry_result);\n    echo \"
\";\n $document_id = $set_entry_result->id;\n //create document revision ------------------------------------", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Documents/index.html"} {"id": "7df7ec303a2c-5", "text": "//create document revision ------------------------------------ \n $contents = file_get_contents (\"/path/to/example_document.txt\");\n $set_document_revision_parameters = array(\n //session id\n \"session\" => $session_id,\n //The attachment details\n \"note\" => array(\n //The ID of the parent document.\n 'id' => $document_id,\n //The binary contents of the file.\n 'file' => base64_encode($contents),\n //The name of the file\n 'filename' => 'example_document.txt',\n //The revision number\n 'revision' => '1',\n ),\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Documents/index.html"} {"id": "7df7ec303a2c-6", "text": "'revision' => '1',\n ),\n );\n $set_document_revision_result = call(\"set_document_revision\", $set_document_revision_parameters, $url);\n echo \"
\";\n    print_r($set_document_revision_result);\n    echo \"
\";\n?>\nResult\n//set_entry result\nstdClass Object\n(\n [id] => b769cf46-7881-a369-314d-50abaa238c62\n [entry_list] => stdClass Object\n (\n [document_name] => stdClass Object\n (\n [name] => document_name\n [value] => Example Document\n )\n [revision] => stdClass Object\n (\n [name] => revision", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Documents/index.html"} {"id": "7df7ec303a2c-7", "text": "[revision] => stdClass Object\n (\n [name] => revision\n [value] => 1\n )\n )\n)\n//set_document_revision result\nstdClass Object\n(\n [id] => e83f97b9-b818-2d04-1aeb-50abaa8303b5\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Documents/index.html"} {"id": "7317680883b0-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRetrieving a List of Fields From a Module\nOverview\nA PHP example demonstrating how to retrieve fields vardefs from the accounts module with the get_module_fields method using cURL and the v4_1 REST API.\nThis example will only retrieve the vardefs for the 'id' and 'name' fields.\nExample\n $method,\n \"input_type\" => \"JSON\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Fields_From_a_Module/index.html"} {"id": "7317680883b0-2", "text": "\"method\" => $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ---------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Fields_From_a_Module/index.html"} {"id": "7317680883b0-3", "text": "\"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //retrieve fields -------------------------------- \n $get_module_fields_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => 'Accounts',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Fields_From_a_Module/index.html"} {"id": "7317680883b0-4", "text": "'module_name' => 'Accounts',\n //Optional. Returns vardefs for the specified fields. An empty array will return all fields.\n 'fields' => array(\n 'id',\n 'name',\n ),\n );\n $get_module_fields_result = call(\"get_module_fields\", $get_module_fields_parameters, $url);\n echo \"
\";\n    print_r($get_module_fields_result);\n    echo \"
\";\n?>\nResult\nstdClass Object\n(\n [module_name] => Accounts\n [table_name] => accounts\n [module_fields] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [type] => id\n [group] =>", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Fields_From_a_Module/index.html"} {"id": "7317680883b0-5", "text": "[type] => id\n [group] => \n [id_name] => \n [label] => ID\n [required] => 1\n [options] => Array\n (\n )\n [related_module] => \n [calculated] => \n [len] => \n )\n [name] => stdClass Object\n (\n [name] => name\n [type] => name\n [group] => \n [id_name] => \n [label] => Name:\n [required] => 1\n [options] => Array\n (\n )\n [related_module] => \n [calculated] => \n [len] => 150\n )\n )\n [link_fields] => Array\n (\n )\n)\n\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Fields_From_a_Module/index.html"} {"id": "7317680883b0-6", "text": "[link_fields] => Array\n (\n )\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_a_List_of_Fields_From_a_Module/index.html"} {"id": "2c9f22812545-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nCreating Notes with Attachments\nOverview\nA PHP example demonstrating how to create a note using set_entry and add an attachment with the set_note_attachment method using cURL and the v4_1 REST API.\nExample\n $method,\n \"input_type\" => \"JSON\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Notes_with_Attachments/index.html"} {"id": "2c9f22812545-2", "text": "\"method\" => $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ---------------------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Notes_with_Attachments/index.html"} {"id": "2c9f22812545-3", "text": "\"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //create note ----------------------------------------------- \n $set_entry_parameters = array(\n //session id\n \"session\" => $session_id,\n //The name of the module\n \"module_name\" => \"Notes\",\n //Record attributes\n \"name_value_list\" => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Notes_with_Attachments/index.html"} {"id": "2c9f22812545-4", "text": "//Record attributes\n \"name_value_list\" => array(\n //to update a record, you will nee to pass in a record id as commented below\n //array(\"name\" => \"id\", \"value\" => \"9b170af9-3080-e22b-fbc1-4fea74def88f\"),\n array(\"name\" => \"name\", \"value\" => \"Example Note\"),\n ),\n );\n $set_entry_result = call(\"set_entry\", $set_entry_parameters, $url);\n echo \"
\";\n    print_r($set_entry_result);\n    echo \"
\";\n $note_id = $set_entry_result->id;\n //create note attachment --------------------------------------", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Notes_with_Attachments/index.html"} {"id": "2c9f22812545-5", "text": "//create note attachment -------------------------------------- \n $contents = file_get_contents (\"/path/to/example_file.php\");\n $set_note_attachment_parameters = array(\n //session id\n \"session\" => $session_id,\n //The attachment details\n \"note\" => array(\n //The ID of the note containing the attachment.\n 'id' => $note_id,\n //The file name of the attachment.\n 'filename' => 'example_file.php',\n //The binary contents of the file.\n 'file' => base64_encode($contents),\n ),\n );\n $set_note_attachment_result = call(\"set_note_attachment\", $set_note_attachment_parameters, $url);\n echo \"
\";", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Notes_with_Attachments/index.html"}
{"id": "2c9f22812545-6", "text": "echo \"
\";\n    print_r($set_note_attachment_result);\n    echo \"
\";\n?>\nResult\n//set_entry result\nstdClass Object\n(\n [id] => 72508938-db19-3b5c-b7a8-50abc7ec3fdb\n [entry_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Example Note\n )\n )\n)\n//set_note_attachment result\nstdClass Object\n(\n [id] => 72508938-db19-3b5c-b7a8-50abc7ec3fdb\n)\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_Notes_with_Attachments/index.html"} {"id": "72707cba413f-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRetrieving Multiple Records by ID\nOverview\nA PHP example demonstrating how to retrieve multiple records from the accounts module with the get_entries method using cURL and the v4_1 REST API.\nThis example will only retrieve 2 records and return the following fields: 'name', 'billing_address_state' and 'billing_address_country'.\nExample\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login --------------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Multiple_Records_by_ID/index.html"} {"id": "72707cba413f-3", "text": "$login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //retrieve records ----------------------------------- \n $get_entries_parameters = array(\n //session id\n 'session' => $session_id,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Multiple_Records_by_ID/index.html"} {"id": "72707cba413f-4", "text": "//session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => 'Accounts',\n //An array of SugarBean IDs\n 'ids' => array(\n '20328809-9d0a-56fc-0e7c-4f7cb6eb1c83',\n '328b22a6-d784-66d9-0295-4f7cb59e8cbb',\n ),\n //Optional. The list of fields to be returned in the results\n 'select_fields' => array(\n 'name',\n 'billing_address_state',\n 'billing_address_country'\n ),\n //A list of link names and the fields to be returned for each link name", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Multiple_Records_by_ID/index.html"} {"id": "72707cba413f-5", "text": "//A list of link names and the fields to be returned for each link name\n 'link_name_to_fields_array' => array(\n ),\n );\n $get_entries_result = call(\"get_entries\", $get_entries_parameters, $url);\n echo \"
\";\n    print_r($get_entries_result);\n    echo \"
\";\n?>\nResult\nstdClass Object\n(\n [entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 20328809-9d0a-56fc-0e7c-4f7cb6eb1c83\n [module_name] => Accounts\n [name_value_list] => stdClass Object\n (\n [name] => stdClass Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Multiple_Records_by_ID/index.html"} {"id": "72707cba413f-6", "text": "(\n [name] => stdClass Object\n (\n [name] => name\n [value] => Jungle Systems Inc\n )\n [billing_address_state] => stdClass Object\n (\n [name] => billing_address_state\n [value] => NY\n )\n [billing_address_country] => stdClass Object\n (\n [name] => billing_address_country\n [value] => USA\n )\n )\n )\n [1] => stdClass Object\n (\n [id] => 328b22a6-d784-66d9-0295-4f7cb59e8cbb\n [module_name] => Accounts\n [name_value_list] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Multiple_Records_by_ID/index.html"} {"id": "72707cba413f-7", "text": "[name_value_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Riviera Hotels\n )\n [billing_address_state] => stdClass Object\n (\n [name] => billing_address_state\n [value] => CA\n )\n [billing_address_country] => stdClass Object\n (\n [name] => billing_address_country\n [value] => USA\n )\n )\n )\n )\n [relationship_list] => Array\n (\n )\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Retrieving_Multiple_Records_by_ID/index.html"} {"id": "e2df612cb8c8-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nRelating Quotes and Products\nOverview\nA PHP example demonstrating how to create and relate Products to Quotes using cURL and the v4_1 REST API.\nExample\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-2", "text": "\"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ---------------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-3", "text": "),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //create quote ---------------------------------------------- \n $createQuoteParams = array(\n 'session' => $session_id,\n 'module_name' => 'Quotes',\n 'name_value_list' => array(\n array(\n 'name' => 'name',\n 'value' => 'Widget Quote'\n ),\n array(\n 'name' => 'team_count',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-4", "text": "),\n array(\n 'name' => 'team_count',\n 'value' => ''\n ),\n array(\n 'name' => 'team_name',\n 'value' => ''\n ),\n array(\n 'name' => 'date_quote_expected_closed',\n 'value' => date('Y-m-d', mktime(0, 0, 0, date('m') , date('d')+7, date('Y')))\n ),\n array(\n 'name' => 'quote_stage',\n 'value' => 'Negotiation'\n ),\n array(\n 'name' => 'quote_num',\n 'value' => ''\n ),\n array(\n 'name' => 'quote_type',\n 'value' => 'Quotes'\n ),\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-5", "text": "'value' => 'Quotes'\n ),\n array(\n 'name' => 'subtotal',\n 'value' => '1230.23'\n ),\n array(\n 'name' => 'subtotal_usdollar',\n 'value' => '1230.23'\n ),\n ),\n );\n $createQuoteResult = call('set_entry', $createQuoteParams, $url);\n echo \"Create Quote Result
\";\n echo \"
\";\n    print_r($createQuoteResult);\n    echo \"
\";\n //create product ---------------------------------------------- \n $createProductParams = array(\n 'session' => $session_id,\n 'module_name' => 'Products',\n 'name_value_list' => array(\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-6", "text": "'name_value_list' => array(\n array(\n 'name' => 'name',\n 'value' => 'Widget'\n ),\n array(\n 'name' => 'quote_id',\n 'value' => $createQuoteResult->id\n ),\n array(\n 'name' => 'status',\n 'value' => 'Quotes'\n )\n )\n );\n $createProductResult = call('set_entry', $createProductParams, $url);\n echo \"Create Product Result
\";\n echo \"
\";\n    print_r($createProductResult);\n    echo \"
\";\n //create product-bundle ---------------------------------------------- \n $createProductBundleParams = array(\n \"session\" => $session_id,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-7", "text": "\"session\" => $session_id,\n \"module_name\" => \"ProductBundles\",\n \"name_value_list\" => array(\n array(\n 'name' => 'name',\n 'value' => 'Rest SugarOnline Order'),\n array(\n 'name' => 'bundle_stage',\n 'value' => 'Draft'\n ),\n array(\n 'name' => 'tax',\n 'value' => '0.00'\n ),\n array(\n 'name' => 'total',\n 'value' => '0.00'\n ),\n array(\n 'name' => 'subtotal',\n 'value' => '0.00'\n ),\n array(\n 'name' => 'shippint',\n 'value' => '0.00'", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-8", "text": "'value' => '0.00'\n ),\n array(\n 'name' => 'currency_id',\n 'value' => '-99'\n ),\n )\n );\n $createProductBundleResult = call('set_entry', $createProductBundleParams, $url);\n echo \"Create ProductBundles Result
\";\n echo \"
\";\n    print_r($createProductBundleResult);\n    echo \"
\";\n //relate product to product-bundle ---------------------------------------- \n $relationshipProductBundleProductsParams = array(\n 'sesssion' => $session_id,\n 'module_name' => 'ProductBundles',\n 'module_id' => $createProductBundleResult->id,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-9", "text": "'module_id' => $createProductBundleResult->id,\n 'link_field_name' => 'products',\n 'related_ids' => array(\n $createProductResult->id\n ),\n );\n // set the product bundles products relationship\n $relationshipProductBundleProductResult = call('set_relationship', $relationshipProductBundleProductsParams, $url);\n echo \"Create ProductBundleProduct Relationship Result
\";\n echo \"
\";\n    print_r($relationshipProductBundleProductResult);\n    echo \"
\";\n //relate product-bundle to quote ---------------------------------------- \n $relationshipProductBundleQuoteParams = array(\n 'sesssion' => $session_id,\n 'module_name' => 'Quotes',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-10", "text": "'module_name' => 'Quotes',\n 'module_id' => $createQuoteResult->id,\n 'link_field_name' => 'product_bundles',\n 'related_ids' => array(\n $createProductBundleResult->id\n ),\n 'name_value_list' => array()\n );\n // set the product bundles quotes relationship\n $relationshipProductBundleQuoteResult = call('set_relationship', $relationshipProductBundleQuoteParams, $url);\n echo \"Create ProductBundleQuote Relationship Result
\";\n echo \"
\";\n    print_r($relationshipProductBundleQuoteResult);\n    echo \"
\";\nResult\n//Create Quote Result\nstdClass Object\n(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-11", "text": "Result\n//Create Quote Result\nstdClass Object\n(\n [id] => 2e0cd18b-21da-50f0-10f6-517e835a1e09\n [entry_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Widget Quote\n )\n [team_count] => stdClass Object\n (\n [name] => team_count\n [value] =>\n )\n [team_name] => stdClass Object\n (\n [name] => team_name\n [value] =>\n )\n [date_quote_expected_closed] => stdClass Object\n (\n [name] => date_quote_expected_closed\n [value] => 2013-05-06\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-12", "text": "[value] => 2013-05-06\n )\n [quote_stage] => stdClass Object\n (\n [name] => quote_stage\n [value] => Negotiation\n )\n [quote_num] => stdClass Object\n (\n [name] => quote_num\n [value] =>\n )\n [quote_type] => stdClass Object\n (\n [name] => quote_type\n [value] => Quotes\n )\n [subtotal] => stdClass Object\n (\n [name] => subtotal\n [value] => 1230.23\n )\n [subtotal_usdollar] => stdClass Object\n (\n [name] => subtotal_usdollar\n [value] => 1230.23\n )\n )\n)\n//Create Product Result", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-13", "text": ")\n )\n)\n//Create Product Result\nstdClass Object\n(\n [id] => 6c40f344-a269-d4d0-9929-517e83884fb2\n [entry_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Widget\n )\n [quote_id] => stdClass Object\n (\n [name] => quote_id\n [value] => 2e0cd18b-21da-50f0-10f6-517e835a1e09\n )\n [status] => stdClass Object\n (\n [name] => status\n [value] => Quotes\n )\n )\n)\n//Create ProductBundles Result\nstdClass Object\n(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-14", "text": ")\n)\n//Create ProductBundles Result\nstdClass Object\n(\n [id] => a8a4e449-7e72-dea5-9495-517e830a7353\n [entry_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Rest SugarOnline Order\n )\n [bundle_stage] => stdClass Object\n (\n [name] => bundle_stage\n [value] => Draft\n )\n [tax] => stdClass Object\n (\n [name] => tax\n [value] => 0\n )\n [total] => stdClass Object\n (\n [name] => total\n [value] => 0\n )\n [subtotal] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "e2df612cb8c8-15", "text": ")\n [subtotal] => stdClass Object\n (\n [name] => subtotal\n [value] => 0\n )\n [currency_id] => stdClass Object\n (\n [name] => currency_id\n [value] => -99\n )\n )\n)\n//Create ProductBundleProduct Relationship Result\nstdClass Object\n(\n [created] => 1\n [failed] => 0\n [deleted] => 0\n)\n//Create ProductBundleQuote Relationship Result\nstdClass Object\n(\n [created] => 1\n [failed] => 0\n [deleted] => 0\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Relating_Quotes_and_Products/index.html"} {"id": "168046b1ed3f-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nCreating or Updating a Record\nOverview\nA PHP example demonstrating how to create or update an Account with the set_entry method using cURL and the v4_1 REST API.\nExample\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_a_Record/index.html"} {"id": "168046b1ed3f-2", "text": "\"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login --------------------------------------------- \n \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_a_Record/index.html"} {"id": "168046b1ed3f-3", "text": "),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //create account ------------------------------------- \n $set_entry_parameters = array(\n //session id\n \"session\" => $session_id,\n //The name of the module from which to retrieve records.\n \"module_name\" => \"Accounts\",\n //Record attributes\n \"name_value_list\" => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_a_Record/index.html"} {"id": "168046b1ed3f-4", "text": "//Record attributes\n \"name_value_list\" => array(\n //to update a record, you will nee to pass in a record id as commented below\n //array(\"name\" => \"id\", \"value\" => \"9b170af9-3080-e22b-fbc1-4fea74def88f\"),\n array(\"name\" => \"name\", \"value\" => \"Test Account\"),\n ),\n );\n $set_entry_result = call(\"set_entry\", $set_entry_parameters, $url);\n echo \"
\";\n    print_r($set_entry_result);\n    echo \"
\";\n?>\nResult\nstdClass Object\n(\n [id] => 9b170af9-3080-e22b-fbc1-4fea74def88f", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_a_Record/index.html"} {"id": "168046b1ed3f-5", "text": "[entry_list] => stdClass Object\n (\n [name] => stdClass Object\n (\n [name] => name\n [value] => Test Account\n )\n )\n)\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_a_Record/index.html"} {"id": "1598546d2abf-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nCreating or Updating Multiple Records\nOverview\nA PHP example demonstrating how to create or update multiple contacts with the set_entries method using cURL and the v4_1 REST API.\nExample\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Multiple_Records/index.html"} {"id": "1598546d2abf-2", "text": "\"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login -------------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Multiple_Records/index.html"} {"id": "1598546d2abf-3", "text": "),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //create contacts ------------------------------------ \n $set_entries_parameters = array(\n //session id\n \"session\" => $session_id,\n //The name of the module from which to retrieve records.\n \"module_name\" => \"Contacts\",\n //Record attributes\n \"name_value_list\" => array(\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Multiple_Records/index.html"} {"id": "1598546d2abf-4", "text": "\"name_value_list\" => array(\n array(\n //to update a record, you will nee to pass in a record id as commented below\n //array(\"name\" => \"id\", \"value\" => \"912e58c0-73e9-9cb6-c84e-4ff34d62620e\"),\n array(\"name\" => \"first_name\", \"value\" => \"John\"),\n array(\"name\" => \"last_name\", \"value\" => \"Smith\"),\n ),\n array(\n //to update a record, you will nee to pass in a record id as commented below\n //array(\"name\" => \"id\", \"value\" => \"99d6ddfd-7d52-d45b-eba8-4ff34d684964\"),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Multiple_Records/index.html"} {"id": "1598546d2abf-5", "text": "array(\"name\" => \"first_name\", \"value\" => \"Jane\"),\n array(\"name\" => \"last_name\", \"value\" => \"Doe\"),\n ),\n ),\n );\n $set_entries_result = call(\"set_entries\", $set_entries_parameters, $url);\n echo \"
\";\n    print_r($set_entries_result);\n    echo \"
\";\n?>\nResult\nstdClass Object\n(\n [ids] => Array\n (\n [0] => 912e58c0-73e9-9cb6-c84e-4ff34d62620e\n [1] => 99d6ddfd-7d52-d45b-eba8-4ff34d684964\n )\n)\n\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Multiple_Records/index.html"} {"id": "1598546d2abf-6", "text": ")\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Creating_or_Updating_Multiple_Records/index.html"} {"id": "3bc6ca952158-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nSearching Records\nOverview\nA PHP example demonstrating how to search the accounts module with the search_by_module method using cURL and the v4_1 REST API.\nThis script will return two results, sorted by the id field, and return the value of the id, name, account_type, phone_office, and assigned_user_name fields.\nExample\n $method,\n \"input_type\" => \"JSON\",\n \"response_type\" => \"JSON\",\n \"rest_data\" => $jsonEncodedData\n );\n curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post);\n $result = curl_exec($curl_request);\n curl_close($curl_request);\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n $response = json_decode($result[1]);\n ob_end_flush();\n return $response;\n }\n //login ----------------------------------------- \n $login_parameters = array(\n \"user_auth\" => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Searching_Records/index.html"} {"id": "3bc6ca952158-3", "text": "$login_parameters = array(\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n \"version\" => \"1\"\n ),\n \"application_name\" => \"RestTest\",\n \"name_value_list\" => array(),\n );\n $login_result = call(\"login\", $login_parameters, $url);\n /*\n echo \"
\";\n    print_r($login_result);\n    echo \"
\";\n */\n //get session id\n $session_id = $login_result->id;\n //search --------------------------------------- \n $search_by_module_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The string to search for.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Searching_Records/index.html"} {"id": "3bc6ca952158-4", "text": "\"session\" => $session_id,\n //The string to search for.\n 'search_string' => 'Customer',\n //The list of modules to query.\n 'modules' => array(\n 'Accounts',\n ),\n //The record offset from which to start.\n 'offset' => 0,\n //The maximum number of records to return.\n 'max_results' => 2,\n //Filters records by the assigned user ID.\n //Leave this empty if no filter should be applied.\n 'id' => '',\n //An array of fields to return.\n //If empty the default return fields will be from the active listviewdefs.\n 'select_fields' => array(\n 'id',\n 'name',\n 'account_type',\n 'phone_office',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Searching_Records/index.html"} {"id": "3bc6ca952158-5", "text": "'name',\n 'account_type',\n 'phone_office',\n 'assigned_user_name',\n ),\n //If the search is to only search modules participating in the unified search.\n //Unified search is the SugarCRM Global Search alternative to Full-Text Search.\n 'unified_search_only' => false,\n //If only records marked as favorites should be returned.\n 'favorites' => false\n );\n $search_by_module_result = call('search_by_module', $search_by_module_parameters, $url);\n echo '
';\n    print_r($search_by_module_result);\n    echo '
';\n?>\nResult\nstdClass Object\n(\n [result_count] => 2\n [total_count] => 200", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Searching_Records/index.html"} {"id": "3bc6ca952158-6", "text": "(\n [result_count] => 2\n [total_count] => 200\n [next_offset] => 2\n [entry_list] => Array\n (\n [0] => stdClass Object\n (\n [id] => 18124607-69d1-b158-47ff-4f7cb69344f7\n [module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 18124607-69d1-b158-47ff-4f7cb69344f7\n )\n [name] => stdClass Object\n (\n [name] => name\n [value] => Bernie Worthey\n )", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Searching_Records/index.html"} {"id": "3bc6ca952158-7", "text": "[value] => Bernie Worthey\n )\n [title] => stdClass Object\n (\n [name] => title\n [value] => Senior Product Manager\n )\n )\n )\n [1] => stdClass Object\n (\n [id] => 1cdfddc1-2759-b007-8713-4f7cb64c2e9c\n [module_name] => Leads\n [name_value_list] => stdClass Object\n (\n [id] => stdClass Object\n (\n [name] => id\n [value] => 1cdfddc1-2759-b007-8713-4f7cb64c2e9c\n )\n [name] => stdClass Object\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Searching_Records/index.html"} {"id": "3bc6ca952158-8", "text": ")\n [name] => stdClass Object\n (\n [name] => name\n [value] => Bobbie Kohlmeier\n )\n [title] => stdClass Object\n (\n [name] => title\n [value] => Director Operations\n )\n )\n )\n )\n [relationship_list] => Array\n (\n )\n)\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/Legacy_API/REST/PHP/Searching_Records/index.html"} {"id": "496f6ad357f5-0", "text": "REST API\nExamples of integrating with Sugar REST APIs.\nTopicsBashBash cURL examples of integrating with the REST v11 API.PHPPHP Examples interacting with the v11 REST API.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/index.html"} {"id": "921b9b40d5e7-0", "text": "Bash\nBash cURL\u00c2\u00a0examples of integrating with\u00c2\u00a0the REST v11 API.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/index.html"} {"id": "921b9b40d5e7-1", "text": "TopicsHow to Export a List of RecordsAn example in bash script demonstrating how to export a list of records using the v11 //export/:record_list_id REST GET endpoint.How to Filter a List of RecordsAn example in bash script demonstrating how to filter records using the v11 //filter REST POST endpoints.How to Favorite a RecordAn example in bash script demonstrating how to favorite a record using the v11 /:record/favorite REST PUT API endpoint.How to Manipulate File AttachmentsAn example in bash script demonstrating how to attach a file to a record using the v11 /:record/file/:field REST POST API endpoint, then retrieve it with the GET endpoint.How to Fetch Related RecordsAn example in bash script demonstrating how to fetch related records using the v11 //:record/link/:link REST GET endpoints.How to", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/index.html"} {"id": "921b9b40d5e7-2", "text": "//:record/link/:link REST GET endpoints.How to Manipulate Records (CRUD)The following page will provide examples in bash script demonstrating how to use the CRUD (Create, Read, Update, Delete) endpoints in the REST v11 API.How to Follow a RecordAn example in bash script demonstrating how to follow a record using the v11 //:record/subscribe REST POST endpoint.How to Unfavorite a RecordAn example in bash script demonstrating how to unfavorite a record using the v11 //:record/unfavorite REST PUT endpoint.How to Unfollow a RecordAn example in bash script demonstrating how to unfollow a record using the v11 //:record/unsubscribe REST DELETE endpoint.How to Get the Most Active UsersAn example in bash script demonstrating how to fetch the most active users for meetings, calls, inbound emails, and", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/index.html"} {"id": "921b9b40d5e7-3", "text": "bash script demonstrating how to fetch the most active users for meetings, calls, inbound emails, and outbound emails using the v11 /mostactiveusers REST GET endpoint.How to Authenticate and Log OutAn example in bash script on how to authenticate and logout of the v11 REST API using the /oauth2/token and /oauth2/logout POST endpoints.How to PingAn example in bash script demonstrating how to ping using the REST v11 /ping GET endpoint.How to Fetch the Current Users TimeAn example in bash script demonstrating how to fetch the current users time with the v11 /ping/whattimeisit REST GET endpoint.How to Fetch Recently Viewed RecordsAn example in bash script demonstrating how to retrieve recently viewed records using the v11 /recent REST GET endpoint.How to Use the Global SearchAn example in bash script demonstrating how to globally search for records using the REST v11 /search GET endpoint.How to", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/index.html"} {"id": "921b9b40d5e7-4", "text": "script demonstrating how to globally search for records using the REST v11 /search GET endpoint.How to Check for Duplicate RecordsAn example in bash script demonstrating how to check for duplicate records using the v11 //duplicateCheck REST POST endpoint.How to Manipulate QuotesA Bash example demonstrating how to manipulate Quotes and related record data such as ProductBundles, Products, and ProductBundleNotes.How to Manipulate Tags (CRUD)The following page will provide examples of bash script demonstrating how to use the CRUD (Create, Read, Update, Delete) endpoints for tags in the REST v11 API.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/index.html"} {"id": "921b9b40d5e7-5", "text": "Last modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/index.html"} {"id": "d0af5de49333-0", "text": "How to Fetch Recently Viewed Records\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to retrieve recently viewed records\u00c2\u00a0using the v11\u00c2\u00a0/recent REST GET endpoint.\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nRecently Viewed Records", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-1", "text": "Recently Viewed Records\nNext, we will need to identify the records we want to see using the /recent endpoint. In this case, we are going to request Accounts, Contacts and Leads.\ncurl -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/recent?module_list=Accounts%2CContacts%2CLeads\nMore information on the search API\u00c2\u00a0can be found in the /recent documentation.\nResponse\nThe data received from the server is shown below:\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f3951f4d-2d17-7939-c5ec-56fedbb9e92f\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-2", "text": "\"name\":\"Talia Knupp\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-06T10:33:24-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-3", "text": "{\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-4", "text": "\"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Talia\",\n \"last_name\":\"Knupp\",\n \"full_name\":\"Talia Knupp\",\n \"title\":\"Senior Product Manager\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(963) 741-3689\",\n \"phone_mobile\":\"(600) 831-9872\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-5", "text": "\"phone_mobile\":\"(600) 831-9872\",\n \"phone_work\":\"(680) 991-2837\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Sunnyvale\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"99452\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-6", "text": "\"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"converted\":false,\n \"refered_by\":\"\",\n \"lead_source\":\"Word of mouth\",\n \"lead_source_description\":\"\",\n \"status\":\"In Process\",\n \"status_description\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"dnb_principal_id\":\"\",\n \"account_name\":\"First National S\\/B\",\n \"account_description\":\"\",\n \"contact_id\":\"\",\n \"contact_name\":\"\",\n \"account_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-7", "text": "\"contact_name\":\"\",\n \"account_id\":\"\",\n \"opportunity_id\":\"\",\n \"opportunity_name\":\"\",\n \"opportunity_amount\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"webtolead_email1\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-8", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email2\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-9", "text": "\"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email_opt_out\":\"\",\n \"webtolead_invalid_email\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"\",\n \"portal_app\":\"\",\n \"website\":\"\",\n \"preferred_language\":\"\",\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"fruits_c\":\"Apples\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Leads\",\n \"_last_viewed_date\":\"2016-04-06T10:33:24-05:00\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-10", "text": "},\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"name\":\"MTM Investment Bank F S B\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-06T10:16:52-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-11", "text": "\"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-12", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"the60@example.us\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"the60@example.us\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"a\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-13", "text": "\"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"67321 West Siam St.\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"Alabama\",\n \"billing_address_state\":\"NY\",\n \"billing_address_postalcode\":\"52272\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(012) 704-8075\",\n \"phone_alternate\":\"\",\n \"website\":\"www.salesqa.it\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-14", "text": "\"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"67321 West Siam St.\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"Alabama\",\n \"shipping_address_state\":\"NY\",\n \"shipping_address_postalcode\":\"52272\",\n \"shipping_address_country\":\"USA\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"duns_num\":\"\",\n \"parent_name\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-15", "text": "\"fields\":{\n }\n },\n \"_module\":\"Accounts\",\n \"_last_viewed_date\":\"2016-04-06T10:16:52-05:00\"\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f31b2f00-468c-3d35-1e88-56fedbd3921d\",\n \"name\":\"Kaycee Gibney\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-06T10:16:24-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-16", "text": "\"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_jim_id\",\n \"assigned_user_name\":\"Jim Brennan\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-17", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"opt_out\":true,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Kaycee\",\n \"last_name\":\"Gibney\",\n \"full_name\":\"Kaycee Gibney\",\n \"title\":\"Mgr Operations\",\n \"facebook\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-18", "text": "\"title\":\"Mgr Operations\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(599) 165-2396\",\n \"phone_mobile\":\"(215) 591-9574\",\n \"phone_work\":\"(771) 945-3648\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"321 University Ave.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Santa Monica\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"96154\",\n \"primary_address_country\":\"USA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-19", "text": "\"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Existing Customer\",\n \"account_name\":\"Tracker Com LP\",\n \"account_id\":\"72ad6f00-e345-1cab-b370-56fedbd23deb\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-20", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"KayceeGibney33\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "d0af5de49333-21", "text": "\"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\",\n \"_last_viewed_date\":\"2016-04-06T10:16:24-05:00\"\n }\n ]\n}\nThere are 3 records shown above, the _module field tells you if the record is from Accounts, Contacts or Leads.\u00c2\u00a0 The _last_viewed_date tells you when the record was last seen.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "5f59290055f3-0", "text": "How to Manipulate Quotes\nOverview\nA Bash example\u00c2\u00a0demonstrating how to manipulate Quotes and related record data such as ProductBundles, Products, and ProductBundleNotes.\u00c2\u00a0\nManipulating Quotes\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nCreating a Quote\nOnce authenticated, we can submit a Quote record using the endpoint. Since a\u00c2\u00a0Quote record is a sum of its parts (i.e. ProductBundles and Products) you can submit the related ProductBundles and Products in the same request payload using the relationship Links and the \"create\" property.\ncurl -X POST -H OAuth-Token: -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{\n \"name\": \"Test Quote\",\n \"quote_stage\": \"Draft\",\n \"date_quote_expected_closed\": \"2017-06-12T11:51:57-0400\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-2", "text": "\"product_bundles\": {\n \"create\": [\n {\n \"name\": \"Product Bundle 1\",\n \"bundle_stage\": \"Draft\",\n \"currency_id\": \":-99\",\n \"base_rate\": \"1.0\",\n \"shipping\": \"0.00\",\n \"products\": {\n \"create\": [\n {\n \"tax_class\": \"Taxable\",\n \"quantity\": 1000,\n \"name\": \"Test Product 1\",\n \"description\": \"My Test Product\",\n \"mft_part_num\": \"mft100012021\",\n \"cost_price\": \"100.00\",\n \"list_price\": \"200.00\",\n \"discount_price\": \"175.00\",\n \"discount_amount\": \"0.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-3", "text": "\"discount_amount\": \"0.00\",\n \"discount_select\": 0,\n \"product_template_id\": \"\",\n \"type_id\": \"\",\n \"status\": \"Quotes\"\n }\n ]\n },\n \"product_bundle_notes\": {\n \"create\": [\n {\n \"description\": \"Free shipping\",\n \"position\": 1\n }\n ]\n }\n },\n {\n \"name\": \"Product Bundle 2\",\n \"bundle_stage\": \"Draft\",\n \"currency_id\": \":-99\",\n \"base_rate\": \"1.0\",\n \"shipping\": \"25.00\",\n \"products\": {\n \"create\": [\n {\n \"quantity\": 1000,\n \"name\": \"Test Product 2\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-4", "text": "\"quantity\": 1000,\n \"name\": \"Test Product 2\",\n \"description\": \"My Other Product\",\n \"mft_part_num\": \"mft100012234\",\n \"cost_price\": \"150.00\",\n \"list_price\": \"300.00\",\n \"discount_price\": \"275.00\",\n \"discount_amount\": \"0.00\",\n \"discount_select\": 0,\n \"product_template_id\": \"\",\n \"type_id\": \"\",\n \"status\": \"Quotes\"\n },\n {\n \"quantity\": 500,\n \"name\": \"Test Product 3\",\n \"description\": \"My Other Other Product\",\n \"mft_part_num\": \"mft100012123\",\n \"cost_price\": \"10.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-5", "text": "\"cost_price\": \"10.00\",\n \"list_price\": \"500.00\",\n \"discount_price\": \"400.00\",\n \"discount_amount\": \"0.00\",\n \"discount_select\": 0,\n \"product_template_id\": \"\",\n \"type_id\": \"\",\n \"status\": \"Quotes\"\n }\n ]\n }\n }\n ]\n }\n}' http:///rest/v11/Quotes\nResponse\nThe data received from the server is shown below:\n{\n \"id\": \"ee1e1ae8-372a-11e7-8bf4-3c15c2c94fb0\",\n \"name\": \"Test Quote\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-6", "text": "\"name\": \"Test Quote\",\n \"date_entered\": \"2017-05-12T11:51:57-04:00\",\n \"date_modified\": \"2017-05-12T11:51:57-04:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-7", "text": "}\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-8", "text": "}\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"shipper_id\": \"\",\n \"shipper_name\": \"\",\n \"shippers\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"taxrate_id\": \"\",\n \"taxrate_name\": \"\",\n \"taxrates\": {\n \"name\": \"\",\n \"id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-9", "text": "\"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"taxrate_value\": \"0.000000\",\n \"show_line_nums\": true,\n \"quote_type\": \"Quotes\",\n \"date_quote_expected_closed\": \"2017-06-12\",\n \"original_po_date\": \"\",\n \"payment_terms\": \"\",\n \"date_quote_closed\": \"\",\n \"date_order_shipped\": \"\",\n \"order_stage\": \"\",\n \"quote_stage\": \"Draft\",\n \"purchase_order_num\": \"\",\n \"quote_num\": 2,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-10", "text": "\"quote_num\": 2,\n \"subtotal\": \"650000.000000\",\n \"subtotal_usdollar\": \"650000.000000\",\n \"shipping\": \"0.000000\",\n \"shipping_usdollar\": \"0.000000\",\n \"discount\": \"\",\n \"deal_tot\": \"0.00\",\n \"deal_tot_discount_percentage\": \"0.00\",\n \"deal_tot_usdollar\": \"0.00\",\n \"new_sub\": \"650000.000000\",\n \"new_sub_usdollar\": \"650000.000000\",\n \"taxable_subtotal\": \"650000.000000\",\n \"tax\": \"0.000000\",\n \"tax_usdollar\": \"0.000000\",\n \"total\": \"650000.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-11", "text": "\"total\": \"650000.000000\",\n \"total_usdollar\": \"650000.000000\",\n \"billing_address_street\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"system_id\": 1,\n \"shipping_account_name\": \"\",\n \"shipping_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-12", "text": "\"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"shipping_account_id\": \"\",\n \"shipping_contact_name\": \"\",\n \"shipping_contacts\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },\n \"last_name\": \"\"\n },\n \"shipping_contact_id\": \"\",\n \"account_name\": \"\",\n \"billing_accounts\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-13", "text": "\"account_name\": \"\",\n \"billing_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"account_id\": \"\",\n \"billing_account_name\": \"\",\n \"billing_account_id\": \"\",\n \"billing_contact_name\": \"\",\n \"billing_contacts\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-14", "text": "},\n \"last_name\": \"\"\n },\n \"billing_contact_id\": \"\",\n \"opportunity_name\": \"\",\n \"opportunities\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"opportunity_id\": \"\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"tag\": [\n ],\n \"locked_fields\": [\n ],\n \"assigned_user_id\": \"\",\n \"assigned_user_name\": \"\",\n \"assigned_user_link\": {\n \"full_name\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-15", "text": "\"assigned_user_link\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-16", "text": "}\n },\n \"team_name\": [\n {\n \"id\": \"a0512788-3680-11e7-b42f-3c15c2c94fb0\",\n \"name\": \"Administrator\",\n \"name_2\": \"\",\n \"primary\": false,\n \"selected\": false\n },\n {\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }\n ],\n \"currency_id\": \"-99\",\n \"base_rate\": \"1.000000\",\n \"currency_name\": \"\",\n \"currencies\": {\n \"name\": \"\",\n \"id\": \"-99\",\n \"_acl\": {\n \"fields\": [\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-17", "text": "\"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },\n \"symbol\": \"\"\n },\n \"currency_symbol\": \"\",\n \"_acl\": {\n \"fields\": {\n }\n },\n \"_module\": \"Quotes\"\n}\nYou might notice that the Response does not contain the related data. To view the related data use the //link/ - GET Endpoint.\nModifying the Quote's Product Bundles\nOnce the quote is created, you might need to add or remove Product Bundles from the Quote. This can be done using the // - PUT\u00c2\u00a0endpoint.\n//Create a new ProductBundle", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-18", "text": "//Create a new ProductBundle\ncurl -X PUT -H OAuth-Token: -H Cache-Control:no-cache -d '{\n \"product_bundles\": {\n \"delete\": [\n \"\"\n ],\n \"add\": [\n \"\"\n ]\n }\n}' http:///rest/v11/Quotes/\n\u00c2\u00a0The above script removes a previously related Product Bundle from the Quote and adds a different already created Product Bundle to the Quote\nResponse Payload\nThe response payload will match the standard // - PUT Endpoint Response which is the entire values of the updated record. The previous Response for Creating the quote is the same as shown above.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "5f59290055f3-19", "text": "Last modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Quotes/index.html"} {"id": "f266afdfe155-0", "text": "How to Ping\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to ping\u00c2\u00a0using the REST v11\u00c2\u00a0/ping GET\u00c2\u00a0endpoint.\nPinging\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nPinging", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Ping/index.html"} {"id": "f266afdfe155-1", "text": "Pinging\nOnce we have authenticated, we can now ping the system as shown below.\ncurl -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/ping\nMore information on pinging\u00c2\u00a0can be found in the /ping\u00c2\u00a0documentation.\nResponse\n\"pong\"\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Ping/index.html"} {"id": "8b5ae57c9392-0", "text": "How to Check for Duplicate Records\nOverview\nAn example\u00c2\u00a0in bash script demonstrating\u00c2\u00a0how to check for duplicate records using the v11 //duplicateCheck\u00c2\u00a0REST POST\u00c2\u00a0endpoint.\nDuplicate Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nRetrieving Duplicates\nNext, we will need to identify the records that are duplicates using the //duplicateCheck\u00c2\u00a0endpoint.\ncurl -s -X POST -H OAuth-Token:{access_token} -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"name\":\"Test Record\"\n}' https://{site_url}/rest/v11/Accounts/duplicateCheck\nMore information on the duplicate check\u00c2\u00a0API\u00c2\u00a0can be found in the //duplicateCheck\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\n{\n \"next_offset\": -1,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-2", "text": "{\n \"next_offset\": -1,\n \"records\": [{\n \"id\": \"7f6ea7be-60d6-11e6-8885-a0999b033b33\",\n \"name\": \"Test Record\",\n \"date_entered\": \"2016-08-12T14:48:25-07:00\",\n \"date_modified\": \"2016-08-12T14:48:25-07:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-3", "text": "\"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"Test Data 1\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-4", "text": "\"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-5", "text": "\"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-6", "text": "\"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-7", "text": "\"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-8", "text": "},\n \"team_name\": [{\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [],\n \"email1\": \"\",\n \"email2\": \"\",\n \"invalid_email\": \"\",\n \"email_opt_out\": \"\",\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\",\n \"duplicate_check_rank\": 8\n }, {\n \"id\": \"868b4f16-60d6-11e6-bdfc-a0999b033b33\",\n \"name\": \"Test Record\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-9", "text": "\"name\": \"Test Record\",\n \"date_entered\": \"2016-08-12T14:48:37-07:00\",\n \"date_modified\": \"2016-08-12T14:48:37-07:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-10", "text": "\"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"Test Data 2\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-11", "text": "\"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-12", "text": "\"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-13", "text": "}\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-14", "text": "\"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [],\n \"email1\": \"\",\n \"email2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "8b5ae57c9392-15", "text": "\"email1\": \"\",\n \"email2\": \"\",\n \"invalid_email\": \"\",\n \"email_opt_out\": \"\",\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\",\n \"duplicate_check_rank\": 8\n }]\n}\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Check_for_Duplicate_Records/index.html"} {"id": "b47e22a5468c-0", "text": "How to Favorite a Record\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to favorite a record using the v11\u00c2\u00a0/:record/favorite REST PUT API endpoint.\nFavoriting a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-1", "text": "Favoriting a Record\nNext, we can favorite\u00c2\u00a0a specific record\u00c2\u00a0using the //:record/favorite\u00c2\u00a0endpoint.\ncurl -s -X PUT -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Accounts/ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a/favorite\nMore information on the unfavorite API\u00c2\u00a0can be found in the //:record/favorite PUT\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\n{\n \"id\": \"ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a\",\n \"name\": \"Union Bank\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-2", "text": "\"name\": \"Union Bank\",\n \"date_entered\": \"2016-03-22T17:49:50-05:00\",\n \"date_modified\": \"2016-03-30T17:44:20-05:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-3", "text": "\"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"Customer\",\n \"industry\": \"Banking\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"67321 West Siam St.\",\n \"billing_address_street_2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-4", "text": "\"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"Ohio\",\n \"billing_address_state\": \"CA\",\n \"billing_address_postalcode\": \"25159\",\n \"billing_address_country\": \"USA\",\n \"rating\": \"\",\n \"phone_office\": \"(065) 489-6104\",\n \"phone_alternate\": \"\",\n \"website\": \"www.qahr.edu\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"67321 West Siam St.\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-5", "text": "\"shipping_address_street\": \"67321 West Siam St.\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"Ohio\",\n \"shipping_address_state\": \"CA\",\n \"shipping_address_postalcode\": \"25159\",\n \"shipping_address_country\": \"USA\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-6", "text": "\"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,\n \"my_favorite\": true,\n \"tag\": [],\n \"assigned_user_id\": \"seed_sarah_id\",\n \"assigned_user_name\": \"Sarah Smith\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-7", "text": "\"assigned_user_name\": \"Sarah Smith\",\n \"assigned_user_link\": {\n \"full_name\": \"Sarah Smith\",\n \"id\": \"seed_sarah_id\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"West\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-8", "text": "},\n \"team_name\": [{\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [{\n \"email_address\": \"hr.support.kid@example.info\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": true,\n \"reply_to_address\": false\n }, {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "b47e22a5468c-9", "text": "\"reply_to_address\": false\n }, {\n \"email_address\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": false,\n \"reply_to_address\": false\n }],\n \"email1\": \"hr.support.kid@example.info\",\n \"email2\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"email_opt_out\": false,\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Favorite_a_Record/index.html"} {"id": "fc27e2a6451c-0", "text": "How to Filter a List of Records\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to filter records\u00c2\u00a0using the v11\u00c2\u00a0//filter REST POST endpoints.\nFiltering Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Filter_a_List_of_Records/index.html"} {"id": "fc27e2a6451c-1", "text": "Filtering Records\nNext we can\u00c2\u00a0filter\u00c2\u00a0the records we want to return\u00c2\u00a0using the //filter\u00c2\u00a0endpoint with a POST request.\ncurl -s -X POST -H OAuth-Token:{access_token} -H \"Content-Type: application/json\" -H Cache-Control:no-cache -d '{ \n \"filter\":[ \n { \n \"$or\":[ \n { \n \"name\":{ \n \"$starts\":\"A\"\n }\n },\n { \n \"name\":{ \n \"$starts\":\"b\"\n }\n }\n ]\n }\n ],\n \"max_num\":2,\n \"offset\":0,\n \"fields\":\"id\",\n \"order_by\":\"date_entered\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Filter_a_List_of_Records/index.html"} {"id": "fc27e2a6451c-2", "text": "\"fields\":\"id\",\n \"order_by\":\"date_entered\",\n \"favorites\":false,\n \"my_items\":false\n}' https://{site_url}/rest/v11/Accounts/filter\nMore information on the filter API\u00c2\u00a0can be found in the //filter documentation.\nNote : The\u00c2\u00a0//filter endpoint can be called using a GET request as well, though long URL requests can have issues so the POST request is recommended.\u00c2\u00a0\nResponse\nThe data received from the server is shown below:\n{ \n \"next_offset\":2,\n \"records\":[ \n { \n \"id\":\"f16760a4-3a52-f77d-1522-5703ca28925f\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Filter_a_List_of_Records/index.html"} {"id": "fc27e2a6451c-3", "text": "\"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n },\n { \n \"id\":\"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\",\n \"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n }\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Filter_a_List_of_Records/index.html"} {"id": "149d5433745a-0", "text": "How to Unfavorite a Record\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to unfavorite a record using the v11\u00c2\u00a0//:record/unfavorite REST PUT\u00c2\u00a0endpoint.\nUnfavoriting a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nUnfavoriting a Record\nNext, we can unfavorite\u00c2\u00a0a specific record\u00c2\u00a0using the //:record/unfavorite\u00c2\u00a0endpoint.\ncurl -s -X PUT -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Accounts/ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a/unfavorite\nMore information on the unfavorite API\u00c2\u00a0can be found in the //:record/unfavorite PUT\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-2", "text": "Response\nThe data received from the server is shown below:\n{\n \"id\": \"ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a\",\n \"name\": \"Union Bank\",\n \"date_entered\": \"2016-03-22T17:49:50-05:00\",\n \"date_modified\": \"2016-03-30T17:44:20-05:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-3", "text": "\"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-4", "text": "\"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"Customer\",\n \"industry\": \"Banking\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"67321 West Siam St.\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"Ohio\",\n \"billing_address_state\": \"CA\",\n \"billing_address_postalcode\": \"25159\",\n \"billing_address_country\": \"USA\",\n \"rating\": \"\",\n \"phone_office\": \"(065) 489-6104\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-5", "text": "\"phone_office\": \"(065) 489-6104\",\n \"phone_alternate\": \"\",\n \"website\": \"www.qahr.edu\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"67321 West Siam St.\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"Ohio\",\n \"shipping_address_state\": \"CA\",\n \"shipping_address_postalcode\": \"25159\",\n \"shipping_address_country\": \"USA\",\n \"parent_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-6", "text": "\"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-7", "text": "}\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"seed_sarah_id\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"assigned_user_link\": {\n \"full_name\": \"Sarah Smith\",\n \"id\": \"seed_sarah_id\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"West\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-8", "text": "\"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [{\n \"email_address\": \"hr.support.kid@example.info\",\n \"invalid_email\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-9", "text": "\"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": true,\n \"reply_to_address\": false\n }, {\n \"email_address\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": false,\n \"reply_to_address\": false\n }],\n \"email1\": \"hr.support.kid@example.info\",\n \"email2\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"email_opt_out\": false,\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\"\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "149d5433745a-10", "text": "\"fields\": {}\n },\n \"_module\": \"Accounts\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfavorite_a_Record/index.html"} {"id": "92cff06912c6-0", "text": "How to Follow a Record\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to\u00c2\u00a0follow a record using the v11\u00c2\u00a0//:record/subscribe REST POST\u00c2\u00a0endpoint.\nFollowing a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Follow_a_Record/index.html"} {"id": "92cff06912c6-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFollowing a Record\nNext, we can follow a specific record\u00c2\u00a0using the //:record/subscribe\u00c2\u00a0endpoint.\ncurl -s -X POST -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Accounts/e3a59dcd-ff5e-8a78-cd7f-570811366792/subscribe\nMore information on the subscribe API\u00c2\u00a0can be found in the //:record/subscribe POST\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Follow_a_Record/index.html"} {"id": "92cff06912c6-2", "text": "Response\nThe data received from the server is shown below:\n\"58f96315-9e75-6562-42e9-5705917d2cdc\"\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Follow_a_Record/index.html"} {"id": "78f38acecc2a-0", "text": "How to Manipulate Records (CRUD)\nOverview\nThe following page will provide examples in bash script demonstrating how to use the CRUD (Create, Read, Update, Delete) endpoints in the REST v11 API.\nCRUD Operations\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nCreating a Record\nNext, we need to submit the record to the Sugar instance\u00c2\u00a0using the /\u00c2\u00a0endpoint. In this example,\u00c2\u00a0we are going to create an Account record with a Name of 'Test Record' and an email of 'test@sugar.com'.\ncurl -X POST -H OAuth-Token: -H Cache-Control:no-cache -H \"Content-Type: application/json -d '{ \n \"name\":\"Test Record\",\n \"email1\":\"test@sugar.com\"\n}' http:///rest/v11/Accounts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-2", "text": "}' http:///rest/v11/Accounts\nMore information on this API endpoint can be found in the / - POST\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\n{\n \"id\":\"ab2222df-73da-0e92-6887-5705428f4d68\",\n \"name\":\"Test Record\",\n \"date_entered\":\"2016-04-06T13:07:41-04:00\",\n \"date_modified\":\"2016-04-06T13:07:41-04:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"modified_user_link\":{\n \"full_name\":\"Administrator\",\n \"id\":\"1\",\n \"_acl\":{\n \"fields\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-3", "text": "\"id\":\"1\",\n \"_acl\":{\n \"fields\":[\n ],\n \"delete\":\"no\",\n \"_hash\":\"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"created_by_link\":{\n \"full_name\":\"Administrator\",\n \"id\":\"1\",\n \"_acl\":{\n \"fields\":[\n ],\n \"delete\":\"no\",\n \"_hash\":\"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\":\"\",\n \"deleted\":false,\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-4", "text": "\"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"\",\n \"industry\":\"\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"\",\n \"billing_address_state\":\"\",\n \"billing_address_postalcode\":\"\",\n \"billing_address_country\":\"\",\n \"rating\":\"\",\n \"phone_office\":\"\",\n \"phone_alternate\":\"\",\n \"website\":\"\",\n \"ownership\":\"\",\n \"employees\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-5", "text": "\"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"\",\n \"shipping_address_state\":\"\",\n \"shipping_address_postalcode\":\"\",\n \"shipping_address_country\":\"\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"duns_num\":\"\",\n \"parent_name\":\"\",\n \"member_of\":{\n \"name\":\"\",\n \"id\":\"\",\n \"_acl\":{\n \"fields\":[\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-6", "text": "\"id\":\"\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"campaign_accounts\":{\n \"name\":\"\",\n \"id\":\"\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\":true,\n \"my_favorite\":false,\n \"tag\":[\n ],\n \"assigned_user_id\":\"\",\n \"assigned_user_name\":\"\",\n \"assigned_user_link\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-7", "text": "\"assigned_user_link\":{\n \"full_name\":\"\",\n \"id\":\"\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\":\"\",\n \"team_count_link\":{\n \"team_count\":\"\",\n \"id\":\"1\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"email\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-8", "text": "\"primary\":true\n }\n ],\n \"email\":[\n {\n \"email_address\":\"test@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"test@sugar.com\",\n \"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\"\n}\nGetting a Record", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-9", "text": "}\n },\n \"_module\":\"Accounts\"\n}\nGetting a Record\nNext we can\u00c2\u00a0get the created record from\u00c2\u00a0the Sugar instance\u00c2\u00a0using the //:record\u00c2\u00a0endpoint. In this example,\u00c2\u00a0we are going to get\u00c2\u00a0an Account record by it's ID, but only request the Name, Email, and Industry fields.\ncurl -H OAuth-Token: -H Cache-Control:no-cache http:///rest/v11/Accounts/?fields=name,email1,industry\nMore information on this API endpoint can be found in the //:record - GET\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-10", "text": "Response\nThe data received from the server is shown below:\n{\n \"id\":\"ab2222df-73da-0e92-6887-5705428f4d68\",\n \"name\":\"Test Record\",\n \"date_modified\":\"2016-04-06T15:03:21-04:00\",\n \"industry\":\"\",\n \"email1\":\"test@sugar.com\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\"\n}\nUpdating a Record\nNext we can\u00c2\u00a0update \u00c2\u00a0the record in\u00c2\u00a0the Sugar instance\u00c2\u00a0using the //:record\u00c2\u00a0endpoint, and the PUT Http method. In this example\u00c2\u00a0we are going to update the\u00c2\u00a0Account record and change it's name to \"Updated Test Record\".", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-11", "text": "curl -X PUT -H OAuth-Token: -H Cache-Control:no-cache -d '{ \n \"name\":\"Updated Record\"\n}' http:///rest/v11/Accounts/\nMore information on this API endpoint can be found in the //:record - PUT\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\n{\n \"id\":\"ab2222df-73da-0e92-6887-5705428f4d68\",\n \"name\":\"Updated Test Record\",\n \"date_entered\":\"2016-04-06T15:03:21-04:00\",\n \"date_modified\":\"2016-04-06T15:03:22-04:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-12", "text": "\"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"modified_user_link\":{\n \"full_name\":\"Administrator\",\n \"id\":\"1\",\n \"_acl\":{\n \"fields\":[\n ],\n \"delete\":\"no\",\n \"_hash\":\"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"created_by_link\":{\n \"full_name\":\"Administrator\",\n \"id\":\"1\",\n \"_acl\":{\n \"fields\":[\n ],\n \"delete\":\"no\",\n \"_hash\":\"8e11bf9be8f04daddee9d08d44ea891e\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-13", "text": "}\n },\n \"description\":\"\",\n \"deleted\":false,\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"\",\n \"industry\":\"\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"\",\n \"billing_address_state\":\"\",\n \"billing_address_postalcode\":\"\",\n \"billing_address_country\":\"\",\n \"rating\":\"\",\n \"phone_office\":\"\",\n \"phone_alternate\":\"\",\n \"website\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-14", "text": "\"phone_alternate\":\"\",\n \"website\":\"\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"\",\n \"shipping_address_state\":\"\",\n \"shipping_address_postalcode\":\"\",\n \"shipping_address_country\":\"\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"duns_num\":\"\",\n \"parent_name\":\"\",\n \"member_of\":{\n \"name\":\"\",\n \"id\":\"\",\n \"_acl\":{\n \"fields\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-15", "text": "\"id\":\"\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"campaign_accounts\":{\n \"name\":\"\",\n \"id\":\"\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\":true,\n \"my_favorite\":false,\n \"tag\":[\n ],\n \"assigned_user_id\":\"\",\n \"assigned_user_name\":\"\",\n \"assigned_user_link\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-16", "text": "\"assigned_user_link\":{\n \"full_name\":\"\",\n \"id\":\"\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\":\"\",\n \"team_count_link\":{\n \"team_count\":\"\",\n \"id\":\"1\",\n \"_acl\":{\n \"fields\":[\n ],\n \"_hash\":\"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"email\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-17", "text": "\"primary\":true\n }\n ],\n \"email\":[\n {\n \"email_address\":\"test@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"test@sugar.com\",\n \"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\"\n}\nDeleting a Record", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-18", "text": "},\n \"_module\":\"Accounts\"\n}\nDeleting a Record\nNext, we can delete\u00c2\u00a0the record from\u00c2\u00a0the Sugar instance\u00c2\u00a0using the //:record\u00c2\u00a0endpoint, by using the DELETE Http Method.\ncurl -X DELETE -H OAuth-Token: -H Cache-Control:no-cache http:///rest/v11/Accounts/\nMore information on this API endpoint can be found in the //:record - DELETE\u00c2\u00a0documentation.\u00c2\u00a0\nResponse\nThe data received from the server is shown below:\n{\n \"id\":\"ab2222df-73da-0e92-6887-5705428f4d68\"\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "78f38acecc2a-19", "text": "}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Records_CRUD/index.html"} {"id": "6dc6f78917d5-0", "text": "How to Manipulate File Attachments\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to attach a file to a record using the v11 /:record/file/:field\u00c2\u00a0REST POST\u00c2\u00a0API endpoint, then retrieve it with the GET endpoint.\nManipulating File Attachments\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "6dc6f78917d5-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nSubmitting a File Attachment\nNext, we can create a Note record using the //:record/file/:field\u00c2\u00a0endpoint.\nCreate Note\ncurl -s -X POST -H OAuth-Token:{access_token}-H \"Content-Type: application/json\" -H Cache-Control:no-cache -d '{ \n \"name\":\"Test Note\"\n}' https://{site_url}/rest/v11/Notes\nAdd An Attachment to the Note", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "6dc6f78917d5-2", "text": "Add An Attachment to the Note\ncurl -X POST -H OAuth-Token:{access_token} -H Cache-Control:no-cache -F \"filename=@/path/to/file.txt\" https://{site_url}/rest/v11/Notes/7b49aebd-8734-9773-8ef1-53553fa369c7/file/filename\nResponse\n{\n \"filename\":{\n \"content-type\":\"text\\/plain\",\n \"content-length\":13,\n \"name\":\"file.txt\",\n \"uri\":\"http:\\/\\/\\/rest\\/v11\\/Notes\\/7b49aebd-8734-9773-8ef1-53553fa369c7\\/file\\/filename\"\n },\n \"record\":{\n \"my_favorite\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "6dc6f78917d5-3", "text": "},\n \"record\":{\n \"my_favorite\":false,\n \"following\":true,\n \"id\":\"7b49aebd-8734-9773-8ef1-53553fa369c7\",\n \"name\":\"My Note\",\n \"date_modified\":\"2014-04-21T11:53:53-04:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"admin\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":[\n ],\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"\",\n \"assigned_user_name\":\"\",\n \"team_count\":\"\",\n \"team_name\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "6dc6f78917d5-4", "text": "\"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"file_mime_type\":\"text\\/plain\",\n \"file_url\":\"\",\n \"filename\":\"file.txt\",\n \"parent_type\":\"\",\n \"parent_id\":\"\",\n \"contact_id\":\"\",\n \"portal_flag\":false,\n \"embed_flag\":false,\n \"parent_name\":\"\",\n \"contact_name\":\"\",\n \"contact_phone\":\"\",\n \"contact_email\":\"\",\n \"account_id\":\"\",\n \"opportunity_id\":\"\",\n \"acase_id\":\"\",\n \"lead_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "6dc6f78917d5-5", "text": "\"acase_id\":\"\",\n \"lead_id\":\"\",\n \"product_id\":\"\",\n \"quote_id\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Notes\"\n }\n}\nGetting a File Attachment\nNext, we can retrieve\u00c2\u00a0the file attachment stored in Sugar by utilizing the\u00c2\u00a0//:record/file/:field\u00c2\u00a0GET endpoint.\ncurl -i -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Notes/7b49aebd-8734-9773-8ef1-53553fa369c7/file/filename\nResponse\nHTTP/1.1 200 OK", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "6dc6f78917d5-6", "text": "Response\nHTTP/1.1 200 OK\nDate: Wed, 12 Mar 2014 15:15:03 GMT\nServer: Apache/2.2.22 (Unix) PHP/5.3.14 mod_ssl/2.2.22 OpenSSL/0.9.8o\nX-Powered-By: PHP/5.3.14 ZendServer/5.0\nSet-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/\nExpires:\nCache-Control: max-age=0, private\nPragma:\nContent-Disposition: attachment; filename=\"file.txt\"\nX-Content-Type-Options: nosniff\nETag: d41d8cd98f00b204e9800998ecf8427e\nContent-Length: 16\nConnection: close\nContent-Type: application/octet-stream", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "6dc6f78917d5-7", "text": "Connection: close\nContent-Type: application/octet-stream\nThis is the file contents.\nYou can also output the results directly to a file by omitting the header data and output the results directly to a new file.\ncurl -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Notes/7b49aebd-8734-9773-8ef1-53553fa369c7/file/filename > file.txt\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_File_Attachments/index.html"} {"id": "af55e9517bf6-0", "text": "How to Get the Most Active Users\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to fetch the most active users for meetings, calls, inbound emails, and outbound emails using the v11\u00c2\u00a0/mostactiveusers REST GET\u00c2\u00a0endpoint.\nGet Most Active Users\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Get_the_Most_Active_Users/index.html"} {"id": "af55e9517bf6-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nActive Users\nNext, we can retrieve\u00c2\u00a0the most active users\u00c2\u00a0using the /mostactiveusers\u00c2\u00a0endpoint.\ncurl -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/mostactiveusers?days=30\nMore information on the mostactiveusers API\u00c2\u00a0can be found in the /mostactiveusers documentation.\u00c2\u00a0\nResponse\nThe data received from the server is shown below:\n{\n \"meetings\": {\n \"user_id\": \"seed_max_id\",\n \"count\": \"21\",\n \"first_name\": \"Max\",\n \"last_name\": \"Jensen\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Get_the_Most_Active_Users/index.html"} {"id": "af55e9517bf6-2", "text": "\"last_name\": \"Jensen\"\n },\n \"calls\": {\n \"user_id\": \"seed_chris_id\",\n \"count\": \"4\",\n \"first_name\": \"Chris\",\n \"last_name\": \"Olliver\"\n },\n \"inbound_emails\": {\n \"user_id\": \"seed_chris_id\",\n \"count\": \"23\",\n \"first_name\": \"Chris\",\n \"last_name\": \"Olliver\"\n },\n \"outbound_emails\": {\n \"user_id\": \"seed_sarah_id\",\n \"count\": \"20\",\n \"first_name\": \"Sarah\",\n \"last_name\": \"Smith\"\n }\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Get_the_Most_Active_Users/index.html"} {"id": "af55e9517bf6-3", "text": "\"last_name\": \"Smith\"\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Get_the_Most_Active_Users/index.html"} {"id": "4dd4d12fe8ba-0", "text": "How to Fetch the Current Users Time\nOverview\nAn example in bash script demonstrating how to fetch the current users time with the v11\u00c2\u00a0/ping/whattimeisit REST GET endpoint.\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "4dd4d12fe8ba-1", "text": "Getting the Current Time and Date for the User\nNext, we can get the current time and date\u00c2\u00a0using the /ping/whattimeisit endpoint.\ncurl -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/ping/whattimeisit\nResponse\n\"2017-11-03T06:45:59-07:00\"\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "206a7be6ad6a-0", "text": "How to Fetch Related Records\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to fetch related records\u00c2\u00a0using the v11\u00c2\u00a0//:record/link/:link REST GET endpoints.\nFetching Related Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFetching Related Records\nNext, we can fetch the related records we want to return\u00c2\u00a0using the\u00c2\u00a0//:record/link/:link endpoint with a GET request where\nElement\nMeaning\n\nThe parent module name\n:record\nThe parent records ID\nlink\nthe actual word \"link\"\n:link\nThe name of the relationship to fetch\u00c2\u00a0\nIn this example we will fetch the related Contacts for an Account :", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-2", "text": "In this example we will fetch the related Contacts for an Account :\ncurl -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Accounts/e8c641ca-1b8c-74c1-d08d-56fedbdd3187/link/contacts\nResponse\nThe data received from the server is shown below:\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"819f4149-b007-a6da-a5fa-56fedbf2de77\",\n \"name\":\"Florine Marcus\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-3", "text": "\"name\":\"Florine Marcus\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-01T15:34:00-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-4", "text": "{\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"support27@example.tv\",\n \"primary_address\":true,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":false\n },\n {\n \"email_address\":\"support.support.kid@example.net\",\n \"primary_address\":false,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":true\n }\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-5", "text": "\"opt_out\":true\n }\n ],\n \"email1\":\"support27@example.tv\",\n \"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Florine\",\n \"last_name\":\"Marcus\",\n \"full_name\":\"Florine Marcus\",\n \"title\":\"President\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(746) 162-2314\",\n \"phone_mobile\":\"(941) 088-2874\",\n \"phone_work\":\"(827) 541-9614\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-6", "text": "\"phone_work\":\"(827) 541-9614\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"1715 Scott Dr\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Alabama\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"70187\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-7", "text": "\"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Employee\",\n \"account_name\":\"MTM Investment Bank F S B\",\n \"account_id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"FlorineMarcus119\",\n \"portal_active\":true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-8", "text": "\"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-9", "text": "\"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\"\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"527cc1a9-7984-91fe-4148-56fedbc356aa\",\n \"name\":\"Shaneka Aceto\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-01T15:34:00-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-10", "text": "\"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"support17@example.cn\",\n \"primary_address\":true,\n \"reply_to_address\":false,\n \"invalid_email\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-11", "text": "\"invalid_email\":false,\n \"opt_out\":false\n },\n {\n \"email_address\":\"section.sugar.the@example.tv\",\n \"primary_address\":false,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":true\n }\n ],\n \"email1\":\"support17@example.cn\",\n \"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Shaneka\",\n \"last_name\":\"Aceto\",\n \"full_name\":\"Shaneka Aceto\",\n \"title\":\"IT Developer\",\n \"facebook\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-12", "text": "\"title\":\"IT Developer\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(502) 528-5151\",\n \"phone_mobile\":\"(816) 719-3739\",\n \"phone_work\":\"(994) 769-5855\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"123 Anywhere Street\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"15128\",\n \"primary_address_country\":\"USA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-13", "text": "\"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Email\",\n \"account_name\":\"MTM Investment Bank F S B\",\n \"account_id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"dnb_principal_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-14", "text": "\"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"ShanekaAceto151\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-15", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\"\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"42d703ed-f834-f87c-967d-56fedb044051\",\n \"name\":\"Johnnie Pina\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-16", "text": "\"date_modified\":\"2016-04-01T15:34:00-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-17", "text": "},\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"sugar.support.hr@example.co.uk\",\n \"primary_address\":true,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":false\n },\n {\n \"email_address\":\"support.im@example.tw\",\n \"primary_address\":false,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":true\n }\n ],\n \"email1\":\"sugar.support.hr@example.co.uk\",\n \"email2\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-18", "text": "\"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Johnnie\",\n \"last_name\":\"Pina\",\n \"full_name\":\"Johnnie Pina\",\n \"title\":\"VP Operations\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(159) 335-1423\",\n \"phone_mobile\":\"(580) 140-4050\",\n \"phone_work\":\"(418) 792-9611\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"345 Sugar Blvd.\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-19", "text": "\"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"70648\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-20", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Direct Mail\",\n \"account_name\":\"MTM Investment Bank F S B\",\n \"account_id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"JohnniePina194\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-21", "text": "\"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\"\n }\n ]\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "206a7be6ad6a-22", "text": "},\n \"_module\":\"Contacts\"\n }\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Fetch_Related_Records/index.html"} {"id": "d1646ac9056d-0", "text": "How to Manipulate Tags (CRUD)\nOverview\nThe following page will provide examples of bash script demonstrating how to use the CRUD (Create, Read, Update, Delete) endpoints for tags in the REST v11 API.\nAuthentication\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' http:///rest/v11/oauth2/token\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout POST endpoint documentation.\nCreating Tags", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-1", "text": "Creating Tags\nOnce you get oauth_token you would need to use it in the following API Calls to create tags.\u00c2\u00a0\ncurl -X POST -H OAuth-Token: -H Cache-Control:no-cache -d '{ \n \"name\":\"Test Name\",\n}' http:///rest/v11/Tags\nMore information on this API endpoint can be found in the / POST documentation.\u00c2\u00a0\nResponse\n{\n \"id\": \"12c6ee48-1000-11e8-8838-6a0001bcacb0\",\n \"name\": \"Tag Name\",\n \"date_entered\": \"2018-02-12T15:21:52+01:00\",\n \"date_modified\": \"2018-02-12T15:21:52+01:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-2", "text": "\"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-3", "text": "\"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"name_lower\": \"tag name\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"locked_fields\": [],\n \"source_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-4", "text": "\"locked_fields\": [],\n \"source_id\": \"\",\n \"source_type\": \"\",\n \"source_meta\": \"\",\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-5", "text": "}\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Tags\"\n}\nCreating Records with Tags\nYou can also create tags on initial record creation. All you need to do populate the tag field as an array when creating a record.\u00c2\u00a0Here is\u00c2\u00a0an example that demonstrates using the\u00c2\u00a0/ POST\u00c2\u00a0endpoint.\ncurl -X POST -H OAuth-Token: -H Cache-Control:no-cache -d '{ \n name: \"Test Record\",\n tag:[\"First Tag\", \"Second Tag\"] \n}' http:///rest/v11/Accounts\nMore information on this API endpoint can be found in the / POST documentation.\nResponse\nThe data sent to the server is shown below:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-6", "text": "Response\nThe data sent to the server is shown below:\n{\n \"id\": \"ea507760-0ffd-11e8-bcf5-6a0001bcacb0\",\n \"name\": \"Test Record\",\n \"date_entered\": \"2018-02-12T15:06:25+01:00\",\n \"date_modified\": \"2018-02-12T15:06:25+01:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-7", "text": "\"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-8", "text": "},\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-9", "text": "\"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-10", "text": "\"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-11", "text": "\"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [\n {\n \"id\": \"ea69c120-0ffd-11e8-b5f6-6a0001bcacb0\",\n \"name\": \"First Tag\",\n \"tags__name_lower\": \"first tag\"\n },\n {\n \"id\": \"eafb28e0-0ffd-11e8-8d80-6a0001bcacb0\",\n \"name\": \"Second Tag\",\n \"tags__name_lower\": \"second tag\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-12", "text": "\"tags__name_lower\": \"second tag\"\n }\n ],\n \"locked_fields\": [],\n \"assigned_user_id\": \"\",\n \"assigned_user_name\": \"\",\n \"assigned_user_link\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-13", "text": "},\n \"team_name\": [\n {\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }\n ],\n \"email\": [],\n \"email1\": \"\",\n \"email2\": \"\",\n \"invalid_email\": \"\",\n \"email_opt_out\": \"\",\n \"email_addresses_non_primary\": \"\",\n \"calculated_c\": \"\",\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Accounts\"\n}\nReading/Retrieving Tags\nNext, we can retrieve the records using /Tags/:record\u00c2\u00a0GET endpoint. Here is the example of\u00c2\u00a0retrieving the tag\u00c2\u00a0record that we created.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-14", "text": "curl -H OAuth-Token: -H Cache-Control:no-cache http:///rest/v11/Tags/12c6ee48-1000-11e8-8838-6a0001bcacb0\nMore information on this API endpoint can be found in the //:record GET documentation.\u00c2\u00a0\nResponse\n{\n \"id\": \"12c6ee48-1000-11e8-8838-6a0001bcacb0\",\n \"name\": \"Tag Name\",\n \"date_entered\": \"2018-02-12T15:21:52+01:00\",\n \"date_modified\": \"2018-02-12T15:21:52+01:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-15", "text": "\"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-16", "text": "\"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"name_lower\": \"tag name\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"locked_fields\": [],\n \"source_id\": \"\",\n \"source_type\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-17", "text": "\"source_id\": \"\",\n \"source_type\": \"\",\n \"source_meta\": \"\",\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"_acl\": { \"fields\": {} },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-18", "text": "}\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Tags\"\n}\nUpdating Tags\nYou\u00c2\u00a0can\u00c2\u00a0update a tag using the\u00c2\u00a0/Tags/:record PUT\u00c2\u00a0endpoint. In this example, we are going to update the\u00c2\u00a0Tag record that we created in the Creating Tags section and change its name to \"Renamed Tag Name\".\ncurl -X PUT -H OAuth-Token: -H Cache-Control:no-cache -d '{ \n \"name\":\"Renamed Tag Name\"\n}' http:///rest/v11/Tags/12c6ee48-1000-11e8-8838-6a0001bcacb0\nMore information on this API endpoint can be found in the\u00c2\u00a0//:record\u00c2\u00a0PUT documentation.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-19", "text": "Response\n{\n \"id\": \"12c6ee48-1000-11e8-8838-6a0001bcacb0\",\n \"name\": \"Renamed Tag Name\",\n \"date_entered\": \"2018-02-12T15:21:52+01:00\",\n \"date_modified\": \"2018-02-12T16:07:18+01:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-20", "text": "\"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-21", "text": "},\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"name_lower\": \"renamed tag name\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"locked_fields\": [],\n \"source_id\": \"\",\n \"source_type\": \"\",\n \"source_meta\": \"\",\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-22", "text": "\"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Tags\"\n}\nDeleting Tags\nFinally, we will delete the record we created using /Tags/:record DELETE API request.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "d1646ac9056d-23", "text": "curl -X DELETE -H OAuth-Token: -H Cache-Control:no-cache http:///rest/v11/Tags/12c6ee48-1000-11e8-8838-6a0001bcacb0\nMore information on this API endpoint can be found in the\u00c2\u00a0//:record\u00c2\u00a0DELETE documentation.\u00c2\u00a0\nResponse\n{\"id\":\"12c6ee48-1000-11e8-8838-6a0001bcacb0\"}\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "cedacda7fdcb-0", "text": "How to Export a List of Records\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to export a list of records using the v11\u00c2\u00a0//export/:record_list_id\u00c2\u00a0REST GET endpoint.\nExporting Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFiltering Records\nNext, we will need to identify the records we want to export using the //filter\u00c2\u00a0endpoint.\ncurl -s -X POST -H OAuth-Token:{access_token} -H \"Content-Type: application/json\" -H Cache-Control:no-cache -d '{ \n \"filter\":[ \n { \n \"$or\":[ \n { \n \"name\":{ \n \"$starts\":\"A\"\n }\n },\n { \n \"name\":{ \n \"$starts\":\"b\"\n }\n }\n ]\n }\n ],\n \"max_num\":2,\n \"offset\":0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-2", "text": "],\n \"max_num\":2,\n \"offset\":0,\n \"fields\":\"id\",\n \"order_by\":\"date_entered\",\n \"favorites\":false,\n \"my_items\":false\n}' https://{site_url}/rest/v11/Accounts/filter\nMore information on the filter API\u00c2\u00a0can be found in the //filter documentation.\nResponse\nThe data received from the server is shown below:\n{ \n \"next_offset\":2,\n \"records\":[ \n { \n \"id\":\"f16760a4-3a52-f77d-1522-5703ca28925f\",\n \"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-3", "text": "\"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n },\n { \n \"id\":\"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\",\n \"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n }\n ]\n}\nCreating a Record List\nOnce we have the list of ids, we then need to create a record list in Sugar that consists of those ids.\ncurl -s -X POST -H OAuth-Token:{access_token} -H \"Content-Type: application/json\" -H Cache-Control:no-cache -d '{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-4", "text": "\"records\":[ \n \"f16760a4-3a52-f77d-1522-5703ca28925f\",\n \"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\"\n ]\n}' https://{site_url}/rest/v11/Accounts/record_list\nResponse\nThe data received from the server is shown below:\n{ \n \"id\":\"ef963176-4845-bc55-b03e-570430b4173c\",\n \"assigned_user_id\":\"1\",\n \"module_name\":\"Accounts\",\n \"records\":[ \n \"f16760a4-3a52-f77d-1522-5703ca28925f\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-5", "text": "\"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\"\n ],\n \"date_modified\":\"2016-04-05 21:39:19\"\n}\nExporting Records\nOnce we have the record list created, we can then export the CSV file.\ncurl -i -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Accounts/export/ef963176-4845-bc55-b03e-570430b4173c\nMore information on exporting records can be found in the //export/:record_list_id\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\nHTTP/1.1 200 OK", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-6", "text": "The data received from the server is shown below:\nHTTP/1.1 200 OK \nDate: Tue, 05 Apr 2016 21:50:32 \nGMT Server: Apache/2.2.29 (Unix) \nDAV/2 PHP/5.3.29 mod_ssl/2.2.29 \nOpenSSL/0.9.8zg X-Powered-By: \nPHP/5.3.29 Expires: \nCache-Control: max-age=10, \nprivate Pragma: \nContent-Disposition: attachment; filename=Accounts.csv \nContent-transfer-encoding: binary \nLast-Modified: Tue, 05 Apr 2016 21:50:32 \nGMT ETag: 9b34f5d74e0298aaf7fd1f27d02e14f2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-7", "text": "Content-Length: 1703 \nConnection: close \nContent-Type: application/octet-stream; charset=ISO-8859-1 \n\"Name\",\"ID\",\"Website\",\"Office Phone\",\"Alternate Phone\",\"Fax\",\"Billing Street\",\"Billing City\",\"Billing State\",\"Billing Postal Code\",\"Billing Country\",\"Shipping Street\",\"Shipping City\",\"Shipping State\",\"Shipping Postal Code\",\"Shipping Country\",\"Description\",\"Type\",\"Industry\",\"Annual Revenue\",\"Employees\",\"SIC Code\",\"Ticker Symbol\",\"Parent Account ID\",\"Ownership\",\"Campaign ID\",\"Rating\",\"Assigned User Name\",\"Assigned User ID\",\"Team ID\",\"Teams\",\"Team Set ID\",\"Date Created\",\"Date Modified\",\"Modified By Name\",\"Modified By ID\",\"Created By\",\"Created By ID\",\"Deleted\",\"test\",\"Facebook Account\",\"Twitter Account\",\"Google Plus ID\",\"DUNS\",\"Email\",\"Invalid Email\",\"Email Opt Out\",\"Non-primary emails\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-8", "text": "\"Arts & Crafts Inc\",\"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\",\"www.hrinfo.tw\",\"(252) 456-8602\",\"\",\"\",\"777 West Filmore Ln\",\"Los Angeles\",\"CA\",\"77076\",\"USA\",\"777 West Filmore Ln\",\"Los Angeles\",\"CA\",\"77076\",\"USA\",\"\",\"Customer\",\"Hospitality\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"Max Jensen\",\"seed_max_id\",\"West\",\"West, East, Global\",\"dec43cb2-5273-8be2-968a-5703cadee75f\",\"2016-04-05 10:23\",\"2016-04-05", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-9", "text": "10:23\",\"2016-04-05 10:23\",\"Administrator\",\"1\",\"Administrator\",\"1\",\"0\",\"\",\"\",\"\",\"\",\"\",\"sugar.sugar.section@example.org\",\"0\",\"0\",\"dev.phone@example.biz,0,0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-10", "text": "\"B.H. Edwards Inc\",\"f16760a4-3a52-f77d-1522-5703ca28925f\",\"www.sectiondev.edu\",\"(361) 765-0216\",\"\",\"\",\"111 Silicon Valley Road\",\"Persistance\",\"CA\",\"29709\",\"USA\",\"111 Silicon Valley Road\",\"Persistance\",\"CA\",\"29709\",\"USA\",\"\",\"Customer\",\"Apparel\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"Sally Bronsen\",\"seed_sally_id\",\"West\",\"West\",\"West\",\"2016-04-05 10:23\",\"2016-04-05 10:23\",\"Administrator\",\"1\",\"Administrator\",\"1\",\"0\",\"\",\"\",\"\",\"\",\"\",\"info.sugar@example.de\",\"0\",\"1\",\"phone.sales.section@example.tv,0,0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "cedacda7fdcb-11", "text": "You can also output the results directly to a CSV file by omitting the header data and output the results directly to a new CSV file.\ncurl -s -X GET -H OAuth-Token:{access_token} -H -H Cache-Control:no-cache https://{site_url}/rest/v11/Accounts/export/ef963176-4845-bc55-b03e-570430b4173c > Output.csv\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Export_a_List_of_Records/index.html"} {"id": "ff39b51b98c7-0", "text": "How to Unfollow a Record\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to unfollow a record using the v11\u00c2\u00a0//:record/unsubscribe REST DELETE\u00c2\u00a0endpoint.\nUnfollowing a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfollow_a_Record/index.html"} {"id": "ff39b51b98c7-1", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nUnfollowing a Record\nNext, we can unfollow a specific record\u00c2\u00a0using the //:record/unsubscribe\u00c2\u00a0endpoint.\ncurl -s -X DELETE -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/Accounts/e7b0d745-0a3e-c896-5358-5708113786d7/unsubscribe\nMore information on the unsubscribe API\u00c2\u00a0can be found in the /:record/unsubscribe DELETE documentation.\nResponse\nThe data received from the server is shown below:\ntrue", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfollow_a_Record/index.html"} {"id": "ff39b51b98c7-2", "text": "Response\nThe data received from the server is shown below:\ntrue\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Unfollow_a_Record/index.html"} {"id": "1941fd4dfd2b-0", "text": "How to Use the Global Search\nOverview\nAn example\u00c2\u00a0in bash script demonstrating how to globally search for records\u00c2\u00a0using the REST v11\u00c2\u00a0/search GET endpoint.\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nSearching Records", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-1", "text": "Searching Records\nNext, we will need to identify the records we want to see using the /search endpoint. In this case, we are going to search for all records that have the email address of 'jsmith@sugar.com'.\u00c2\u00a0 In this example, there are 3 records, an Account, a Contact and a Lead.\ncurl -s -X GET -H OAuth-Token:{access_token} -H Cache-Control:no-cache https://{site_url}/rest/v11/search?\n\tq=jsmith@sugar.com&\n\tmax_num=3&\n\toffset=0&\n\tfields=&\n\torder_by=&\n\tfavorites=false&\n\tmy_items=false\nMore information on the search API\u00c2\u00a0can be found in the /search documentation.\nResponse\nThe data received from the server is shown below:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-2", "text": "Response\nThe data received from the server is shown below:\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f31b2f00-468c-3d35-1e88-56fedbd3921d\",\n \"name\":\"Kaycee Gibney\",\n \"date_entered\":\"2016-04-01T20:34:00+00:00\",\n \"date_modified\":\"2016-04-06T15:16:24+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-3", "text": "\"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_jim_id\",\n \"assigned_user_name\":\"Jim Brennan\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"sales.kid.dev@example.info\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-4", "text": "\"email_address\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"opt_out\":true,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Kaycee\",\n \"last_name\":\"Gibney\",\n \"full_name\":\"Kaycee Gibney\",\n \"title\":\"Mgr Operations\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-5", "text": "\"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(599) 165-2396\",\n \"phone_mobile\":\"(215) 591-9574\",\n \"phone_work\":\"(771) 945-3648\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"321 University Ave.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Santa Monica\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"96154\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-6", "text": "\"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Existing Customer\",\n \"account_name\":\"Tracker Com LP\",\n \"account_id\":\"72ad6f00-e345-1cab-b370-56fedbd23deb\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-7", "text": "\"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"KayceeGibney33\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-8", "text": "\"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\",\n \"_search\":{\n \"score\":0.70710677,\n \"highlighted\":{\n \"email1\":{\n \"text\":\"\\u003Cstrong\\u003Ejsmith@sugar.com\\u003C\\/strong\\u003E\",\n \"module\":\"Contacts\",\n \"label\":\"LBL_EMAIL_ADDRESS\"\n }\n }\n }\n },\n {\n \"my_favorite\":false,\n \"following\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-9", "text": "{\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"name\":\"MTM Investment Bank F S B\",\n \"date_entered\":\"2016-04-01T20:34:00+00:00\",\n \"date_modified\":\"2016-04-06T15:16:52+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-10", "text": "\"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-11", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"the60@example.us\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"the60@example.us\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"a\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-12", "text": "\"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"67321 West Siam St.\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"Alabama\",\n \"billing_address_state\":\"NY\",\n \"billing_address_postalcode\":\"52272\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(012) 704-8075\",\n \"phone_alternate\":\"\",\n \"website\":\"www.salesqa.it\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-13", "text": "\"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"67321 West Siam St.\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"Alabama\",\n \"shipping_address_state\":\"NY\",\n \"shipping_address_postalcode\":\"52272\",\n \"shipping_address_country\":\"USA\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"duns_num\":\"\",\n \"parent_name\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-14", "text": "\"fields\":{\n }\n },\n \"_module\":\"Accounts\",\n \"_search\":{\n \"score\":0.70710677,\n \"highlighted\":{\n \"email1\":{\n \"text\":\"\\u003Cstrong\\u003Ejsmith@sugar.com\\u003C\\/strong\\u003E\",\n \"module\":\"Accounts\",\n \"label\":\"LBL_EMAIL_ADDRESS\"\n }\n }\n }\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f3951f4d-2d17-7939-c5ec-56fedbb9e92f\",\n \"name\":\"Talia Knupp\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-15", "text": "\"name\":\"Talia Knupp\",\n \"date_entered\":\"2016-04-01T20:34:00+00:00\",\n \"date_modified\":\"2016-04-06T15:33:24+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-16", "text": "{\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-17", "text": "\"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Talia\",\n \"last_name\":\"Knupp\",\n \"full_name\":\"Talia Knupp\",\n \"title\":\"Senior Product Manager\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(963) 741-3689\",\n \"phone_mobile\":\"(600) 831-9872\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-18", "text": "\"phone_mobile\":\"(600) 831-9872\",\n \"phone_work\":\"(680) 991-2837\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Sunnyvale\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"99452\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-19", "text": "\"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"converted\":false,\n \"refered_by\":\"\",\n \"lead_source\":\"Word of mouth\",\n \"lead_source_description\":\"\",\n \"status\":\"In Process\",\n \"status_description\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"dnb_principal_id\":\"\",\n \"account_name\":\"First National S\\/B\",\n \"account_description\":\"\",\n \"contact_id\":\"\",\n \"contact_name\":\"\",\n \"account_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-20", "text": "\"contact_name\":\"\",\n \"account_id\":\"\",\n \"opportunity_id\":\"\",\n \"opportunity_name\":\"\",\n \"opportunity_amount\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"webtolead_email1\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-21", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email2\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-22", "text": "\"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email_opt_out\":\"\",\n \"webtolead_invalid_email\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"\",\n \"portal_app\":\"\",\n \"website\":\"\",\n \"preferred_language\":\"\",\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"fruits_c\":\"Apples\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Leads\",\n \"_search\":{\n \"score\":0.70710677,\n \"highlighted\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "1941fd4dfd2b-23", "text": "\"score\":0.70710677,\n \"highlighted\":{\n \"email1\":{\n \"text\":\"\\u003Cstrong\\u003Ejsmith@sugar.com\\u003C\\/strong\\u003E\",\n \"module\":\"Leads\",\n \"label\":\"LBL_EMAIL_ADDRESS\"\n }\n }\n }\n }\n ]\n}\nThere are 3 records shown above, the _module field tells you if the record is from Accounts, Contacts or Leads.\u00c2\u00a0 The _search field is an array that tells you where in the record it found the search string.\u00c2\u00a0 It gives you back a highlighted string that you can use for display.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Use_the_Global_Search/index.html"} {"id": "914807c368c1-0", "text": "How to Authenticate and Log Out\nOverview\nAn example\u00c2\u00a0in bash\u00c2\u00a0script on how to authenticate and logout of the v11 REST API using the /oauth2/token\u00c2\u00a0and /oauth2/logout POST endpoints.\nAuthenticating", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Authenticate_and_Log_Out/index.html"} {"id": "914807c368c1-1", "text": "Authenticating\nThe example below demonstrates how to authenticate to the REST v11 API. It is important to note that the oauth2 token arguments takes in several parameters that you should be aware of. The platform argument tends to cause confusion in that it is used to authenticate a user to a specific platform. Since Sugar only allows 1 user in the system at a time per platform, authenticating an integration script with a platform type of \"base\"\u00c2\u00a0will logout any current users in the system using those credentials. To work around this, your custom scripts should have a new platform type specified such as \"custom_api\" or any other static text you prefer. The client_id and client_secret\u00c2\u00a0parameters can be used for additional security based on client types. You can create your own client type\u00c2\u00a0in Admin > OAuth Keys. More information can be found in the /oauth2/token documentation. An example script is shown below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Authenticate_and_Log_Out/index.html"} {"id": "914807c368c1-2", "text": "curl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}' https://{site_url}/rest/v11/oauth2/token\nResponse\nThe data received from the server is shown below:\n{\n \"access_token\":\"c6d495c9-bb25-81d2-5f81-533ef6479f9b\",\n \"expires_in\":3600,\n \"token_type\":\"bearer\",\n \"scope\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Authenticate_and_Log_Out/index.html"} {"id": "914807c368c1-3", "text": "\"token_type\":\"bearer\",\n \"scope\":null,\n \"refresh_token\":\"cbc40e67-12bc-4b56-a1d9-533ef62f2601\",\n \"refresh_expires_in\":1209600,\n \"download_token\":\"cc5d1a9f-6627-3349-96e5-533ef6b1a493\"\n}\nLogout\nTo log out of\u00c2\u00a0a session,\u00c2\u00a0a request\u00c2\u00a0can be made to the \u00c2\u00a0/oauth2/logout POST endpoint. More information can be found in the /oauth2/logout documentation.\u00c2\u00a0An example extending off of the above authentication example\u00c2\u00a0is shown\u00c2\u00a0below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Authenticate_and_Log_Out/index.html"} {"id": "914807c368c1-4", "text": "curl -s -X POST -H OAuth-Token: -H Cache-Control:no-cache https://{site_url}/rest/v11/oauth2/logout\nResponse\nThe data received from the server is shown below:\n{\n \"success\":true\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/Bash/How_to_Authenticate_and_Log_Out/index.html"} {"id": "0f771b143661-0", "text": "PHP\nPHP Examples interacting with the v11 REST API.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/index.html"} {"id": "0f771b143661-1", "text": "TopicsHow to Export a List of RecordsAn PHP example demonstrating how to export a list of records using the v11 //export/:record_list_id REST GET endpoint.How to Filter a List of RecordsA PHP example demonstrating how to filter records using the v11 //filter REST POST endpoints.How to Favorite a RecordA PHP example demonstrating how to favorite a record using the v11 /:record/favorite REST PUT API endpoint.How to Manipulate File AttachmentsA PHP example demonstrating how to attach a file to a record using the v11 /:record/file/:field REST POST API endpoint, then retrieve it with the GET endpoint.How to Fetch Related RecordsA PHP example demonstrating how to fetch related records using the v11 //:record/link/:link REST GET endpoints.How to Manipulate Records (CRUD)A PHP example demonstrating", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/index.html"} {"id": "0f771b143661-2", "text": "REST GET endpoints.How to Manipulate Records (CRUD)A PHP example demonstrating how to use the CRUD (Create, Read, Update, Delete) endpoints in the REST v11 API.How to Follow a RecordA PHP example demonstrating how to follow a record using the v11 //:record/subscribe REST POST endpoint.How to Unfavorite a RecordA PHP example demonstrating how to unfavorite a record using the v11 //:record/unfavorite REST PUT endpoint.How to Unfollow a RecordA PHP example demonstrating how to unfollow a record using the v11 //:record/unsubscribe REST DELETE endpoint.How to Get the Most Active UsersA PHP example demonstrating how to fetch the most active users for meetings, calls, inbound emails, and outbound emails using the v11 /mostactiveusers REST GET endpoint.How to Authenticate and Log OutA PHP example on", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/index.html"} {"id": "0f771b143661-3", "text": "/mostactiveusers REST GET endpoint.How to Authenticate and Log OutA PHP example on how to authenticate and logout of the v11 REST API using the /oauth2/token and /oauth2/logout POST endpoints.How to PingA PHP example demonstrating how to ping using the REST v11 /ping GET endpoint.How to Fetch the Current Users TimeA PHP example demonstrating how to fetch the current users time with the v11 /ping/whattimeisit REST GET endpoint.How to Fetch Recently Viewed RecordsA PHP example demonstrating how to retrieve recently viewed records using the v11 /recent REST GET endpoint.How to Use the Global SearchA PHP example demonstrating how to globally search for records using the REST v11 /search GET endpoint.How to Check for Duplicate RecordsAn PHP example demonstrating how to check for duplicate records using the v11 //duplicateCheck REST POST endpoint.How to Manipulate", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/index.html"} {"id": "0f771b143661-4", "text": "the v11 //duplicateCheck REST POST endpoint.How to Manipulate QuotesA PHP example demonstrating how to manipulate Quotes and related record data such as ProductBundles, Products, and ProductBundleNotes.How to Manipulate Tags (CRUD)A PHP example demonstrating how to work with tags using the v11 REST endpoints.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/index.html"} {"id": "0f771b143661-5", "text": "Last modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/index.html"} {"id": "30601491f6ef-0", "text": "How to Fetch Recently Viewed Records\nOverview\nA PHP example\u00c2\u00a0demonstrating how to retrieve recently viewed records\u00c2\u00a0using the v11 /recent REST GET endpoint.\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-1", "text": "\"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\u00c2\u00a0\nRecently Viewed Records\nNext, we will need to identify the records we want to see using the /recent endpoint. In this case, we are going to request Accounts, Contacts and Leads.\n//Set up the search parameters - GET /recent\n$recent_url = $instance_url . \"/recent\";\n$recent_arguments = array(\n \"module_list\" => 'Accounts,Contacts,Leads',\n);\n//As this request is a GET we will add the arguments to the URL\n$recent_url .= \"?\" . http_build_query($recent_arguments);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-4", "text": "$recent_request = curl_init($recent_url);\ncurl_setopt($recent_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($recent_request, CURLOPT_HEADER, false);\ncurl_setopt($recent_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($recent_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($recent_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($recent_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-5", "text": "));\n//execute request\n$recent_response = curl_exec($recent_request);\n//decode json\n$recent_response_obj = json_decode($recent_response);\nMore information on the search API\u00c2\u00a0can be found in the /recent documentation.\nRequest\nhttp://{site_url}/rest/v11/recent?module_list=Accounts%2CContacts%2CLeads\nResponse\nThe data received from the server is shown below:\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f3951f4d-2d17-7939-c5ec-56fedbb9e92f\",\n \"name\":\"Talia Knupp\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-6", "text": "\"name\":\"Talia Knupp\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-06T10:33:24-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-7", "text": "{\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-8", "text": "\"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Talia\",\n \"last_name\":\"Knupp\",\n \"full_name\":\"Talia Knupp\",\n \"title\":\"Senior Product Manager\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(963) 741-3689\",\n \"phone_mobile\":\"(600) 831-9872\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-9", "text": "\"phone_mobile\":\"(600) 831-9872\",\n \"phone_work\":\"(680) 991-2837\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Sunnyvale\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"99452\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-10", "text": "\"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"converted\":false,\n \"refered_by\":\"\",\n \"lead_source\":\"Word of mouth\",\n \"lead_source_description\":\"\",\n \"status\":\"In Process\",\n \"status_description\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"dnb_principal_id\":\"\",\n \"account_name\":\"First National S\\/B\",\n \"account_description\":\"\",\n \"contact_id\":\"\",\n \"contact_name\":\"\",\n \"account_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-11", "text": "\"contact_name\":\"\",\n \"account_id\":\"\",\n \"opportunity_id\":\"\",\n \"opportunity_name\":\"\",\n \"opportunity_amount\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"webtolead_email1\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-12", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email2\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-13", "text": "\"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email_opt_out\":\"\",\n \"webtolead_invalid_email\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"\",\n \"portal_app\":\"\",\n \"website\":\"\",\n \"preferred_language\":\"\",\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"fruits_c\":\"Apples\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Leads\",\n \"_last_viewed_date\":\"2016-04-06T10:33:24-05:00\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-14", "text": "},\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"name\":\"MTM Investment Bank F S B\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-06T10:16:52-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-15", "text": "\"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-16", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"the60@example.us\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"the60@example.us\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"a\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-17", "text": "\"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"67321 West Siam St.\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"Alabama\",\n \"billing_address_state\":\"NY\",\n \"billing_address_postalcode\":\"52272\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(012) 704-8075\",\n \"phone_alternate\":\"\",\n \"website\":\"www.salesqa.it\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-18", "text": "\"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"67321 West Siam St.\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"Alabama\",\n \"shipping_address_state\":\"NY\",\n \"shipping_address_postalcode\":\"52272\",\n \"shipping_address_country\":\"USA\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"duns_num\":\"\",\n \"parent_name\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-19", "text": "\"fields\":{\n }\n },\n \"_module\":\"Accounts\",\n \"_last_viewed_date\":\"2016-04-06T10:16:52-05:00\"\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f31b2f00-468c-3d35-1e88-56fedbd3921d\",\n \"name\":\"Kaycee Gibney\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-06T10:16:24-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-20", "text": "\"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_jim_id\",\n \"assigned_user_name\":\"Jim Brennan\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-21", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"opt_out\":true,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Kaycee\",\n \"last_name\":\"Gibney\",\n \"full_name\":\"Kaycee Gibney\",\n \"title\":\"Mgr Operations\",\n \"facebook\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-22", "text": "\"title\":\"Mgr Operations\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(599) 165-2396\",\n \"phone_mobile\":\"(215) 591-9574\",\n \"phone_work\":\"(771) 945-3648\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"321 University Ave.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Santa Monica\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"96154\",\n \"primary_address_country\":\"USA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-23", "text": "\"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Existing Customer\",\n \"account_name\":\"Tracker Com LP\",\n \"account_id\":\"72ad6f00-e345-1cab-b370-56fedbd23deb\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-24", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"KayceeGibney33\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-25", "text": "\"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\",\n \"_last_viewed_date\":\"2016-04-06T10:16:24-05:00\"\n }\n ]\n}\nThere are 3 records shown above, the _module field tells you if the record is from Accounts, Contacts or Leads.\u00c2\u00a0 The _last_viewed_date\u00c2\u00a0will tell you when the record was last seen.\nDownloads\nYou can download the full API example here", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "30601491f6ef-26", "text": "Downloads\nYou can download the full API example here\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Recently_Viewed_Records/index.html"} {"id": "86984e17682c-0", "text": "How to Manipulate Quotes\nOverview\nA PHP example\u00c2\u00a0demonstrating how to manipulate Quotes and related record data such as ProductBundles, Products, and ProductBundleNotes.\u00c2\u00a0\nManipulating Quotes\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nCreating a Quote\nOnce authenticated, we can submit a Quote record using the endpoint. Since a\u00c2\u00a0Quote record is a sum of its parts (i.e. ProductBundles and Products) you can submit the related ProductBundles and Products in the same request payload using the relationship Links and the \"create\" property.\n//Create Records - POST /\n$url = $instance_url . \"/Quotes\";\n//Set up the Record details\n$DateTime = new DateTime();\n//Expected Close Date in 1 Month\n$DateTime->add(new DateInterval(\"P1M\"));\n//Quote Record", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-4", "text": "//Quote Record\n$quote = array(\n 'name' => 'Test Quote',\n 'quote_stage' => 'Draft',\n 'date_quote_expected_closed' => $DateTime->format(DateTime::ISO8601),\n //Create Product Bundles\n 'product_bundles' => array(\n 'create' => array(\n array(\n \"name\" => \"Product Bundle 1\",\n \"bundle_stage\" => \"Draft\",\n \"currency_id\" => \":-99\",\n \"base_rate\" => \"1.0\",\n \"shipping\" => \"0.00\",\n \"products\" => array(\n //Create Product in Bundle 1\n \"create\" => array(\n array(\n \"tax_class\" => \"Taxable\",\n \"quantity\" => 1000.00,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-5", "text": "\"quantity\" => 1000.00,\n \"name\" => \"Test Product 1\",\n \"description\" => \"My Test Product\",\n \"mft_part_num\" => \"mft100012021\",\n \"cost_price\" => \"100.00\",\n \"list_price\" => \"200.00\",\n \"discount_price\" => \"175.00\",\n \"discount_amount\" => \"0.00\",\n \"discount_select\" => 0,\n \"product_template_id\" => \"\",\n \"type_id\" => \"\",\n \"status\" => \"Quotes\"\n )\n )\n ),\n //Create Product Bundle Note in Bundle 1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-6", "text": ")\n )\n ),\n //Create Product Bundle Note in Bundle 1\n \"product_bundle_notes\" => array(\n \"create\" => array(\n array(\n \"description\" => \"Free shipping\",\n \"position\" => 1\n )\n )\n )\n ),\n array(\n \"name\" => \"Product Bundle 2\",\n \"bundle_stage\" => \"Draft\",\n \"currency_id\" => \":-99\",\n \"base_rate\" => \"1.0\",\n \"shipping\" => \"25.00\",\n \"products\" => array(\n //Create Products in Bundle 2\n \"create\" => array(\n array(\n \"quantity\" => 1000.00,\n \"name\" => \"Test Product 2\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-7", "text": "\"name\" => \"Test Product 2\",\n \"description\" => \"My Other Product\",\n \"mft_part_num\" => \"mft100012234\",\n \"cost_price\" => \"150.00\",\n \"list_price\" => \"300.00\",\n \"discount_price\" => \"275.00\",\n \"discount_amount\" => \"0.00\",\n \"discount_select\" => 0,\n \"product_template_id\" => \"\",\n \"type_id\" => \"\",\n \"status\" => \"Quotes\"\n ),\n array(\n \"quantity\" => 500.00,\n \"name\" => \"Test Product 3\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-8", "text": "\"name\" => \"Test Product 3\",\n \"description\" => \"My Other Other Product\",\n \"mft_part_num\" => \"mft100012123\",\n \"cost_price\" => \"10.00\",\n \"list_price\" => \"500.00\",\n \"discount_price\" => \"400.00\",\n \"discount_amount\" => \"0.00\",\n \"discount_select\" => 0,\n \"product_template_id\" => \"\",\n \"type_id\" => \"\",\n \"status\" => \"Quotes\"\n )\n )\n )\n )\n ),\n )\n);\n$curl_request = curl_init($url);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-9", "text": ")\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-10", "text": "\"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($quote);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$createdQuote = json_decode($curl_response);\n//display the created record\nprint_r($createdQuote);\ncurl_close($curl_request);\nRequest Payload\nThe data sent to the server is shown below:\n{\n \"name\": \"Test Quote\",\n \"quote_stage\": \"Draft\",\n \"date_quote_expected_closed\": \"2017-06-12T11:51:57-0400\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-11", "text": "\"product_bundles\": {\n \"create\": [\n {\n \"name\": \"Product Bundle 1\",\n \"bundle_stage\": \"Draft\",\n \"currency_id\": \":-99\",\n \"base_rate\": \"1.0\",\n \"shipping\": \"0.00\",\n \"products\": {\n \"create\": [\n {\n \"tax_class\": \"Taxable\",\n \"quantity\": 1000,\n \"name\": \"Test Product 1\",\n \"description\": \"My Test Product\",\n \"mft_part_num\": \"mft100012021\",\n \"cost_price\": \"100.00\",\n \"list_price\": \"200.00\",\n \"discount_price\": \"175.00\",\n \"discount_amount\": \"0.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-12", "text": "\"discount_amount\": \"0.00\",\n \"discount_select\": 0,\n \"product_template_id\": \"\",\n \"type_id\": \"\",\n \"status\": \"Quotes\"\n }\n ]\n },\n \"product_bundle_notes\": {\n \"create\": [\n {\n \"description\": \"Free shipping\",\n \"position\": 1\n }\n ]\n }\n },\n {\n \"name\": \"Product Bundle 2\",\n \"bundle_stage\": \"Draft\",\n \"currency_id\": \":-99\",\n \"base_rate\": \"1.0\",\n \"shipping\": \"25.00\",\n \"products\": {\n \"create\": [\n {\n \"quantity\": 1000,\n \"name\": \"Test Product 2\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-13", "text": "\"quantity\": 1000,\n \"name\": \"Test Product 2\",\n \"description\": \"My Other Product\",\n \"mft_part_num\": \"mft100012234\",\n \"cost_price\": \"150.00\",\n \"list_price\": \"300.00\",\n \"discount_price\": \"275.00\",\n \"discount_amount\": \"0.00\",\n \"discount_select\": 0,\n \"product_template_id\": \"\",\n \"type_id\": \"\",\n \"status\": \"Quotes\"\n },\n {\n \"quantity\": 500,\n \"name\": \"Test Product 3\",\n \"description\": \"My Other Other Product\",\n \"mft_part_num\": \"mft100012123\",\n \"cost_price\": \"10.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-14", "text": "\"cost_price\": \"10.00\",\n \"list_price\": \"500.00\",\n \"discount_price\": \"400.00\",\n \"discount_amount\": \"0.00\",\n \"discount_select\": 0,\n \"product_template_id\": \"\",\n \"type_id\": \"\",\n \"status\": \"Quotes\"\n }\n ]\n }\n }\n ]\n }\n}\nResponse\nThe data received from the server is shown below:\n{\n \"id\": \"ee1e1ae8-372a-11e7-8bf4-3c15c2c94fb0\",\n \"name\": \"Test Quote\",\n \"date_entered\": \"2017-05-12T11:51:57-04:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-15", "text": "\"date_modified\": \"2017-05-12T11:51:57-04:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-16", "text": "}\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"shipper_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-17", "text": "\"deleted\": false,\n \"shipper_id\": \"\",\n \"shipper_name\": \"\",\n \"shippers\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"taxrate_id\": \"\",\n \"taxrate_name\": \"\",\n \"taxrates\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"taxrate_value\": \"0.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-18", "text": "}\n },\n \"taxrate_value\": \"0.000000\",\n \"show_line_nums\": true,\n \"quote_type\": \"Quotes\",\n \"date_quote_expected_closed\": \"2017-06-12\",\n \"original_po_date\": \"\",\n \"payment_terms\": \"\",\n \"date_quote_closed\": \"\",\n \"date_order_shipped\": \"\",\n \"order_stage\": \"\",\n \"quote_stage\": \"Draft\",\n \"purchase_order_num\": \"\",\n \"quote_num\": 2,\n \"subtotal\": \"650000.000000\",\n \"subtotal_usdollar\": \"650000.000000\",\n \"shipping\": \"0.000000\",\n \"shipping_usdollar\": \"0.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-19", "text": "\"shipping_usdollar\": \"0.000000\",\n \"discount\": \"\",\n \"deal_tot\": \"0.00\",\n \"deal_tot_discount_percentage\": \"0.00\",\n \"deal_tot_usdollar\": \"0.00\",\n \"new_sub\": \"650000.000000\",\n \"new_sub_usdollar\": \"650000.000000\",\n \"taxable_subtotal\": \"650000.000000\",\n \"tax\": \"0.000000\",\n \"tax_usdollar\": \"0.000000\",\n \"total\": \"650000.000000\",\n \"total_usdollar\": \"650000.000000\",\n \"billing_address_street\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-20", "text": "\"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"system_id\": 1,\n \"shipping_account_name\": \"\",\n \"shipping_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-21", "text": "}\n },\n \"shipping_account_id\": \"\",\n \"shipping_contact_name\": \"\",\n \"shipping_contacts\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },\n \"last_name\": \"\"\n },\n \"shipping_contact_id\": \"\",\n \"account_name\": \"\",\n \"billing_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-22", "text": "}\n },\n \"account_id\": \"\",\n \"billing_account_name\": \"\",\n \"billing_account_id\": \"\",\n \"billing_contact_name\": \"\",\n \"billing_contacts\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },\n \"last_name\": \"\"\n },\n \"billing_contact_id\": \"\",\n \"opportunity_name\": \"\",\n \"opportunities\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-23", "text": "\"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"opportunity_id\": \"\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"tag\": [\n ],\n \"locked_fields\": [\n ],\n \"assigned_user_id\": \"\",\n \"assigned_user_name\": \"\",\n \"assigned_user_link\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-24", "text": "}\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [\n {\n \"id\": \"a0512788-3680-11e7-b42f-3c15c2c94fb0\",\n \"name\": \"Administrator\",\n \"name_2\": \"\",\n \"primary\": false,\n \"selected\": false\n },\n {\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-25", "text": "\"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }\n ],\n \"currency_id\": \"-99\",\n \"base_rate\": \"1.000000\",\n \"currency_name\": \"\",\n \"currencies\": {\n \"name\": \"\",\n \"id\": \"-99\",\n \"_acl\": {\n \"fields\": [\n ],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },\n \"symbol\": \"\"\n },\n \"currency_symbol\": \"\",\n \"_acl\": {\n \"fields\": {\n }\n },\n \"_module\": \"Quotes\"\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-26", "text": "}\n },\n \"_module\": \"Quotes\"\n}\nYou might notice that the Response does not contain the related data. To view the related data use the //link/ - GET Endpoint.\nModifying the Quote's Product Bundles\nOnce the quote is created, you might need to add or remove Product Bundles from the Quote. This can be done using the // - PUT\u00c2\u00a0endpoint.\n//Create a new ProductBundle\n$url = $instance_url . \"/ProductBundles\";\n$productBundle = array(\n \"name\" => \"Product Bundle 3\",\n \"bundle_stage\" => \"Draft\",\n \"currency_id\" => \":-99\",\n \"base_rate\" => \"1.0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-27", "text": "\"base_rate\" => \"1.0\",\n \"shipping\" => \"0.00\",\n \"products\" => array(\n //Create Product in Bundle 3\n \"create\" => array(\n array(\n \"tax_class\" => \"Taxable\",\n \"quantity\" => 100.00,\n \"name\" => \"Test Product 3\",\n \"description\" => \"Test Product 3\",\n \"mft_part_num\" => \"mft100012021\",\n \"cost_price\" => \"100.00\",\n \"list_price\" => \"250.00\",\n \"discount_price\" => \"175.00\",\n \"discount_amount\" => \"0.00\",\n \"discount_select\" => 0,\n \"product_template_id\" => \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-28", "text": "\"product_template_id\" => \"\",\n \"type_id\" => \"\",\n \"status\" => \"Quotes\",\n \"position\" => 0\n )\n )\n ),\n //Create Product Bundle Note in Bundle 3\n \"product_bundle_notes\" => array(\n \"create\" => array(\n array(\n \"description\" => \"Free shipping\",\n \"position\" => 1\n )\n )\n )\n );\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-29", "text": "curl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($productBundle);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-30", "text": "//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$createdBundle = json_decode($curl_response);\n//display the created record\nprint_r($createdBundle);\ncurl_close($curl_request);\n//Add Bundle to Previously Created Quote\n//PUT to /Quotes/\n$url = $instance_url . \"/Quotes/\".$createdQuote->id;\n$quote = array(\n 'product_bundles' => array(\n 'delete' => array(\n 'some_bundle_id'\n ),\n 'add' => array(\n $createdBundle->id\n )\n )\n);\n$curl_request = curl_init($url);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-31", "text": ")\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-32", "text": "\"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($quote);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//PUT Request\ncurl_setopt($curl_request, CURLOPT_CUSTOMREQUEST, \"PUT\");\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$updatedQuote = json_decode($curl_response);\n//display the updated quote record\nprint_r($updatedQuote);\ncurl_close($curl_request);\n\u00c2\u00a0The above script removes a previously related Product Bundle from the Quote and adds the Product Bundle that was created before it in the script.\nRequest Payload", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "86984e17682c-33", "text": "Request Payload\nThe data sent to the server to alter the Quotes Product Bundles is shown below:\n{\n \"product_bundles\": {\n \"delete\": [\n \"some_bundle_id\"\n ],\n \"add\": [\n \"803972ea-3741-11e7-8edc-3c15c2c94fb0\"\n ]\n }\n}\nResponse Payload\nThe response payload will match the standard // - PUT Endpoint Response which is the entire values of the updated record. The previous Response for Creating the quote is the same as shown above.\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Quotes/index.html"} {"id": "31cee1a0dc2f-0", "text": "How to Ping\nOverview\nA PHP example\u00c2\u00a0demonstrating how to ping\u00c2\u00a0using the REST v11 /ping GET\u00c2\u00a0endpoint.\nPinging\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Ping/index.html"} {"id": "31cee1a0dc2f-1", "text": "\"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Ping/index.html"} {"id": "31cee1a0dc2f-2", "text": "curl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);\n$oauth_token = $oauth2_token_response_obj->access_token;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Ping/index.html"} {"id": "31cee1a0dc2f-3", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nPinging\nOnce we have authenticated, we can now ping the system as shown below.\n//Ping - GET /ping \n$ping_url = $instance_url . \"/ping\";\n$ping_request = curl_init($ping_url);\ncurl_setopt($ping_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($ping_request, CURLOPT_HEADER, false); //needed to return file headers\ncurl_setopt($ping_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($ping_request, CURLOPT_RETURNTRANSFER, 1);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Ping/index.html"} {"id": "31cee1a0dc2f-4", "text": "curl_setopt($ping_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($ping_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n$ping_response = curl_exec($ping_request);\nMore information on pinging\u00c2\u00a0can be found in the /ping\u00c2\u00a0documentation.\nResponse\n\"pong\"\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Ping/index.html"} {"id": "61c990020f1e-0", "text": "How to Check for Duplicate Records\nOverview\nAn PHP example\u00c2\u00a0demonstrating how to check for duplicate\u00c2\u00a0records using the v11 //duplicateCheck\u00c2\u00a0REST POST\u00c2\u00a0endpoint.\nDuplicate Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nRetrieving Duplicates\nNext, we will need to identify the records that are duplicates\u00c2\u00a0using the //duplicateCheck\u00c2\u00a0endpoint.\n//Check for duplicate records - POST //duplicateCheck\n$url = $instance_url . \"/Accounts/duplicateCheck\";\n//Set up the Record details\n$record = array(\n 'name' => 'Test Record',\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-4", "text": "curl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-5", "text": "//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$createdRecord = json_decode($curl_response);\n//display the created record\nprint_r($createdRecord);\ncurl_close($curl_request);\nMore information on the filter API\u00c2\u00a0can be found in the //duplicateCheck documentation.\nRequest Payload\nThe data sent to the server is shown below:\n{\n \"name\":\"Test Record\"\n}\nResponse\nThe data received from the server is shown below:\n{\n \"next_offset\": -1,\n \"records\": [{\n \"id\": \"7f6ea7be-60d6-11e6-8885-a0999b033b33\",\n \"name\": \"Test Record\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-6", "text": "\"name\": \"Test Record\",\n \"date_entered\": \"2016-08-12T14:48:25-07:00\",\n \"date_modified\": \"2016-08-12T14:48:25-07:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-7", "text": "\"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"Test Data 1\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-8", "text": "\"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-9", "text": "\"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-10", "text": "}\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-11", "text": "\"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [],\n \"email1\": \"\",\n \"email2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-12", "text": "\"email1\": \"\",\n \"email2\": \"\",\n \"invalid_email\": \"\",\n \"email_opt_out\": \"\",\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\",\n \"duplicate_check_rank\": 8\n }, {\n \"id\": \"868b4f16-60d6-11e6-bdfc-a0999b033b33\",\n \"name\": \"Test Record\",\n \"date_entered\": \"2016-08-12T14:48:37-07:00\",\n \"date_modified\": \"2016-08-12T14:48:37-07:00\",\n \"modified_user_id\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-13", "text": "\"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-14", "text": "\"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"Test Data 2\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-15", "text": "\"billing_address_city\": \"\",\n \"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-16", "text": "\"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-17", "text": "\"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"team_count\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-18", "text": "}\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [],\n \"email1\": \"\",\n \"email2\": \"\",\n \"invalid_email\": \"\",\n \"email_opt_out\": \"\",\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "61c990020f1e-19", "text": "\"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\",\n \"duplicate_check_rank\": 8\n }]\n}\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Check_for_Duplicate_Records/index.html"} {"id": "dc2a1a653323-0", "text": "How to Favorite a Record\nOverview\nA PHP example\u00c2\u00a0demonstrating how to favorite a record using the v11 /:record/favorite REST PUT API endpoint.\nFavoriting a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-1", "text": "\"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFavoriting a Record\nNext, we can favorite\u00c2\u00a0a specific record\u00c2\u00a0using the //:record/favorite\u00c2\u00a0endpoint.\n//Favorite record - PUT //:record/favorite\n$favorite_url = $instance_url . \"/Accounts/ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a/favorite\";\n$favorite_request = curl_init($favorite_url);\ncurl_setopt($favorite_request, CURLOPT_CUSTOMREQUEST, \"PUT\");", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-4", "text": "curl_setopt($favorite_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($favorite_request, CURLOPT_HEADER, false);\ncurl_setopt($favorite_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($favorite_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($favorite_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($favorite_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$favorite_response = curl_exec($favorite_request);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-5", "text": "));\n//execute request\n$favorite_response = curl_exec($favorite_request);\nMore information on theunfavorite API\u00c2\u00a0can be found in the //:record/favorite PUT\u00c2\u00a0documentation.\nRequest Payload\nThe data sent to the server is shown below:\nThis endpoint does not accept any request arguments.\nResponse\nThe data received from the server is shown below:\n{\n \"id\": \"ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a\",\n \"name\": \"Union Bank\",\n \"date_entered\": \"2016-03-22T17:49:50-05:00\",\n \"date_modified\": \"2016-03-30T17:44:20-05:00\",\n \"modified_user_id\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-6", "text": "\"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-7", "text": "\"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"Customer\",\n \"industry\": \"Banking\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"67321 West Siam St.\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"Ohio\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-8", "text": "\"billing_address_city\": \"Ohio\",\n \"billing_address_state\": \"CA\",\n \"billing_address_postalcode\": \"25159\",\n \"billing_address_country\": \"USA\",\n \"rating\": \"\",\n \"phone_office\": \"(065) 489-6104\",\n \"phone_alternate\": \"\",\n \"website\": \"www.qahr.edu\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"67321 West Siam St.\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-9", "text": "\"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"Ohio\",\n \"shipping_address_state\": \"CA\",\n \"shipping_address_postalcode\": \"25159\",\n \"shipping_address_country\": \"USA\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-10", "text": "\"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,\n \"my_favorite\": true,\n \"tag\": [],\n \"assigned_user_id\": \"seed_sarah_id\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"assigned_user_link\": {\n \"full_name\": \"Sarah Smith\",\n \"id\": \"seed_sarah_id\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-11", "text": "\"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"West\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-12", "text": "\"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [{\n \"email_address\": \"hr.support.kid@example.info\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": true,\n \"reply_to_address\": false\n }, {\n \"email_address\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": false,\n \"reply_to_address\": false\n }],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "dc2a1a653323-13", "text": "\"reply_to_address\": false\n }],\n \"email1\": \"hr.support.kid@example.info\",\n \"email2\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"email_opt_out\": false,\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\"\n}\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Favorite_a_Record/index.html"} {"id": "9be5aeab2318-0", "text": "How to Filter a List of Records\nOverview\nA PHP example\u00c2\u00a0demonstrating how to filter records\u00c2\u00a0using the v11 //filter REST POST endpoints.\nFiltering Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-1", "text": "\"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFiltering Records\nNext, we can\u00c2\u00a0filter\u00c2\u00a0the records we want to return\u00c2\u00a0using the //filter\u00c2\u00a0endpoint with a POST request.\n//Identify records to export - POST //filter\n$filter_url = $instance_url . \"/Accounts/filter\";\n$filter_arguments = array(\n \"filter\" => array(\n array(\n '$or' => array(\n array(\n //name starts with 'a'\n \"name\" => array(\n '$starts'=>\"A\",\n )\n ),\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-4", "text": ")\n ),\n array(\n //name starts with 'b'\n \"name\" => array(\n '$starts'=>\"b\",\n )\n )\n ),\n ),\n ),\n \"max_num\" => 2,\n \"offset\" => 0,\n \"fields\" => \"id\",\n \"order_by\" => \"date_entered\",\n \"favorites\" => false,\n \"my_items\" => false,\n);\n$filter_request = curl_init($filter_url);\ncurl_setopt($filter_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($filter_request, CURLOPT_HEADER, false);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-5", "text": "curl_setopt($filter_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($filter_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($filter_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($filter_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($filter_arguments);\ncurl_setopt($filter_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$filter_response = curl_exec($filter_request);\n//decode json", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-6", "text": "$filter_response = curl_exec($filter_request);\n//decode json\n$filter_response_obj = json_decode($filter_response);\nMore information on the filter API\u00c2\u00a0can be found in the //filter documentation.\nNote : The\u00c2\u00a0//filter endpoint can be called using a GET request as well, though long URL requests can have issues so the POST request is recommended.\u00c2\u00a0\nRequest Payload\nThe data sent to the server is shown below:\n{ \n \"filter\":[ \n { \n \"$or\":[ \n { \n \"name\":{ \n \"$starts\":\"A\"\n }\n },\n { \n \"name\":{ \n \"$starts\":\"b\"\n }\n }\n ]\n }\n ],\n \"max_num\":2,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-7", "text": "]\n }\n ],\n \"max_num\":2,\n \"offset\":0,\n \"fields\":\"id\",\n \"order_by\":\"date_entered\",\n \"favorites\":false,\n \"my_items\":false\n}\nResponse\nThe data received from the server is shown below:\n{ \n \"next_offset\":2,\n \"records\":[ \n { \n \"id\":\"f16760a4-3a52-f77d-1522-5703ca28925f\",\n \"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "9be5aeab2318-8", "text": "},\n \"_module\":\"Accounts\"\n },\n { \n \"id\":\"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\",\n \"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n }\n ]\n}\nDownload\nYou can download the full API example using POST\u00c2\u00a0here\u00c2\u00a0and using GET here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Filter_a_List_of_Records/index.html"} {"id": "d08122c5a06e-0", "text": "How to Unfavorite a Record\nOverview\nA PHP example demonstrating how to unfavorite a record using the v11 //:record/unfavorite REST PUT\u00c2\u00a0endpoint.\nUnfavoriting a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nUnfavoriting a Record\nNext, we can unfavorite\u00c2\u00a0a specific record\u00c2\u00a0using the //:record/unfavorite\u00c2\u00a0endpoint.\n//Unfavorite record - PUT //:record/unfavorite\n$unfavorite_url = $instance_url . \"/Accounts/ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a/unfavorite\";\n$unfavorite_request = curl_init($unfavorite_url);\ncurl_setopt($unfavorite_request, CURLOPT_CUSTOMREQUEST, \"PUT\");", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-4", "text": "curl_setopt($unfavorite_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($unfavorite_request, CURLOPT_HEADER, false);\ncurl_setopt($unfavorite_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($unfavorite_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($unfavorite_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($unfavorite_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-5", "text": "));\n//execute request\n$unfavorite_response = curl_exec($unfavorite_request);\nMore information on the unfavorite API\u00c2\u00a0can be found in the //:record/unfavorite PUT\u00c2\u00a0documentation.\nRequest Payload\nThe data sent to the server is shown below:\nThis endpoint does not accept any request arguments.\nResponse\nThe data received from the server is shown below:\n{\n \"id\": \"ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a\",\n \"name\": \"Union Bank\",\n \"date_entered\": \"2016-03-22T17:49:50-05:00\",\n \"date_modified\": \"2016-03-30T17:44:20-05:00\",\n \"modified_user_id\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-6", "text": "\"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-7", "text": "\"fields\": [],\n \"delete\": \"no\",\n \"_hash\": \"8e11bf9be8f04daddee9d08d44ea891e\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"Customer\",\n \"industry\": \"Banking\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"67321 West Siam St.\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"Ohio\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-8", "text": "\"billing_address_city\": \"Ohio\",\n \"billing_address_state\": \"CA\",\n \"billing_address_postalcode\": \"25159\",\n \"billing_address_country\": \"USA\",\n \"rating\": \"\",\n \"phone_office\": \"(065) 489-6104\",\n \"phone_alternate\": \"\",\n \"website\": \"www.qahr.edu\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"67321 West Siam St.\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-9", "text": "\"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"Ohio\",\n \"shipping_address_state\": \"CA\",\n \"shipping_address_postalcode\": \"25159\",\n \"shipping_address_country\": \"USA\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-10", "text": "\"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"seed_sarah_id\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"assigned_user_link\": {\n \"full_name\": \"Sarah Smith\",\n \"id\": \"seed_sarah_id\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-11", "text": "\"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"West\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-12", "text": "\"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": false\n }, {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }],\n \"email\": [{\n \"email_address\": \"hr.support.kid@example.info\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": true,\n \"reply_to_address\": false\n }, {\n \"email_address\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": false,\n \"reply_to_address\": false\n }],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "d08122c5a06e-13", "text": "\"reply_to_address\": false\n }],\n \"email1\": \"hr.support.kid@example.info\",\n \"email2\": \"info.support.the@example.com\",\n \"invalid_email\": false,\n \"email_opt_out\": false,\n \"email_addresses_non_primary\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Accounts\"\n}\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfavorite_a_Record/index.html"} {"id": "ec98127e489e-0", "text": "How to Follow a Record\nOverview\nA PHP example demonstrating how to\u00c2\u00a0follow a record using the v11 //:record/subscribe REST POST\u00c2\u00a0endpoint.\nFollowing a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Follow_a_Record/index.html"} {"id": "ec98127e489e-1", "text": "\"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Follow_a_Record/index.html"} {"id": "ec98127e489e-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Follow_a_Record/index.html"} {"id": "ec98127e489e-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFollowing a Record\nNext, we can follow a specific record\u00c2\u00a0using the //:record/subscribe\u00c2\u00a0endpoint.\n//Subscribe to record - POST //:record/subscribe\n$subscribe_url = $instance_url . \"/Accounts/ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a/subscribe\";\n$subscribe_request = curl_init($subscribe_url);\ncurl_setopt($subscribe_request, CURLOPT_POST, 1);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Follow_a_Record/index.html"} {"id": "ec98127e489e-4", "text": "curl_setopt($subscribe_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($subscribe_request, CURLOPT_HEADER, false);\ncurl_setopt($subscribe_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($subscribe_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($subscribe_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($subscribe_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Follow_a_Record/index.html"} {"id": "ec98127e489e-5", "text": "));\n//execute request\n$subscribe_response = curl_exec($subscribe_request);\nMore information on the subscribe API\u00c2\u00a0can be found in the //:record/subscribe POST\u00c2\u00a0documentation.\nRequest Payload\nThe data sent to the server is shown below:\nThis endpoint does not accept any request arguments.\nResponse\nThe data received from the server is shown below:\n\"58f96315-9e75-6562-42e9-5705917d2cdc\"\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Follow_a_Record/index.html"} {"id": "23e746105681-0", "text": "How to Manipulate Records (CRUD)\nOverview\nA PHP example\u00c2\u00a0demonstrating how to use the CRUD (Create, Read, Update, Delete) endpoints in the REST v11 API.\nCRUD Operations\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nCreating a Record\nNext, we need to submit the record to the Sugar instance\u00c2\u00a0using the /\u00c2\u00a0endpoint. In this example\u00c2\u00a0we are going to create an Account record with a Name of 'Test Record' and an email of 'test@sugar.com'.\n//Create Records - POST /\n$url = $instance_url . \"/Accounts\";\n//Set up the Record details\n$record = array(\n 'name' => 'Test Record',\n 'email' => array(\n array(\n 'email_address' => 'test@sugar.com',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-4", "text": "array(\n 'email_address' => 'test@sugar.com',\n 'primary_address' => true\n )\n ),\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-5", "text": "curl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$createdRecord = json_decode($curl_response);\n//display the created record\nprint_r($createdRecord);\ncurl_close($curl_request);\nMore information on this API endpoint can be found in the / - POST\u00c2\u00a0documentation.\nRequest Payload", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-6", "text": "Request Payload\nThe data sent to the server is shown below:\n{\n \"name\": \"Test Record\",\n \"email\": [{ \"email_address\": \"test@sugar.com\", \"primary_address\": true }]\n}\nResponse\nThe data received from the server is shown below:\n{\n \"id\": \"ae78a068-7a0c-11e8-8b9e-6a0001bcacb0\",\n \"name\": \"Test Record\",\n \"date_entered\": \"2018-06-27T15:19:11+02:00\",\n \"date_modified\": \"2018-06-27T15:19:11+02:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-7", "text": "\"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-8", "text": "\"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-9", "text": "\"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-10", "text": "\"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"campaign_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-11", "text": "},\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"locked_fields\": [],\n \"assigned_user_id\": \"\",\n \"assigned_user_name\": \"\",\n \"assigned_user_link\": {\n \"full_name\": \"\",\n \"id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-12", "text": "\"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"team_name\": [\n {\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }\n ],\n \"email\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-13", "text": "}\n ],\n \"email\": [\n {\n \"email_address\": \"test@sugar.com\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"email_address_id\": \"85125194-7a0a-11e8-9c17-6a0001bcacb0\",\n \"primary_address\": true,\n \"reply_to_address\": false\n }\n ],\n \"email1\": \"test@sugar.com\",\n \"email2\": \"\",\n \"invalid_email\": false,\n \"email_opt_out\": false,\n \"email_addresses_non_primary\": \"\",\n \"test_c\": \"\",\n \"dri_workflow_template_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-14", "text": "\"dri_workflow_template_id\": \"\",\n \"dri_workflow_template_name\": \"\",\n \"dri_workflow_template_link\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Accounts\"\n}\nGetting a Record\nNext, we can\u00c2\u00a0get the created record from\u00c2\u00a0the Sugar instance\u00c2\u00a0using the //:record\u00c2\u00a0endpoint. In this example,\u00c2\u00a0we are going to get\u00c2\u00a0an Account record by it's ID, but only request the Name, Email, and Industry fields.\n$id = $createdRecord->id;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-15", "text": "$id = $createdRecord->id;\n//Get Record - GET //:record\n$url = $instance_url . \"/Accounts/$id\";\n//Setup request to only return some fields on module\n$data = array(\n 'fields' => 'name,email1,industry'\n);\n//Add data to the URL\n$url = $url.\"?\".http_build_query($data);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-16", "text": "curl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$record = json_decode($curl_response);\n//display the created record\nprint_r($record);\ncurl_close($curl_request);\nUpdating a Record", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-17", "text": "curl_close($curl_request);\nUpdating a Record\nNext, we can\u00c2\u00a0update \u00c2\u00a0the record in\u00c2\u00a0the Sugar instance\u00c2\u00a0using the //:record\u00c2\u00a0endpoint, and the PUT Http method. In this example,\u00c2\u00a0we are going to update the\u00c2\u00a0Account record and change it's name to \"Updated Test Record\".\n$id = $record->id;\n//Update Record - PUT //:record\n$url = $instance_url . \"/Accounts/$id\";\n//Set up the Record details\n$record->name = 'Updated Test Record';\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_CUSTOMREQUEST, \"PUT\");", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-18", "text": "curl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-19", "text": "));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$updatedRecord = json_decode($curl_response);\n//display the created record\necho \"Updated Record Name:\".$updatedRecord->name;\ncurl_close($curl_request);\nMore information on this API endpoint can be found in the //:record - PUT\u00c2\u00a0documentation.\nRequest Payload\nThe URL\u00c2\u00a0sent to the server is shown below:\n{\"name\":\"Updated Test Record\"}\nResponse\nThe data received from the server is shown below:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-20", "text": "Response\nThe data received from the server is shown below:\n{\n \"id\": \"ae78a068-7a0c-11e8-8b9e-6a0001bcacb0\",\n \"name\": \"Updated Test Record\",\n \"date_entered\": \"2018-06-27T15:19:11+02:00\",\n \"date_modified\": \"2018-06-27T15:23:19+02:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-21", "text": "\"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-22", "text": "},\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-23", "text": "\"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-24", "text": "\"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-25", "text": "\"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [],\n \"locked_fields\": [],\n \"assigned_user_id\": \"\",\n \"assigned_user_name\": \"\",\n \"assigned_user_link\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"team_count\": \"\",\n \"team_count_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-26", "text": "\"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"team_name\": [\n {\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }\n ],\n \"email\": [\n {\n \"email_address\": \"test@sugar.com\",\n \"invalid_email\": false,\n \"opt_out\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-27", "text": "\"invalid_email\": false,\n \"opt_out\": false,\n \"email_address_id\": \"85125194-7a0a-11e8-9c17-6a0001bcacb0\",\n \"primary_address\": true,\n \"reply_to_address\": false\n }\n ],\n \"email1\": \"test@sugar.com\",\n \"email2\": \"\",\n \"invalid_email\": false,\n \"email_opt_out\": false,\n \"email_addresses_non_primary\": \"\",\n \"test_c\": \"\",\n \"dri_workflow_template_id\": \"\",\n \"dri_workflow_template_name\": \"\",\n \"dri_workflow_template_link\": {\n \"name\": \"\",\n \"id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-28", "text": "\"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Accounts\"\n}\nDeleting a Record\nNext, we can delete\u00c2\u00a0the record from\u00c2\u00a0the Sugar instance\u00c2\u00a0using the //:record\u00c2\u00a0endpoint, by using the DELETE Http Method.\n$id = $updatedRecord->id;\n//Delete Record - DELETE //:record\n$url = $instance_url . \"/Accounts/$id\";\n$curl_request = curl_init($url);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-29", "text": "$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-30", "text": "\"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$deletedRecord = json_decode($curl_response);\n//display the created record\necho \"Deleted Record:\".$deletedRecord->id;\ncurl_close($curl_request);\nMore information on this API endpoint can be found in the //:record - DELETE\u00c2\u00a0documentation.\nRequest Payload\nThe URL\u00c2\u00a0sent to the server is shown below:\nNo payload is sent for this request.\nResponse\nThe data received from the server is shown below:\n{\"id\":\"ae78a068-7a0c-11e8-8b9e-6a0001bcacb0\"}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "23e746105681-31", "text": "Download\nYou can download the full API example here.\u00c2\u00a0\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Records_CRUD/index.html"} {"id": "6deb68b23dcb-0", "text": "How to Manipulate File Attachments\nOverview\nA PHP example\u00c2\u00a0demonstrating how to attach a file to a record using the v11 /:record/file/:field\u00c2\u00a0REST POST\u00c2\u00a0API endpoint, then retrieve it with the GET endpoint.\nManipulating File Attachments\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-1", "text": "//client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-2", "text": "curl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-3", "text": "//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);\n$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nSubmitting a File Attachment\nNext, we can create a Note record using the //:record/file/:field\u00c2\u00a0endpoint.\n//Create Note - POST /\n$url = $instance_url . \"/Notes\";\n//Set up the Record details\n$record = array(\n 'name' => 'Test Note'\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-4", "text": "$record = array(\n 'name' => 'Test Note'\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_POST, 1);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-5", "text": "curl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$noteRecord = json_decode($curl_response);\n//display the created record\necho \"Created Record: \". $noteRecord->id;\ncurl_close($curl_request);\n//Add An Attachment to the Note", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-6", "text": "curl_close($curl_request);\n//Add An Attachment to the Note\n$url = $instance_url . \"/Notes/{$noteRecord->id}/file/filename\";\n$file_arguments = array(\n \"format\" => \"sugar-html-json\",\n \"delete_if_fails\" => true,\n \"oauth_token\" => $oauth_token,\n);\nif ((version_compare(PHP_VERSION, '5.5') >= 0)) {\n $file_arguments['filename'] = new CURLFile($path);\n} else {\n $file_arguments['filename'] = '@'.$path;\n}\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_POST, 1);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-7", "text": "curl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\n//Do NOT set Content Type Header to JSON\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"oauth-token: {$oauth_token}\"\n));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-8", "text": "\"oauth-token: {$oauth_token}\"\n));\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $file_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$noteRecord = json_decode($curl_response);\n//print Note with attachment details\nprint_r($noteRecord);\ncurl_close($curl_request);\nNote: As of PHP 5.6, the '@' upload modifier is disabled for security reasons by the CURLOPT_SAFE_UPLOAD option. We recommending using CURLFILE if using PHP >= 5.5, If you would prefer\u00c2\u00a0to use the upload modifier, you can set the CURLOPT_SAFE_UPLOAD option to false.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-9", "text": "curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false);\nRequest\n//Raw Post - not json encoded\nArray\n(\n [format] => sugar-html-json\n [delete_if_fails] => 1\n [oauth_token] => 09eac950-c99e-4786-8b10-a3670f38fb3f\n [filename] => CURLFile Object\n (\n [name] => /Library/WebServer/Documents/file_attachment_manipulation/testfile.txt\n [mime] => \n [postname] => \n )\n)\nResponse\n{\n \"filename\":{\n \"content-type\":\"text\\/plain\",\n \"content-length\":13,\n \"name\":\"upload.txt\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-10", "text": "\"content-length\":13,\n \"name\":\"upload.txt\",\n \"uri\":\"http:\\/\\/\\/rest\\/v11\\/Notes\\/7b49aebd-8734-9773-8ef1-53553fa369c7\\/file\\/filename\"\n },\n \"record\":{\n \"my_favorite\":false,\n \"following\":true,\n \"id\":\"7b49aebd-8734-9773-8ef1-53553fa369c7\",\n \"name\":\"My Note\",\n \"date_modified\":\"2014-04-21T11:53:53-04:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"admin\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-11", "text": "\"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":[\n ],\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"\",\n \"assigned_user_name\":\"\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"file_mime_type\":\"text\\/plain\",\n \"file_url\":\"\",\n \"filename\":\"upload.txt\",\n \"parent_type\":\"\",\n \"parent_id\":\"\",\n \"contact_id\":\"\",\n \"portal_flag\":false,\n \"embed_flag\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-12", "text": "\"portal_flag\":false,\n \"embed_flag\":false,\n \"parent_name\":\"\",\n \"contact_name\":\"\",\n \"contact_phone\":\"\",\n \"contact_email\":\"\",\n \"account_id\":\"\",\n \"opportunity_id\":\"\",\n \"acase_id\":\"\",\n \"lead_id\":\"\",\n \"product_id\":\"\",\n \"quote_id\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Notes\"\n }\n}\nGetting a File Attachment", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-13", "text": "\"_module\":\"Notes\"\n }\n}\nGetting a File Attachment\nNext, we can retrieve\u00c2\u00a0the file attachment stored in Sugar by utilizing the\u00c2\u00a0//:record/file/:field\u00c2\u00a0GET endpoint. The following code example, works when being accessed via a web browser, as it receives the response from Sugar, and sets the Headers received from Sugar on itself, so that the browser knows to download a\u00c2\u00a0file.\n//Get An Attachment on a Note\n$url = $instance_url . \"/Notes/{$noteRecord->id}/file/filename\";\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\n//Return Headers", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-14", "text": "//Return Headers\ncurl_setopt($curl_request, CURLOPT_HEADER, true);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\n//DO NOT set Content Type Header to JSON\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$curl_response = curl_exec($curl_request);\n//Get Return Headers", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-15", "text": "//Get Return Headers\n$header_size = curl_getinfo($curl_request,CURLINFO_HEADER_SIZE);\n$headers = substr($curl_response, 0, $header_size);\n//Outputting the file contents\necho 'File saved to download.txt';\n$file = substr($curl_response, $header_size);\nfile_put_contents('download.txt', $file);\ncurl_close($curl_request);\nRequest\nhttp://{site_url}/rest/v11/Notes/bd490e66-2ea7-9349-19cf-535569400cca/file/filename\nNote: GET request arguments are passed in the form of a query string.\nResponse\nHTTP/1.1 200 OK\nDate: Wed, 12 Mar 2014 15:15:03 GMT", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-16", "text": "Date: Wed, 12 Mar 2014 15:15:03 GMT\nServer: Apache/2.2.22 (Unix) PHP/5.3.14 mod_ssl/2.2.22 OpenSSL/0.9.8o\nX-Powered-By: PHP/5.3.14 ZendServer/5.0\nSet-Cookie: ZDEDebuggerPresent=php,phtml,php3; path=/\nExpires:\nCache-Control: max-age=0, private\nPragma:\nContent-Disposition: attachment; filename=\"upload.txt\"\nX-Content-Type-Options: nosniff\nETag: d41d8cd98f00b204e9800998ecf8427e\nContent-Length: 16\nConnection: close\nContent-Type: application/octet-stream\nThis is the file contents.\nDownload", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "6deb68b23dcb-17", "text": "Content-Type: application/octet-stream\nThis is the file contents.\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_File_Attachments/index.html"} {"id": "aa1dab64799c-0", "text": "How to Get the Most Active Users\nOverview\nA PHP example demonstrating how to fetch the most active users for meetings, calls, inbound emails, and outbound emails using the v11 /mostactiveusers REST GET\u00c2\u00a0endpoint.\nGet Most Active Users\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "aa1dab64799c-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "aa1dab64799c-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "aa1dab64799c-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nActive Users\nNext, we can retrieve\u00c2\u00a0the most active users\u00c2\u00a0using the /mostactiveusers\u00c2\u00a0endpoint.\n//Fetch users - GET /mostactiveusers\n$most_active_arguments = array(\n \"days\" => 30,\n);\n$most_active_url = $instance_url . \"/mostactiveusers\";\n$most_active_url .= \"?\" . http_build_query($most_active_arguments);\n$most_active_request = curl_init($most_active_url);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "aa1dab64799c-4", "text": "$most_active_request = curl_init($most_active_url);\ncurl_setopt($most_active_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($most_active_request, CURLOPT_HEADER, false);\ncurl_setopt($most_active_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($most_active_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($most_active_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($most_active_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "aa1dab64799c-5", "text": "\"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$most_active_response = curl_exec($most_active_request);\n//decode json\n$most_active_response_obj = json_decode($most_active_response);\nMore information on the mostactiveusers API\u00c2\u00a0can be found in the /mostactiveusers documentation.\nRequest\nThe URL\u00c2\u00a0sent to the server is shown below:\nhttp://{site_url}/rest/v11/mostactiveusers?days=30\nResponse\nThe data received from the server is shown below:\n{\n \"meetings\": {\n \"user_id\": \"seed_max_id\",\n \"count\": \"21\",\n \"first_name\": \"Max\",\n \"last_name\": \"Jensen\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "aa1dab64799c-6", "text": "\"last_name\": \"Jensen\"\n },\n \"calls\": {\n \"user_id\": \"seed_chris_id\",\n \"count\": \"4\",\n \"first_name\": \"Chris\",\n \"last_name\": \"Olliver\"\n },\n \"inbound_emails\": {\n \"user_id\": \"seed_chris_id\",\n \"count\": \"23\",\n \"first_name\": \"Chris\",\n \"last_name\": \"Olliver\"\n },\n \"outbound_emails\": {\n \"user_id\": \"seed_sarah_id\",\n \"count\": \"20\",\n \"first_name\": \"Sarah\",\n \"last_name\": \"Smith\"\n }\n}\nDownload\nYou can download the full API example here.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "aa1dab64799c-7", "text": "}\n}\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Get_the_Most_Active_Users/index.html"} {"id": "967482cccf62-0", "text": "How to Fetch the Current Users Time\nOverview\nA PHP example\u00c2\u00a0demonstrating how to fetch the current users time with the v11 /ping/whattimeisit REST GET endpoint.\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "967482cccf62-1", "text": "\"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "967482cccf62-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "967482cccf62-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nGetting the Current Time and Date for the User\n//Set up the time parameters - GET /ping/whattimeisit\n$time_url = $instance_url . \"/ping/whattimeisit\";\n$time_request = curl_init($search_url);\ncurl_setopt($time_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($time_request, CURLOPT_HEADER, false);\ncurl_setopt($time_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "967482cccf62-4", "text": "curl_setopt($time_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($time_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($time_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$time_response = curl_exec($time_request);\n//decode json\n$time_response_obj = json_decode($time_response);\nRequest\nhttp://{site_url}/rest/v11/ping/whattimeisit\nResponse\n\"2014-04-08T14:59:13-04:00\"\nDownloads\nYou can download the full API example here", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "967482cccf62-5", "text": "Downloads\nYou can download the full API example here\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_the_Current_Users_Time/index.html"} {"id": "ab8965c96cd1-0", "text": "How to Fetch Related Records\nOverview\nA PHP example\u00c2\u00a0demonstrating how to fetch related records\u00c2\u00a0using the v11\u00c2\u00a0//:record/link/:link REST GET endpoints.\nFetching Related Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFetching Related Records\nNext, we can fetch the related records we want to return\u00c2\u00a0using the\u00c2\u00a0//:record/link/:link endpoint with a GET request where\nElement\nMeaning\n\nThe parent module name\n:record\nThe parent records ID\nlink\nthe actual word \"link\"\n:link\nThe name of the relationship to fetch\nIn this example, we will fetch the related Contacts for an Account\n//Identify records to fetch - POST //:record/link/:link", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-4", "text": "$fetch_url = $instance_url . \"/Accounts/d8f05e67-dee3-553d-0040-5342e88f2fd1/link/contacts\";\n$fetch_request = curl_init($fetch_url);\ncurl_setopt($fetch_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($fetch_request, CURLOPT_HEADER, false);\ncurl_setopt($fetch_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($fetch_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($fetch_request, CURLOPT_FOLLOWLOCATION, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-5", "text": "curl_setopt($fetch_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$fetch_response = curl_exec($fetch_request);\n//decode json\n$fetch_response_obj = json_decode($fetch_response);\nRequest\nhttp://{site_url}/rest/v11/Accounts/d8f05e67-dee3-553d-0040-5342e88f2fd1/link/contacts\nResponse\nThe data received from the server is shown below:\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"my_favorite\":false,\n \"following\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-6", "text": "{\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"819f4149-b007-a6da-a5fa-56fedbf2de77\",\n \"name\":\"Florine Marcus\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-01T15:34:00-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-7", "text": "\"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"support27@example.tv\",\n \"primary_address\":true,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":false\n },\n {\n \"email_address\":\"support.support.kid@example.net\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-8", "text": "{\n \"email_address\":\"support.support.kid@example.net\",\n \"primary_address\":false,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":true\n }\n ],\n \"email1\":\"support27@example.tv\",\n \"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Florine\",\n \"last_name\":\"Marcus\",\n \"full_name\":\"Florine Marcus\",\n \"title\":\"President\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-9", "text": "\"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(746) 162-2314\",\n \"phone_mobile\":\"(941) 088-2874\",\n \"phone_work\":\"(827) 541-9614\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"1715 Scott Dr\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Alabama\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"70187\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-10", "text": "\"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Employee\",\n \"account_name\":\"MTM Investment Bank F S B\",\n \"account_id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-11", "text": "\"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"FlorineMarcus119\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-12", "text": "\"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\"\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"527cc1a9-7984-91fe-4148-56fedbc356aa\",\n \"name\":\"Shaneka Aceto\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-01T15:34:00-05:00\",\n \"modified_user_id\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-13", "text": "\"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-14", "text": "\"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"support17@example.cn\",\n \"primary_address\":true,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":false\n },\n {\n \"email_address\":\"section.sugar.the@example.tv\",\n \"primary_address\":false,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":true\n }\n ],\n \"email1\":\"support17@example.cn\",\n \"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-15", "text": "\"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Shaneka\",\n \"last_name\":\"Aceto\",\n \"full_name\":\"Shaneka Aceto\",\n \"title\":\"IT Developer\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(502) 528-5151\",\n \"phone_mobile\":\"(816) 719-3739\",\n \"phone_work\":\"(994) 769-5855\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"123 Anywhere Street\",\n \"primary_address_street_2\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-16", "text": "\"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"15128\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Email\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-17", "text": "\"email_and_name1\":\"\",\n \"lead_source\":\"Email\",\n \"account_name\":\"MTM Investment Bank F S B\",\n \"account_id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"ShanekaAceto151\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-18", "text": "\"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\"\n },\n {\n \"my_favorite\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-19", "text": "},\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"42d703ed-f834-f87c-967d-56fedb044051\",\n \"name\":\"Johnnie Pina\",\n \"date_entered\":\"2016-04-01T15:34:00-05:00\",\n \"date_modified\":\"2016-04-01T15:34:00-05:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-20", "text": "\"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"sugar.support.hr@example.co.uk\",\n \"primary_address\":true,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":false\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-21", "text": "\"opt_out\":false\n },\n {\n \"email_address\":\"support.im@example.tw\",\n \"primary_address\":false,\n \"reply_to_address\":false,\n \"invalid_email\":false,\n \"opt_out\":true\n }\n ],\n \"email1\":\"sugar.support.hr@example.co.uk\",\n \"email2\":\"\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Johnnie\",\n \"last_name\":\"Pina\",\n \"full_name\":\"Johnnie Pina\",\n \"title\":\"VP Operations\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-22", "text": "\"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(159) 335-1423\",\n \"phone_mobile\":\"(580) 140-4050\",\n \"phone_work\":\"(418) 792-9611\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"70648\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-23", "text": "\"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Direct Mail\",\n \"account_name\":\"MTM Investment Bank F S B\",\n \"account_id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-24", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"JohnniePina194\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "ab8965c96cd1-25", "text": "\"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\"\n }\n ]\n}\nDownload\nYou can download the full API example here\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Fetch_Related_Records/index.html"} {"id": "7bb710a1c7c3-0", "text": "How to Manipulate Tags (CRUD)\nOverview\nA PHP example\u00c2\u00a0demonstrating how to work with tags using the v11 REST\u00c2\u00a0endpoints.\nAuthentication\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-1", "text": "\"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-2", "text": "curl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);\n$oauth_token = $oauth2_token_response_obj->access_token;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-3", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout POST endpoint documentation.\nCreating Tags\nOnce you get oauth_token you would need to use it in the following API Calls to create tags.\u00c2\u00a0\n//Create Tags - /Tags POST\n$url = $instance_url . \"/Tags\";\n//Set up the tag name\n$record = array(\n 'name' => 'Tag Name',\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-4", "text": "curl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$createdRecord = json_decode($curl_response);\n//display the created record", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-5", "text": "//display the created record\nprint_r($createdRecord);\ncurl_close($curl_request);\nMore information on this API endpoint can be found in the / POST documentation.\nRequest Payload\n{\"name\":\"Tag Name\"}\nResponse\n{\n \"id\": \"12c6ee48-1000-11e8-8838-6a0001bcacb0\",\n \"name\": \"Tag Name\",\n \"date_entered\": \"2018-02-12T15:21:52+01:00\",\n \"date_modified\": \"2018-02-12T15:21:52+01:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-6", "text": "\"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-7", "text": "\"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"name_lower\": \"tag name\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"locked_fields\": [],\n \"source_id\": \"\",\n \"source_type\": \"\",\n \"source_meta\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-8", "text": "\"source_type\": \"\",\n \"source_meta\": \"\",\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Tags\"\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-9", "text": "\"_module\": \"Tags\"\n}\nCreating Records with Tags\nYou can also create tags when\u00c2\u00a0creating new\u00c2\u00a0records. All you need to do populate the tag field as an array when creating a record.\u00c2\u00a0Here is\u00c2\u00a0an example that demonstrates using the\u00c2\u00a0/ POST\u00c2\u00a0endpoint.\n//Create Records with Tags - / POST\n$url = $instance_url . \"/Accounts\";\n//Set up the Record details with Tags\n$record = array(\n 'name' => 'Test Record',\n 'tag' => array(\n 'First Tag',\n 'Second Tag'\n )\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-10", "text": "curl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-11", "text": "//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$createdRecord = json_decode($curl_response);\n//display the created record\nprint_r($createdRecord);\ncurl_close($curl_request);\nMore information on this API endpoint can be found in the / POST documentation.\nRequest Payload\nThe data sent to the server is shown below:\n{ \n \"name\": \"Test Record\",\n \"tag\": [\n \"First Tag\",\n \"Second Tag\"\n ]\n}\nResponse\nThe data sent to the server is shown below:\n{\n \"id\": \"ea507760-0ffd-11e8-bcf5-6a0001bcacb0\",\n \"name\": \"Test Record\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-12", "text": "\"name\": \"Test Record\",\n \"date_entered\": \"2018-02-12T15:06:25+01:00\",\n \"date_modified\": \"2018-02-12T15:06:25+01:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-13", "text": "},\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-14", "text": "}\n },\n \"description\": \"\",\n \"deleted\": false,\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"account_type\": \"\",\n \"industry\": \"\",\n \"annual_revenue\": \"\",\n \"phone_fax\": \"\",\n \"billing_address_street\": \"\",\n \"billing_address_street_2\": \"\",\n \"billing_address_street_3\": \"\",\n \"billing_address_street_4\": \"\",\n \"billing_address_city\": \"\",\n \"billing_address_state\": \"\",\n \"billing_address_postalcode\": \"\",\n \"billing_address_country\": \"\",\n \"rating\": \"\",\n \"phone_office\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-15", "text": "\"rating\": \"\",\n \"phone_office\": \"\",\n \"phone_alternate\": \"\",\n \"website\": \"\",\n \"ownership\": \"\",\n \"employees\": \"\",\n \"ticker_symbol\": \"\",\n \"shipping_address_street\": \"\",\n \"shipping_address_street_2\": \"\",\n \"shipping_address_street_3\": \"\",\n \"shipping_address_street_4\": \"\",\n \"shipping_address_city\": \"\",\n \"shipping_address_state\": \"\",\n \"shipping_address_postalcode\": \"\",\n \"shipping_address_country\": \"\",\n \"parent_id\": \"\",\n \"sic_code\": \"\",\n \"duns_num\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-16", "text": "\"sic_code\": \"\",\n \"duns_num\": \"\",\n \"parent_name\": \"\",\n \"member_of\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"campaign_accounts\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"following\": true,\n \"my_favorite\": false,\n \"tag\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-17", "text": "\"my_favorite\": false,\n \"tag\": [\n {\n \"id\": \"ea69c120-0ffd-11e8-b5f6-6a0001bcacb0\",\n \"name\": \"First Tag\",\n \"tags__name_lower\": \"first tag\"\n },\n {\n \"id\": \"eafb28e0-0ffd-11e8-8d80-6a0001bcacb0\",\n \"name\": \"Second Tag\",\n \"tags__name_lower\": \"second tag\"\n }\n ],\n \"locked_fields\": [],\n \"assigned_user_id\": \"\",\n \"assigned_user_name\": \"\",\n \"assigned_user_link\": {\n \"full_name\": \"\",\n \"id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-18", "text": "\"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": { \"fields\": [], \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\" }\n },\n \"team_name\": [\n {\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }\n ],\n \"email\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-19", "text": "\"selected\": false\n }\n ],\n \"email\": [],\n \"email1\": \"\",\n \"email2\": \"\",\n \"invalid_email\": \"\",\n \"email_opt_out\": \"\",\n \"email_addresses_non_primary\": \"\",\n \"calculated_c\": \"\",\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Accounts\"\n}\nReading/Retrieving Tags\nNext, we can retrieve the records using the\u00c2\u00a0/Tags/:record\u00c2\u00a0GET endpoint. An\u00c2\u00a0example\u00c2\u00a0for\u00c2\u00a0retrieving the tag\u00c2\u00a0records is shown below.\u00c2\u00a0\n//Reading/Retrieving Tags - /Tags GET\n$url = $instance_url . \"/Tags/12c6ee48-1000-11e8-8838-6a0001bcacb0\";", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-20", "text": "$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-21", "text": "\"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$createdRecord = json_decode($curl_response);\n//display the created record\nprint_r($createdRecord);\ncurl_close($curl_request);\nMore information on this API endpoint can be found in the //:record GET documentation.\u00c2\u00a0\nRequest Payload\nNo payload is sent for this request.\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-22", "text": "Request Payload\nNo payload is sent for this request.\nResponse\n{\n \"id\": \"12c6ee48-1000-11e8-8838-6a0001bcacb0\",\n \"name\": \"Tag Name\",\n \"date_entered\": \"2018-02-12T15:21:52+01:00\",\n \"date_modified\": \"2018-02-12T15:21:52+01:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-23", "text": "\"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-24", "text": "},\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"name_lower\": \"tag name\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"locked_fields\": [],\n \"source_id\": \"\",\n \"source_type\": \"\",\n \"source_meta\": \"\",\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-25", "text": "\"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Tags\"\n}\nUpdating Tags\nYou\u00c2\u00a0can\u00c2\u00a0update a tag using the\u00c2\u00a0/Tags/:record PUT endpoint.\u00c2\u00a0In this example, we are going to update the\u00c2\u00a0Tag record that we created in Creating Tags section and change its name to \"Renamed Tag Name\".", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-26", "text": "//Update Tags - /Tags PUT\n$url = $instance_url . \"/Tags/12c6ee48-1000-11e8-8838-6a0001bcacb0\";\n//Set up the new tag name\n$record = array(\n 'name' => 'Renamed Tag Name',\n);\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_CUSTOMREQUEST, \"PUT\");\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);\ncurl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-27", "text": "curl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record);\ncurl_setopt($curl_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$updatedRecord = json_decode($curl_response);\n//display the created record", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-28", "text": "//display the created record\necho \"Updated Record Name:\" . $updatedRecord->name;\ncurl_close($curl_request);\nMore information on this API endpoint can be found in the\u00c2\u00a0//:record\u00c2\u00a0PUT documentation.\nRequest Payload\n{\"name\": \"Renamed Tag Name\"}\nResponse\n{\n \"id\": \"12c6ee48-1000-11e8-8838-6a0001bcacb0\",\n \"name\": \"Renamed Tag Name\",\n \"date_entered\": \"2018-02-12T15:21:52+01:00\",\n \"date_modified\": \"2018-02-12T16:07:18+01:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-29", "text": "\"modified_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-30", "text": "\"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"name_lower\": \"renamed tag name\",\n \"following\": \"\",\n \"my_favorite\": false,\n \"locked_fields\": [],\n \"source_id\": \"\",\n \"source_type\": \"\",\n \"source_meta\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-31", "text": "\"source_type\": \"\",\n \"source_meta\": \"\",\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"assigned_user_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": { \"write\": \"no\", \"create\": \"no\" },\n \"last_login\": { \"write\": \"no\", \"create\": \"no\" }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"_acl\": { \"fields\": {} },\n \"_module\": \"Tags\"\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-32", "text": "\"_module\": \"Tags\"\n}\nDeleting Tags\nFinally, we\u00c2\u00a0can\u00c2\u00a0delete\u00c2\u00a0the record we created using the\u00c2\u00a0/Tags/:record DELETE API request.\n//Delete Tags - /Tags DELETE\n$url = $instance_url . \"/Tags/12c6ee48-1000-11e8-8838-6a0001bcacb0\";\n$curl_request = curl_init($url);\ncurl_setopt($curl_request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($curl_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($curl_request, CURLOPT_HEADER, false);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-33", "text": "curl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($curl_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($curl_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($curl_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$curl_response = curl_exec($curl_request);\n//decode json\n$deletedRecord = json_decode($curl_response);\n//display the created record\necho \"Deleted Record:\" . $deletedRecord->id;\ncurl_close($curl_request);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "7bb710a1c7c3-34", "text": "curl_close($curl_request);\nMore information on this API endpoint can be found in the\u00c2\u00a0//:record\u00c2\u00a0DELETE documentation.\u00c2\u00a0\nRequest Payload\nNo payload is sent for this request.\nResponse\n{\"id\":\"12c6ee48-1000-11e8-8838-6a0001bcacb0\"}\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Manipulate_Tags_CRUD/index.html"} {"id": "be04a5caf613-0", "text": "How to Export a List of Records\nOverview\nAn PHP example\u00c2\u00a0demonstrating how to export a list of records using the v11 //export/:record_list_id\u00c2\u00a0REST GET endpoint.\nExporting Records\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nFiltering Records\nNext, we will need to identify the records we want to export using the //filter\u00c2\u00a0endpoint.\n//Identify records to export - POST //filter\n$filter_url = $instance_url . \"/Accounts/filter\";\n$filter_arguments = array(\n \"filter\" => array(\n array(\n '$or' => array(\n array(\n //name starts with 'a'\n \"name\" => array(\n '$starts'=>\"A\",\n )\n ),\n array(\n //name starts with 'b'", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-4", "text": ")\n ),\n array(\n //name starts with 'b'\n \"name\" => array(\n '$starts'=>\"b\",\n )\n )\n ),\n ),\n ),\n \"max_num\" => 2,\n \"offset\" => 0,\n \"fields\" => \"id\",\n \"order_by\" => \"date_entered\",\n \"favorites\" => false,\n \"my_items\" => false,\n);\n$filter_request = curl_init($filter_url);\ncurl_setopt($filter_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($filter_request, CURLOPT_HEADER, false);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-5", "text": "curl_setopt($filter_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($filter_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($filter_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($filter_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($filter_arguments);\ncurl_setopt($filter_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$filter_response = curl_exec($filter_request);\n//decode json", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-6", "text": "$filter_response = curl_exec($filter_request);\n//decode json\n$filter_response_obj = json_decode($filter_response);\n//store ids of records to export\n$export_ids = array();\nforeach ($filter_response_obj->records as $record)\n{\n $export_ids[] = $record->id;\n}\nMore information on the filter API\u00c2\u00a0can be found in the //filter documentation.\nRequest Payload\nThe data sent to the server is shown below:\n{ \n \"filter\":[ \n { \n \"$or\":[ \n { \n \"name\":{ \n \"$starts\":\"A\"\n }\n },\n { \n \"name\":{ \n \"$starts\":\"b\"\n }\n }\n ]\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-7", "text": "\"$starts\":\"b\"\n }\n }\n ]\n }\n ],\n \"max_num\":2,\n \"offset\":0,\n \"fields\":\"id\",\n \"order_by\":\"date_entered\",\n \"favorites\":false,\n \"my_items\":false\n}\nResponse\nThe data received from the server is shown below:\n{ \n \"next_offset\":2,\n \"records\":[ \n { \n \"id\":\"f16760a4-3a52-f77d-1522-5703ca28925f\",\n \"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-8", "text": "},\n \"_module\":\"Accounts\"\n },\n { \n \"id\":\"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\",\n \"date_modified\":\"2016-04-05T10:23:28-04:00\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"Accounts\"\n }\n ]\n}\nCreating a Record List\nOnce we have the list of ids, we then need to create a record list in Sugar that consists of those ids.\n//Create a record list - POST //record_list\n$record_list_url = $instance_url . \"/Accounts/record_list\";\n$record_list_arguments = array(\n \"records\" => $export_ids,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-9", "text": "\"records\" => $export_ids,\n);\n$record_list_request = curl_init($record_list_url);\ncurl_setopt($record_list_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($record_list_request, CURLOPT_HEADER, false);\ncurl_setopt($record_list_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($record_list_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($record_list_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($record_list_request, CURLOPT_HTTPHEADER, array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-10", "text": "\"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//convert arguments to json\n$json_arguments = json_encode($record_list_arguments);\ncurl_setopt($record_list_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$record_list_response = curl_exec($record_list_request);\nRequest Payload\nThe data sent to the server is shown below:\n{ \n \"records\":[ \n \"f16760a4-3a52-f77d-1522-5703ca28925f\",\n \"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\"\n ]\n}\nResponse", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-11", "text": "]\n}\nResponse\nThe data received from the server is shown below:\n{ \n \"id\":\"ef963176-4845-bc55-b03e-570430b4173c\",\n \"assigned_user_id\":\"1\",\n \"module_name\":\"Accounts\",\n \"records\":[ \n \"f16760a4-3a52-f77d-1522-5703ca28925f\",\n \"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\"\n ],\n \"date_modified\":\"2016-04-05 21:39:19\"\n}\nExporting Records\nOnce we have the record list created, we can then export the CSV file.\n//Export Records - GET //export/:record_list_id", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-12", "text": "//Export Records - GET //export/:record_list_id\n$export_url = $instance_url . \"/Accounts/export/\" . $record_list_response_obj->id;\n$export_request = curl_init($export_url);\ncurl_setopt($export_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($export_request, CURLOPT_HEADER, true); //needed to return file headers\ncurl_setopt($export_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($export_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($export_request, CURLOPT_FOLLOWLOCATION, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-13", "text": "curl_setopt($export_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n$export_response = curl_exec($export_request);\n//set headers from response\nlist($headers, $content) = explode(\"\\r\\n\\r\\n\", $export_response ,2);\nforeach (explode(\"\\r\\n\",$headers) as $header) {\n header($header);\n}\n$content = trim($content);\necho $content;\nMore information on exporting records can be found in the //export/:record_list_id\u00c2\u00a0documentation.\nResponse\nThe data received from the server is shown below:\nHTTP/1.1 200 OK", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-14", "text": "The data received from the server is shown below:\nHTTP/1.1 200 OK \nDate: Tue, 05 Apr 2016 21:50:32 \nGMT Server: Apache/2.2.29 (Unix) \nDAV/2 PHP/5.3.29 mod_ssl/2.2.29 \nOpenSSL/0.9.8zg X-Powered-By: \nPHP/5.3.29 Expires: \nCache-Control: max-age=10, \nprivate Pragma: \nContent-Disposition: attachment; filename=Accounts.csv \nContent-transfer-encoding: binary \nLast-Modified: Tue, 05 Apr 2016 21:50:32 \nGMT ETag: 9b34f5d74e0298aaf7fd1f27d02e14f2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-15", "text": "Content-Length: 1703 \nConnection: close \nContent-Type: application/octet-stream; charset=ISO-8859-1 \n\"Name\",\"ID\",\"Website\",\"Office Phone\",\"Alternate Phone\",\"Fax\",\"Billing Street\",\"Billing City\",\"Billing State\",\"Billing Postal Code\",\"Billing Country\",\"Shipping Street\",\"Shipping City\",\"Shipping State\",\"Shipping Postal Code\",\"Shipping Country\",\"Description\",\"Type\",\"Industry\",\"Annual Revenue\",\"Employees\",\"SIC Code\",\"Ticker Symbol\",\"Parent Account ID\",\"Ownership\",\"Campaign ID\",\"Rating\",\"Assigned User Name\",\"Assigned User ID\",\"Team ID\",\"Teams\",\"Team Set ID\",\"Date Created\",\"Date Modified\",\"Modified By Name\",\"Modified By ID\",\"Created By\",\"Created By ID\",\"Deleted\",\"test\",\"Facebook Account\",\"Twitter Account\",\"Google Plus ID\",\"DUNS\",\"Email\",\"Invalid Email\",\"Email Opt Out\",\"Non-primary emails\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-16", "text": "\"Arts & Crafts Inc\",\"ec409fbb-2b22-4f32-7fa1-5703caf78dc3\",\"www.hrinfo.tw\",\"(252) 456-8602\",\"\",\"\",\"777 West Filmore Ln\",\"Los Angeles\",\"CA\",\"77076\",\"USA\",\"777 West Filmore Ln\",\"Los Angeles\",\"CA\",\"77076\",\"USA\",\"\",\"Customer\",\"Hospitality\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"Max Jensen\",\"seed_max_id\",\"West\",\"West, East, Global\",\"dec43cb2-5273-8be2-968a-5703cadee75f\",\"2016-04-05 10:23\",\"2016-04-05", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-17", "text": "10:23\",\"2016-04-05 10:23\",\"Administrator\",\"1\",\"Administrator\",\"1\",\"0\",\"\",\"\",\"\",\"\",\"\",\"sugar.sugar.section@example.org\",\"0\",\"0\",\"dev.phone@example.biz,0,0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-18", "text": "\"B.H. Edwards Inc\",\"f16760a4-3a52-f77d-1522-5703ca28925f\",\"www.sectiondev.edu\",\"(361) 765-0216\",\"\",\"\",\"111 Silicon Valley Road\",\"Persistance\",\"CA\",\"29709\",\"USA\",\"111 Silicon Valley Road\",\"Persistance\",\"CA\",\"29709\",\"USA\",\"\",\"Customer\",\"Apparel\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"Sally Bronsen\",\"seed_sally_id\",\"West\",\"West\",\"West\",\"2016-04-05 10:23\",\"2016-04-05 10:23\",\"Administrator\",\"1\",\"Administrator\",\"1\",\"0\",\"\",\"\",\"\",\"\",\"\",\"info.sugar@example.de\",\"0\",\"1\",\"phone.sales.section@example.tv,0,0\"\nDownload\nYou can download the full API example here.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "be04a5caf613-19", "text": "Download\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Export_a_List_of_Records/index.html"} {"id": "80bd052ffc79-0", "text": "How to Unfollow a Record\nOverview\nA PHP example demonstrating how to unfollow a record using the v11 //:record/unsubscribe REST DELETE\u00c2\u00a0endpoint.\nUnfollowing a Record\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfollow_a_Record/index.html"} {"id": "80bd052ffc79-1", "text": "//It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfollow_a_Record/index.html"} {"id": "80bd052ffc79-2", "text": "curl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfollow_a_Record/index.html"} {"id": "80bd052ffc79-3", "text": "$oauth_token = $oauth2_token_response_obj->access_token;\nMore information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nUnfollowing a Record\nNext, we can unfollow a specific record\u00c2\u00a0using the //:record/unsubscribe\u00c2\u00a0endpoint.\n//Unfollow a record - DELETE //:record/unsubscribe\n$unsubscribe_url = $instance_url . \"/Accounts/ae8b1783-404a-fcb8-1e1e-56f1cc52cd1a/unsubscribe\";\n$unsubscribe_request = curl_init($unsubscribe_url);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfollow_a_Record/index.html"} {"id": "80bd052ffc79-4", "text": "$unsubscribe_request = curl_init($unsubscribe_url);\ncurl_setopt($unsubscribe_request, CURLOPT_CUSTOMREQUEST, \"DELETE\");\ncurl_setopt($unsubscribe_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($unsubscribe_request, CURLOPT_HEADER, false);\ncurl_setopt($unsubscribe_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($unsubscribe_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($unsubscribe_request, CURLOPT_FOLLOWLOCATION, 0);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfollow_a_Record/index.html"} {"id": "80bd052ffc79-5", "text": "curl_setopt($unsubscribe_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$unsubscribe_response = curl_exec($unsubscribe_request);\nMore information on the unsubscribe API\u00c2\u00a0can be found in the //:record/unsubscribe DELETE documentation.\nRequest Payload\nThe data sent to the server is shown below:\nThis endpoint does not accept any request arguments.\nResponse\nThe data received from the server is shown below:\ntrue\nDownload\nYou can download the full API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Unfollow_a_Record/index.html"} {"id": "1d91152c83da-0", "text": "How to Use the Global Search\nOverview\nA PHP example\u00c2\u00a0demonstrating how to globally search for records\u00c2\u00a0using the REST v11 /search GET endpoint.\nAuthenticating\nFirst, you will need to authenticate to the Sugar API. An example is shown below:\n \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-1", "text": "\"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.\n \"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-2", "text": "curl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\n//decode oauth2 response to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);\n$oauth_token = $oauth2_token_response_obj->access_token;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-3", "text": "More information on authenticating can be found in the How to Authenticate and Log Out example and /oauth2/logout\u00c2\u00a0endpoint documentation.\nSearching Records\nSo, we will need to identify the records we want to see using the /search endpoint. In this case, we are going to search for all records that have the email address of 'jsmith@sugar.com'.\u00c2\u00a0 In this example, there are 3 records, an Account, a Contact and a Lead.\n//Set up the search parameters - GET /search\n$search_url = $instance_url . \"/search\";\n$search_arguments = array(\n \"q\" => 'jsmith@sugar.com',\n \"max_num\" => 3,\n \"offset\" => 0,\n \"fields\" => \"\",\n \"order_by\" => \"\",\n \"favorites\" => false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-4", "text": "\"order_by\" => \"\",\n \"favorites\" => false,\n \"my_items\" => false,\n);\n//As this request is a GET we will add the arguments to the URL\n$search_url .= \"?\" . http_build_query($search_arguments);\n$search_request = curl_init($search_url);\ncurl_setopt($search_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($search_request, CURLOPT_HEADER, false);\ncurl_setopt($search_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($search_request, CURLOPT_RETURNTRANSFER, 1);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-5", "text": "curl_setopt($search_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($search_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));\n//execute request\n$search_response = curl_exec($search_request);\n//decode json\n$search_response_obj = json_decode($search_response);\nMore information on the search API\u00c2\u00a0can be found in the /search documentation.\nRequest\nhttp://{site_url}/rest/v11/search?q=jsmith%40sugar.com&max_num=3&offset=0&fields=&order_by=&favorites=0&my_items=0\nResponse", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-6", "text": "Response\nThe data received from the server is shown below:\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f31b2f00-468c-3d35-1e88-56fedbd3921d\",\n \"name\":\"Kaycee Gibney\",\n \"date_entered\":\"2016-04-01T20:34:00+00:00\",\n \"date_modified\":\"2016-04-06T15:16:24+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-7", "text": "\"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_jim_id\",\n \"assigned_user_name\":\"Jim Brennan\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"sales.kid.dev@example.info\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-8", "text": "\"email_address\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"opt_out\":true,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"sales.kid.dev@example.info\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Kaycee\",\n \"last_name\":\"Gibney\",\n \"full_name\":\"Kaycee Gibney\",\n \"title\":\"Mgr Operations\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-9", "text": "\"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(599) 165-2396\",\n \"phone_mobile\":\"(215) 591-9574\",\n \"phone_work\":\"(771) 945-3648\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"321 University Ave.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Santa Monica\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"96154\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-10", "text": "\"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Existing Customer\",\n \"account_name\":\"Tracker Com LP\",\n \"account_id\":\"72ad6f00-e345-1cab-b370-56fedbd23deb\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-11", "text": "\"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"KayceeGibney33\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-12", "text": "\"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\",\n \"_search\":{\n \"score\":0.70710677,\n \"highlighted\":{\n \"email1\":{\n \"text\":\"\\u003Cstrong\\u003Ejsmith@sugar.com\\u003C\\/strong\\u003E\",\n \"module\":\"Contacts\",\n \"label\":\"LBL_EMAIL_ADDRESS\"\n }\n }\n }\n },\n {\n \"my_favorite\":false,\n \"following\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-13", "text": "{\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"e8c641ca-1b8c-74c1-d08d-56fedbdd3187\",\n \"name\":\"MTM Investment Bank F S B\",\n \"date_entered\":\"2016-04-01T20:34:00+00:00\",\n \"date_modified\":\"2016-04-06T15:16:52+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-14", "text": "\"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-15", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"the60@example.us\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"the60@example.us\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"a\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-16", "text": "\"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"67321 West Siam St.\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"Alabama\",\n \"billing_address_state\":\"NY\",\n \"billing_address_postalcode\":\"52272\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(012) 704-8075\",\n \"phone_alternate\":\"\",\n \"website\":\"www.salesqa.it\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-17", "text": "\"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"67321 West Siam St.\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"Alabama\",\n \"shipping_address_state\":\"NY\",\n \"shipping_address_postalcode\":\"52272\",\n \"shipping_address_country\":\"USA\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"duns_num\":\"\",\n \"parent_name\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-18", "text": "\"fields\":{\n }\n },\n \"_module\":\"Accounts\",\n \"_search\":{\n \"score\":0.70710677,\n \"highlighted\":{\n \"email1\":{\n \"text\":\"\\u003Cstrong\\u003Ejsmith@sugar.com\\u003C\\/strong\\u003E\",\n \"module\":\"Accounts\",\n \"label\":\"LBL_EMAIL_ADDRESS\"\n }\n }\n }\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"f3951f4d-2d17-7939-c5ec-56fedbb9e92f\",\n \"name\":\"Talia Knupp\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-19", "text": "\"name\":\"Talia Knupp\",\n \"date_entered\":\"2016-04-01T20:34:00+00:00\",\n \"date_modified\":\"2016-04-06T15:33:24+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"user_favorites\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-20", "text": "{\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-21", "text": "\"reply_to_address\":false\n }\n ],\n \"email1\":\"jsmith@sugar.com\",\n \"email2\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Talia\",\n \"last_name\":\"Knupp\",\n \"full_name\":\"Talia Knupp\",\n \"title\":\"Senior Product Manager\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(963) 741-3689\",\n \"phone_mobile\":\"(600) 831-9872\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-22", "text": "\"phone_mobile\":\"(600) 831-9872\",\n \"phone_work\":\"(680) 991-2837\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Sunnyvale\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"99452\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-23", "text": "\"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"converted\":false,\n \"refered_by\":\"\",\n \"lead_source\":\"Word of mouth\",\n \"lead_source_description\":\"\",\n \"status\":\"In Process\",\n \"status_description\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"dnb_principal_id\":\"\",\n \"account_name\":\"First National S\\/B\",\n \"account_description\":\"\",\n \"contact_id\":\"\",\n \"contact_name\":\"\",\n \"account_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-24", "text": "\"contact_name\":\"\",\n \"account_id\":\"\",\n \"opportunity_id\":\"\",\n \"opportunity_name\":\"\",\n \"opportunity_amount\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"webtolead_email1\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-25", "text": "\"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email2\":[\n {\n \"email_address\":\"jsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"cjsmith@sugar.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-26", "text": "\"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"webtolead_email_opt_out\":\"\",\n \"webtolead_invalid_email\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"\",\n \"portal_app\":\"\",\n \"website\":\"\",\n \"preferred_language\":\"\",\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"fruits_c\":\"Apples\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Leads\",\n \"_search\":{\n \"score\":0.70710677,\n \"highlighted\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "1d91152c83da-27", "text": "\"score\":0.70710677,\n \"highlighted\":{\n \"email1\":{\n \"text\":\"\\u003Cstrong\\u003Ejsmith@sugar.com\\u003C\\/strong\\u003E\",\n \"module\":\"Leads\",\n \"label\":\"LBL_EMAIL_ADDRESS\"\n }\n }\n }\n }\n ]\n}\nThere are 3 records shown above, the _module field tells you if the record is from Accounts, Contacts or Leads.\u00c2\u00a0 The _search field is an array that tells you where in the record it found the search string.\u00c2\u00a0 It gives you back a highlighted string that you can use for display.\nDownloads\nYou can download the full API example here\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Use_the_Global_Search/index.html"} {"id": "7d81a5878144-0", "text": "How to Authenticate and Log Out\nOverview\nA PHP example on how to authenticate and logout of the v11 REST API using the /oauth2/token\u00c2\u00a0and /oauth2/logout POST endpoints.\nAuthenticating", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-1", "text": "Authenticating\nThe example below demonstrates how to authenticate to the REST v11 API. It is important to note that the oauth2 token arguments takes in several parameters that you should be aware of. The platform argument tends to cause confusion in that it is used to authenticate a user to a specific platform. Since Sugar only allows 1 user in the system at a time per platform, authenticating an integration script with a platform type of \"base\"\u00c2\u00a0will logout any current users in the system using those credentials. To work around this, your custom scripts should have a new platform type specified such as \"custom_api\" or any other static text you prefer. The client_id and client_secret\u00c2\u00a0parameters can be used for additional security based on client types. You can create your own client type\u00c2\u00a0in Admin > OAuth Keys. More information can be found in the /oauth2/token documentation. An example script is shown below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-2", "text": " \"password\",\n //client id - default is sugar. \n //It is recommended to create your own in Admin > OAuth Keys\n \"client_id\" => \"sugar\", \n \"client_secret\" => \"\",\n \"username\" => $username,\n \"password\" => $password,\n //platform type - default is base.\n //It is recommend to change the platform to a custom name such as \"custom_api\" to avoid authentication conflicts.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-3", "text": "\"platform\" => \"custom_api\" \n);\n$auth_request = curl_init($auth_url);\ncurl_setopt($auth_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($auth_request, CURLOPT_HEADER, false);\ncurl_setopt($auth_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($auth_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($auth_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($auth_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\"\n));\n//convert arguments to json", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-4", "text": "\"Content-Type: application/json\"\n));\n//convert arguments to json\n$json_arguments = json_encode($oauth2_token_arguments);\ncurl_setopt($auth_request, CURLOPT_POSTFIELDS, $json_arguments);\n//execute request\n$oauth2_token_response = curl_exec($auth_request);\nRequest Payload\nThe data sent to the server is shown below:\n{\n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"custom_api\"\n}\nResponse\nThe data received from the server is shown below:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-5", "text": "}\nResponse\nThe data received from the server is shown below:\n{\n \"access_token\":\"c6d495c9-bb25-81d2-5f81-533ef6479f9b\",\n \"expires_in\":3600,\n \"token_type\":\"bearer\",\n \"scope\":null,\n \"refresh_token\":\"cbc40e67-12bc-4b56-a1d9-533ef62f2601\",\n \"refresh_expires_in\":1209600,\n \"download_token\":\"cc5d1a9f-6627-3349-96e5-533ef6b1a493\"\n}\nLogout", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-6", "text": "}\nLogout\nTo log out of\u00c2\u00a0a session,\u00c2\u00a0a request\u00c2\u00a0can be made to the \u00c2\u00a0/oauth2/logout POST endpoint. More information can be found in the /oauth2/logout documentation.\u00c2\u00a0An example extending off of the above authentication example\u00c2\u00a0is shown\u00c2\u00a0below:\n//Logout - POST /oauth2/logout\n$logout_url = $instance_url . \"/oauth2/logout\";\n//decode oauth2 repsonse to get token\n$oauth2_token_response_obj = json_decode($oauth2_token_response);\n$oauth_token = $oauth2_token_response_obj->access_token;\n$logout_request = curl_init($logout_url);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-7", "text": "$logout_request = curl_init($logout_url);\ncurl_setopt($logout_request, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);\ncurl_setopt($logout_request, CURLOPT_HEADER, false);\ncurl_setopt($logout_request, CURLOPT_SSL_VERIFYPEER, 0);\ncurl_setopt($logout_request, CURLOPT_RETURNTRANSFER, 1);\ncurl_setopt($logout_request, CURLOPT_FOLLOWLOCATION, 0);\ncurl_setopt($logout_request, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"oauth-token: {$oauth_token}\"\n));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "7d81a5878144-8", "text": "\"oauth-token: {$oauth_token}\"\n));\n//set empty post fields\ncurl_setopt($logout_request, CURLOPT_POSTFIELDS, array());\n//execute request\n$oauth2_logout_response = curl_exec($logout_request);\nResponse\nThe data received from the server is shown below:\n{\n \"success\":true\n}\nDownload\nYou can download the full\u00c2\u00a0API example here.\n \tLast modified: 2023-02-03 21:09:36", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Web_Services/REST_API/PHP/How_to_Authenticate_and_Log_Out/index.html"} {"id": "e4c2a35f86d2-0", "text": "Adding Field Validation to the Record View\nOverview\nThis page explains how to add additional field validation to the record view. In the following examples, we will extend and override the stock Accounts record view to add custom validation. The custom validation will require the Office Phone field when the account type is set to \"Customer\" and also require the user to enter at least one email address.\nError Messages\nWhen throwing a validation error, Sugar has several stock messages you may choose to use. They are shown\u00c2\u00a0below:\nError Key\nLabel\nDescription\nmaxValue\nERROR_MAXVALUE\nThis maximum value of this field\nminValue\nERROR_MINVALUE\nThis minimum value of this field\nmaxLength\nERROR_MAX_FIELD_LENGTH\nThe max length of this field\nminLength\nERROR_MIN_FIELD_LENGTH\nThe min length of this field\ndatetime\nERROR_DATETIME\nThis field requires a valid date\nrequired", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-1", "text": "datetime\nERROR_DATETIME\nThis field requires a valid date\nrequired\nERROR_FIELD_REQUIRED\nThis field is required\nemail\nERROR_EMAIL\nThere is an invalid email address\nprimaryEmail\nERROR_PRIMARY_EMAIL\nNo primary email address is set\nduplicateEmail\nERROR_DUPLICATE_EMAIL\nThere is a duplicate email address\nnumber\nERROR_NUMBER\nThis field requires a valid number\nisBefore\nERROR_IS_BEFORE\nThe date of this field can not be after another date\nisAfter\nERROR_IS_AFTER\nThe date of this field can not be before another date\nYou also have the option of displaying multiple error messages at a time. The example below would throw an error message notifying the user that the selected field is required and that it is also not a number.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-2", "text": "errors[''] = errors[''] || {};\nerrors[''].required = true;\nerrors[''].number = true;\nCustom Error Messages\nCustom error message can be used by appending custom\u00c2\u00a0language keys to app.error.errorName2Keys when initializing an\u00c2\u00a0extended controller. To accomplish this, create a new language key in the $app_strings. An example of this is shown below:\n./custom/Extension/application/Ext/Language/en_us.error_custom_message.php\n Repair > Quick Repair and Rebuild. More information on displaying custom error messages can be found in the Error Messages section.\nMethod 2: Overriding the RecordView and CreateView Layouts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-9", "text": "Method 2: Overriding the RecordView and CreateView Layouts\nAnother method for defining your own custom validation is to override a module's record and create layouts to append a new view with your logic. The benefits of this method are that you can use the single view to house the validation logic, however, this means that you will have to override the layout. When overriding a layout, verify that the layout has not changed when upgrading your instance.\u00c2\u00a0Once the layouts are overridden, define the validation check and use the\u00c2\u00a0model.addValidationTask\u00c2\u00a0method to append the function to the save validation.\u00c2\u00a0\nFirst, create the custom view. For the accounts example, create the view\u00c2\u00a0validate-account:\n./custom/modules/Accounts/clients/base/views/validate-account/validate-account.js\u00c2\u00a0\n({\n className:\"hidden\",\n _render: function() {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-10", "text": "({\n className:\"hidden\",\n _render: function() {\n //No-op, Do nothing here\n },\n bindDataChange: function() {\n //add validation tasks\n this.model.addValidationTask('check_account_type', _.bind(this._doValidateCheckType, this));\n this.model.addValidationTask('check_email', _.bind(this._doValidateEmail, this));\n },\n _doValidateCheckType: function(fields, errors, callback) {\n //validate type requirements\n if (this.model.get('account_type') == 'Customer' && _.isEmpty(this.model.get('phone_office')))\n {\n errors['phone_office'] = errors['phone_office'] || {};", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-11", "text": "errors['phone_office'] = errors['phone_office'] || {};\n errors['phone_office'].required = true;\n }\n callback(null, fields, errors);\n },\n _doValidateEmail: function(fields, errors, callback) {\n //validate email requirements\n if (_.isEmpty(this.model.get('email')))\n {\n errors['email'] = errors['email'] || {};\n errors['email'].required = true;\n }\n callback(null, fields, errors);\n },\n})", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-12", "text": "}\n callback(null, fields, errors);\n },\n})\nMore information on displaying custom error messages can be found in the Error Messages section. Next, depending on the selected module, duplicate its create\u00c2\u00a0layout to the modules\u00c2\u00a0custom folder to handle record creation. In our\u00c2\u00a0Accounts example, we have an existing ./modules/Accounts/clients/base/layouts/create/create.php file so we need to duplicate this file to ./custom/modules/Accounts/clients/base/layouts/create/create.php. After this has been completed, append the new custom view to the components. append:\narray(\n 'view' => 'validate-account',\n),\nAs shown below:\n./custom/modules/Accounts/clients/base/layouts/create/create.php\n\n array(\n array(\n 'layout' =>\n array(\n 'components' =>\n array(\n array(\n 'layout' =>\n array(\n 'components' =>\n array(\n array(\n 'view' => 'create',\n ),\n array(\n 'view' => 'validate-account',\n ),\n ),\n 'type' => 'simple',\n 'name' => 'main-pane',\n 'span' => 8,\n ),\n ),\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-14", "text": "),\n ),\n array(\n 'layout' =>\n array(\n 'components' =>\n array(),\n 'type' => 'simple',\n 'name' => 'side-pane',\n 'span' => 4,\n ),\n ),\n array(\n 'layout' =>\n array(\n 'components' =>\n array(\n array(\n 'view' =>\n array (\n 'name' => 'dnb-account-create',\n 'label' => 'DNB Account Create',\n ),\n 'width' => 12,\n ),\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-15", "text": "'width' => 12,\n ),\n ),\n 'type' => 'simple',\n 'name' => 'dashboard-pane',\n 'span' => 4,\n ),\n ),\n array(\n 'layout' =>\n array(\n 'components' =>\n array(\n array(\n 'layout' => 'preview',\n ),\n ),\n 'type' => 'simple',\n 'name' => 'preview-pane',\n 'span' => 8,\n ),\n ),\n ),\n 'type' => 'default',\n 'name' => 'sidebar',\n 'span' => 12,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-16", "text": "'name' => 'sidebar',\n 'span' => 12,\n ),\n ),\n ),\n 'type' => 'simple',\n 'name' => 'base',\n 'span' => 12,\n);\nLastly, depending on the selected module, duplicate its record layout to the modules\u00c2\u00a0custom folder to handle editing a record. In the accounts example, we do not have an existing ./modules/Accounts/clients/base/layouts/record/record.php file so we duplicated the core ./clients/base/layouts/record/record.php to\u00c2\u00a0./custom/modules/Accounts/clients/base/layouts/record/record.php. Since we are copying from the ./clients/ core directory, modify:\n$viewdefs['base']['layout']['record'] = array(\n ...\n);\nTo:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-17", "text": "...\n);\nTo:\n$viewdefs['Accounts']['base']['layout']['record'] = array(\n ...\n);\nAfter this has been completed, append the new custom view to the components:\narray(\n 'view' => 'validate-account',\n),\nThe resulting file is shown below:\n./custom/modules/Accounts/clients/base/layouts/record/record.php\n array(\n array(\n 'layout' => array(\n 'components' => array(\n array(\n 'layout' => array(\n 'components' => array(\n array(\n 'view' => 'record',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-18", "text": "array(\n 'view' => 'record',\n 'primary' => true,\n ),\n array(\n 'view' => 'validate-account',\n ),\n array(\n 'layout' => 'extra-info',\n ),\n array(\n 'layout' => array(\n 'name' => 'filterpanel',\n 'span' => 12,\n 'last_state' => array(\n 'id' => 'record-filterpanel',\n 'defaults' => array(\n 'toggle-view' => 'subpanels',\n ),\n ),\n 'availableToggles' => array(\n array(\n 'name' => 'subpanels',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-19", "text": "array(\n 'name' => 'subpanels',\n 'icon' => 'icon-table',\n 'label' => 'LBL_DATA_VIEW',\n ),\n array(\n 'name' => 'list',\n 'icon' => 'icon-table',\n 'label' => 'LBL_LISTVIEW',\n ),\n array(\n 'name' => 'activitystream',\n 'icon' => 'icon-th-list',\n 'label' => 'LBL_ACTIVITY_STREAM',\n ),\n ),\n 'components' => array(\n array(\n 'layout' => 'filter',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-20", "text": "array(\n 'layout' => 'filter',\n 'targetEl' => '.filter',\n 'position' => 'prepend'\n ),\n array(\n 'view' => 'filter-rows',\n \"targetEl\" => '.filter-options'\n ),\n array(\n 'view' => 'filter-actions',\n \"targetEl\" => '.filter-options'\n ),\n array(\n 'layout' => 'activitystream',\n 'context' =>\n array(\n 'module' => 'Activities',\n ),\n ),\n array(\n 'layout' => 'subpanels',\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-21", "text": "'layout' => 'subpanels',\n ),\n ),\n ),\n ),\n ),\n 'type' => 'simple',\n 'name' => 'main-pane',\n 'span' => 8,\n ),\n ),\n array(\n 'layout' => array(\n 'components' => array(\n array(\n 'layout' => 'sidebar',\n ),\n ),\n 'type' => 'simple',\n 'name' => 'side-pane',\n 'span' => 4,\n ),\n ),\n array(\n 'layout' => array(\n 'components' => array(\n array(\n 'layout' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-22", "text": "array(\n 'layout' => array(\n 'type' => 'dashboard',\n 'last_state' => array(\n 'id' => 'last-visit',\n )\n ),\n 'context' => array(\n 'forceNew' => true,\n 'module' => 'Home',\n ),\n ),\n ),\n 'type' => 'simple',\n 'name' => 'dashboard-pane',\n 'span' => 4,\n ),\n ),\n array(\n 'layout' => array(\n 'components' => array(\n array(\n 'layout' => 'preview',\n ),\n ),\n 'type' => 'simple',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "e4c2a35f86d2-23", "text": "),\n ),\n 'type' => 'simple',\n 'name' => 'preview-pane',\n 'span' => 8,\n ),\n ),\n ),\n 'type' => 'default',\n 'name' => 'sidebar',\n 'span' => 12,\n ),\n ),\n ),\n 'type' => 'simple',\n 'name' => 'base',\n 'span' => 12,\n);\nOnce the files are in place, navigate to Admin > Repair > Quick Repair and Rebuild.\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Field_Validation_to_the_Record_View/index.html"} {"id": "4bb124b8b1c5-0", "text": "Logic Hooks\nThese pages demonstrate\u00c2\u00a0some common examples of working with logic hooks in Sugar.\nTopicsComparing Bean Properties Between Logic HooksHow to compare the properties of a bean between the before_save and after_save logic hooksPreventing Infinite Loops with Logic HooksHow to add a check to a logic hook to eliminate perpetual looping\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/index.html"} {"id": "14dfe0ae794e-0", "text": "Preventing Infinite Loops with Logic Hooks\nOverview\nInfinite loops often happen when a logic hook calls save on a bean in a scenario that triggers the same hook again. This example shows\u00c2\u00a0how to add a check to a logic hook to eliminate perpetual looping.\nSaving in an After Save Hook\nInfinite loops can sometimes happen when you have a need to update a record after it has been run through the workflow process in the after_save hook. Here is an example of a looping hook:\n./custom/modules/Accounts/logic_hooks.php\naccount_type == 'Analyst')\n {\n //update\n $bean->industry = 'Banking';\n $bean->save();\n }\n }\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/Preventing_Infinite_Loops_with_Logic_Hooks/index.html"} {"id": "14dfe0ae794e-2", "text": "$bean->save();\n }\n }\n}\nIn the example above, there is a condition that, when met, will trigger the update of a field on the record. This will cause an infinite loop because calling the save() method will trigger once during the before_save hook and then again during the after_save hook. The solution to this problem is to add a new property on the bean to ignore any unneeded saves. For this example, we will name the property \"ignore_update_c\" and add a check to the logic hook to eliminate the perpetual loop. An example of this is shown below:\n./custom/modules/Accounts/Accounts_Hook.php\nignore_update_c) || $bean->ignore_update_c === false)\n {\n //generic condition\n if ($bean->account_type == 'Analyst')\n {\n //update\n $bean->ignore_update_c = true;\n $bean->industry = 'Banking';\n $bean->save();\n }\n }\n }\n}\nRelated Record Save Loops\nSometimes logic hooks on two separate but related modules can cause an infinite loop. The problem arises when the two modules have logic hooks that update one another. This is often done when wanting to keep a field in sync between two modules. The example below will demonstrate this behavior on the accounts:contacts relationship:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/Preventing_Infinite_Loops_with_Logic_Hooks/index.html"} {"id": "14dfe0ae794e-4", "text": "./custom/modules/Accounts/logic_hooks.php\nload_relationship('contacts'))\n {\n //fetch related beans\n $relatedContacts = $bean->contacts->getBeans();\n foreach ($relatedContacts as $relatedContact)\n {\n //perform any other contact logic\n $relatedContact->save();\n }\n }\n }\n}\nThe above example will loop through all contacts related to the account and save them. At this point, the save will then trigger our contacts logic hook shown below:\n./custom/modules/Contacts/logic_hooks.php\nload_relationship('accounts'))\n {\n //fetch related beans\n $relatedAccounts = $bean->accounts->getBeans();\n $parentAccount = false;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/Preventing_Infinite_Loops_with_Logic_Hooks/index.html"} {"id": "14dfe0ae794e-7", "text": "$parentAccount = false;\n if (!empty($relatedAccounts))\n {\n //order the results\n reset($relatedAccounts);\n //first record in the list is the parent\n $parentAccount = current($relatedAccounts);\n }\n if ($parentAccount !== false && is_object($parentAccount))\n {\n //perform any other account logic\n $parentAccount->save();\n }\n }\n }\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/Preventing_Infinite_Loops_with_Logic_Hooks/index.html"} {"id": "14dfe0ae794e-8", "text": "$parentAccount->save();\n }\n }\n }\n}\nThese two logic hooks will continuously trigger one another in this scenario until you run into a max_execution or memory_limit error. The solution to this problem is to add a new property on the bean to ignore any unneeded saves. In our example, we will name this property \"ignore_update_c\" and add a check to our logic hook to eliminate the perpetual loop. The following code snippets are copies of the two classes with the ignore_update_c property added.\n./custom/modules/Accounts/Accounts_Hook.php\nload_relationship('contacts'))\n {\n //fetch related beans\n $relatedContacts = $bean->contacts->getBeans();\n foreach ($relatedContacts as $relatedContact)\n {\n //check if the bean's ignore_update_c attribute is not set\n if (!isset($bean->ignore_update_c) || $bean->ignore_update_c === false)\n {\n //set the ignore update attribute\n $relatedContact->ignore_update_c = true;\n //perform any other contact logic\n $relatedContact->save();\n }\n }\n }\n }\n}\n./custom/modules/Contacts/Contacts_Hook.php\nload_relationship('accounts'))\n {\n //fetch related beans\n $relatedAccounts = $bean->accounts->getBeans();\n $parentAccount = false;\n if (!empty($relatedAccounts))\n {\n //order the results\n reset($relatedAccounts);\n //first record in the list is the parent\n $parentAccount = current($relatedAccounts);\n }\n if ($parentAccount !== false && is_object($parentAccount))\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/Preventing_Infinite_Loops_with_Logic_Hooks/index.html"} {"id": "14dfe0ae794e-11", "text": "if ($parentAccount !== false && is_object($parentAccount))\n {\n //check if the bean's ignore_update_c element is set\n if (!isset($bean->ignore_update_c) || $bean->ignore_update_c === false)\n {\n //set the ignore update attribute\n $parentAccount->ignore_update_c = true;\n //perform any other account logic\n $parentAccount->save();\n }\n }\n }\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/Preventing_Infinite_Loops_with_Logic_Hooks/index.html"} {"id": "3960d1f49d3a-0", "text": "Comparing Bean Properties Between Logic Hooks\nOverview\nHow to compare the properties of a bean between the before_save and after_save logic hooks\nStoring and Comparing Values\nWhen working with a bean in the after_save logic hook, you may notice that the after_save fetched rows no longer match the before_save fetched rows. If your after_save logic needs to be able to compare values that were in the before_save, you can use the following example to help you store and use the values.\n./custom/modules//logic_hooks.php\n/My_Logic_Hooks.php',\n 'My_Logic_Hooks',\n 'before_save_method'\n);\n$hook_array['after_save'] = Array();\n$hook_array['after_save'][] = Array(\n 1,\n 'Retrieve and compare values',\n 'custom/modules//My_Logic_Hooks.php',\n 'My_Logic_Hooks',\n 'after_save_method'\n);\n?>\n./custom/modules//My_Logic_Hooks.php\nstored_fetched_row_c = $bean->fetched_row;\n }\n function after_save_method($bean, $event, $arguments)\n {\n //check if a fields value has changed\n if (\n isset($bean->stored_fetched_row_c)\n && $bean->stored_fetched_row_c['field'] != $bean->field\n )\n {\n //execute logic\n }\n }\n}\n?>\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Logic_Hooks/Comparing_Bean_Properties_Between_Logic_Hooks/index.html"} {"id": "ff8e8d8e08db-0", "text": "Creating Custom Field Types\nOverview\nIn this\u00c2\u00a0example, we create a custom field type called\u00c2\u00a0\"Highlightfield\", which\u00c2\u00a0will mimic the base text field type with the added feature that the displayed text for the field will be highlighted in a color chosen when the field is created in Studio.\nThis example requires the following steps, which are covered in the sections and subsections below:\nCreating the JavaScript Controller\nDefining the Handlebar Templates\nAdding the Field Type to Studio\nEnabling Search and Filtering\nNote: Custom field types are not currently functional for use in Reports and will break Report Wizard.\nNaming a Custom Field Type in Sugar\nWhen choosing a name for a custom field type, keep in mind the following rules:\nThe first letter of a custom field type's name must be capitalized.\nAll subsequent\u00c2\u00a0letters in the field type's name must be lowercase.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-1", "text": "All subsequent\u00c2\u00a0letters in the field type's name must be lowercase.\nA field type's name cannot contain non-letter characters such as 0-9, hyphens, or dashes.\nTherefore, in\u00c2\u00a0this\u00c2\u00a0example, the field type \"Highlightfield\" cannot be called HighLightField or highlightfield.\nCreating the JavaScript Controller\nFirst,\u00c2\u00a0create a\u00c2\u00a0controller file. Since we are starting from scratch, we need\u00c2\u00a0to extend the base field template. To accomplish this, create\u00c2\u00a0./custom/clients/base/fields/Highlightfield/Highlightfield.js. This file will contain the JavaScript needed to render the field and format the values. By default, all fields extend the base template and do not require you to add the extendsFrom property. An\u00c2\u00a0example\u00c2\u00a0template is shown below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-2", "text": "./custom/clients/base/fields/Highlightfield/Highlightfield.js\n({\n /**\n * Called when initializing the field\n * @param options\n */\n initialize: function(options) {\n this._super('initialize', [options]);\n },\n /**\n * Called when rendering the field\n * @private\n */\n _render: function() {\n this._super('_render');\n },\n /**\n * Called when formatting the value for display\n * @param value\n */\n format: function(value) {\n return this._super('format', [value]);\n },\n /**\n * Called when unformatting the value for storage\n * @param value\n */\n unformat: function(value) {\n return this._super('unformat', [value]);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-3", "text": "return this._super('unformat', [value]);\n }\n})\nNote:\u00c2\u00a0This controller file example contains methods for initialize, _render, format, and unformat. These are shown for your ease of use but are not necessarily needed for this customization. For example, you could choose to create an empty controller consisting of nothing other than\u00c2\u00a0({}) and the field would render as expected in this example.\nDefining the Handlebar Templates\nNext,\u00c2\u00a0define the\u00c2\u00a0handlebar templates. The templates will nearly match the base template\u00c2\u00a0found in ./clients/base/fields/base/ with the minor difference of an additional attribute\u00c2\u00a0of style=\"background:{{def.backcolor}}; color:{{def.textcolor}}\"\u00c2\u00a0for the detail and list templates.\nDetail View", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-4", "text": "Detail View\nThe first template\u00c2\u00a0to\u00c2\u00a0define is the Sidecar detail view. This template handles the display of data on the record\u00c2\u00a0view.\n./custom/clients/base/fields/Highlightfield/detail.hbs\n{{!\n The data for field colors are passed into the handlebars template through the def array. For this example, the def.backcolor and def.textcolor properties. These indexes are defined in:\n ./custom/modules/DynamicFields/templates/Fields/TemplateHighlightfield.php\n}}\n{{#if value}}\n
\n {{value}}\n
\n{{/if}}\nEdit View", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-5", "text": "{{value}}\n \n{{/if}}\nEdit View\nNow define the Sidecar edit view. This template handles the display of the\u00c2\u00a0field in the edit view.\n./custom/clients/base/fields/Highlightfield/edit.hbs.\n{{!\n We have not made any edits to this file that differ from stock, however,\n we could add styling here just as we did for the detail and list templates.\n}}\n\n

\nList View", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-6", "text": "

\nList View\nFinally, define the list view. This template handles the display of the custom field in list views.\n./custom/clients/base/fields/Highlightfield/list.hbs\u00c2\u00a0\n{{!\n The data for field colors are passed into the handlebars template through the def array. Our case\n being the def.backcolor and def.textcolor properties. These indexes are defined in:\n ./custom/modules/DynamicFields/templates/Fields/TemplateHighlightfield.php\n}}\n

\n {{#if def.link}}\n {{value}}{{else}}{{value}}\n {{/if}}\n
\nAdding the Field Type to Studio\nTo enable the new\u00c2\u00a0field type for use in Studio, define the Studio field template. This will also allow us to map any additional properties we need for the\u00c2\u00a0templates. For this example,\u00c2\u00a0map the ext1 and ext2 fields from the fields_meta_data table to the backcolor and textcolor definitions. Also, set\u00c2\u00a0the dbfield definition to\u00c2\u00a0varchar\u00c2\u00a0so that the correct database field type is created.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-8", "text": "Note: We are setting \"reportable\" to false to avoid issues with Report Wizard.\n./custom/modules/DynamicFields/templates/Fields/TemplateHighlightfield.php\nvardef_map['ext1'] = 'backcolor';\n $this->vardef_map['ext2'] = 'textcolor';\n $this->vardef_map['backcolor'] = 'ext1';\n $this->vardef_map['textcolor'] = 'ext2';\n }\n //BEGIN BACKWARD COMPATIBILITY\n // AS 7.x does not have EditViews and DetailViews anymore these are here\n // for any modules in backwards compatibility mode.\n function get_xtpl_edit()\n {\n $name = $this->name;\n $returnXTPL = array();\n if (!empty($this->help)) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-10", "text": "$returnXTPL = array();\n if (!empty($this->help)) {\n $returnXTPL[strtoupper($this->name . '_help')] = translate($this->help, $this->bean->module_dir);\n }\n if (isset($this->bean->$name)) {\n $returnXTPL[$this->name] = $this->bean->$name;\n } else {\n if (empty($this->bean->id)) {\n $returnXTPL[$this->name] = $this->default_value;\n }\n }\n return $returnXTPL;\n }\n function get_xtpl_search()\n {\n if (!empty($_REQUEST[$this->name])) {\n return $_REQUEST[$this->name];\n }\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-11", "text": "return $_REQUEST[$this->name];\n }\n }\n function get_xtpl_detail()\n {\n $name = $this->name;\n if (isset($this->bean->$name)) {\n return $this->bean->$name;\n }\n return '';\n }\n //END BACKWARD COMPATIBILITY\n /**\n * Function: get_field_def\n * Description: Get the field definition attributes that are required for the Highlightfield Field\n * the primary reason this function is here is to set the dbType to 'varchar',\n * otherwise 'Highlightfield' would be used by default.\n * References: __construct function above\n *\n * @return Field Definition\n */\n function get_field_def()\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-12", "text": "*/\n function get_field_def()\n {\n $def = parent::get_field_def();\n //set our fields database type\n $def['dbType'] = 'varchar';\n //set our fields to false to avoid issues with Report Wizard.\n $def['reportable'] = false;\n //set our field as custom type\n $def['custom_type'] = 'varchar';\n //map our extension fields for colorizing the field\n $def['backcolor'] = !empty($this->backcolor) ? $this->backcolor : $this->ext1;\n $def['textcolor'] = !empty($this->textcolor) ? $this->textcolor : $this->ext2;\n return $def;\n }\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-13", "text": "return $def;\n }\n}\nNote: For the\u00c2\u00a0custom field type, the\u00c2\u00a0ext1, ext2, ext3, and ext4\u00c2\u00a0database fields in the fields_meta_data table\u00c2\u00a0offer\u00c2\u00a0additional property storage.\nCreating the Form Controller\nNext, set up the field's form controller. This controller will handle the field's form template in Admin > Studio > Fields and allow us to assign color values to the Smarty template.\n./custom/modules/DynamicFields/templates/Fields/Forms/Highlightfield.php\nget_template_vars();\n $fields = $vars['module']->mbvardefs->vardefs['fields'];\n $fieldOptions = array();\n foreach ($fields as $id => $def) {\n $fieldOptions[$id] = $def['name'];\n }\n $ss->assign('fieldOpts', $fieldOptions);\n //If there are no colors defined, use black text on\n // a white background", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-15", "text": "//If there are no colors defined, use black text on\n // a white background\n if (isset($vardef['backcolor'])) {\n $backcolor = $vardef['backcolor'];\n } else {\n $backcolor = '#ffffff';\n }\n if (isset($vardef['textcolor'])) {\n $textcolor = $vardef['textcolor'];\n } else {\n $textcolor = '#000000';\n }\n $ss->assign('BACKCOLOR', $backcolor);\n $ss->assign('TEXTCOLOR', $textcolor);\n $colorArray = $app_list_strings['highlightColors'];\n asort($colorArray);\n $ss->assign('highlightColors', $colorArray);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-16", "text": "$ss->assign('highlightColors', $colorArray);\n $ss->assign('textColors', $colorArray);\n $ss->assign('BACKCOLORNAME', $app_list_strings['highlightColors'][$backcolor]);\n $ss->assign('TEXTCOLORNAME', $app_list_strings['highlightColors'][$textcolor]);\n return $ss->fetch('custom/modules/DynamicFields/templates/Fields/Forms/Highlightfield.tpl');\n}\n?>\nCreating the Smarty Template", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-17", "text": "}\n?>\nCreating the Smarty Template\nOnce the\u00c2\u00a0form controller is in place, create the Smarty template. The .tpl below will define the center content of the field's Studio edit view.\u00c2\u00a0The template includes\u00c2\u00a0a coreTop.tpl and coreBottom.tpl file. These files\u00c2\u00a0add the base\u00c2\u00a0field properties such as\u00c2\u00a0\"Name\" and \"Display Label\" that are common across all field types. This allows us to focus on\u00c2\u00a0the fields that are specific to our new field type.\n./custom/modules/DynamicFields/templates/Fields/Forms/Highlightfield.tpl\n{include file=\"modules/DynamicFields/templates/Fields/Forms/coreTop.tpl\"}\n", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-18", "text": "\n {sugar_translate module=\"DynamicFields\" label=\"COLUMN_TITLE_DEFAULT_VALUE\"}:\n \n {if $hideLevel < 5}\n \n {else}\n {$vardef.default}\n {/if}\n \n\n\n {sugar_translate module=\"DynamicFields\" label=\"COLUMN_TITLE_MAX_SIZE\"}:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-19", "text": "\n {if $hideLevel < 5}\n \n \n {if $action==\"saveSugarField\"}\n \n {/if}\n {literal}\n \n {/literal}\n {else}\n {$vardef.len}\n {/if}\n \n\n\n {sugar_translate module=\"DynamicFields\" label=\"LBL_HIGHLIGHTFIELD_BACKCOLOR\"}:\n \n {if $hideLevel < 5}\n {html_options name=\"ext1\" id=\"ext1\" selected=$BACKCOLOR options=$highlightColors}\n {else}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-22", "text": "{else}\n \n {$BACKCOLORNAME}\n {/if}\n \n\n\n {sugar_translate module=\"DynamicFields\" label=\"LBL_HIGHLIGHTFIELD_TEXTCOLOR\"}:\n \n {if $hideLevel < 5}\n {html_options name=\"ext2\" id=\"ext2\" selected=$TEXTCOLOR options=$highlightColors}\n {else}\n \n {$TEXTCOLORNAME}\n {/if}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-23", "text": "{$TEXTCOLORNAME}\n {/if}\n \n\n{include file=\"modules/DynamicFields/templates/Fields/Forms/coreBottom.tpl\"}\nRegistering the Field Type\nOnce you\u00c2\u00a0have defined the\u00c2\u00a0Studio template, register the\u00c2\u00a0field as a valid field type. For this example, the\u00c2\u00a0field\u00c2\u00a0will inherit the base field type\u00c2\u00a0as it is a\u00c2\u00a0text field. In doing this, we are\u00c2\u00a0able\u00c2\u00a0to override the core\u00c2\u00a0functions. The most used override is the save function shown below.\n./custom/include/SugarFields/Fields/Highlightfield/SugarFieldHighlightfield.php\ndebug(\"SugarFieldHighlightfield::save() function called.\");\n parent::save($bean, $params, $field, $properties, $prefix);\n }\n}\n?>\nCreating Language Definitions\nFor the new\u00c2\u00a0field,\u00c2\u00a0you must\u00c2\u00a0define several language extensions to ensure everything is displayed correctly. This section includes\u00c2\u00a0three steps:\nAdding the Custom Field to the Type List\nCreating Labels for Studio", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-25", "text": "Adding the Custom Field to the Type List\nCreating Labels for Studio\nDefining Dropdown Controls\nAdding the Custom Field to the Type List\nDefine the\u00c2\u00a0new field type in the\u00c2\u00a0field types list. This will allow an Administrator to select the Highlightfield\u00c2\u00a0field type in Studio when creating a new field.\n./custom/Extension/modules/ModuleBuilder/Ext/Language/en_us.Highlightfield.php\n 'Blue',\n '#00ffff' => 'Aqua',\n '#FF00FF' => 'Fuchsia',\n '#808080' => 'Gray',\n '#ffff00' => 'Olive',\n '#000000' => 'Black',\n '#800000' => 'Maroon',\n '#ff0000' => 'Red',\n '#ffA500' => 'Orange',\n '#ffff00' => 'Yellow',\n '#800080' => 'Purple',\n '#ffffff' => 'White',\n '#00ff00' => 'Lime',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-28", "text": "'#00ff00' => 'Lime',\n '#008000' => 'Green',\n '#008080' => 'Teal',\n '#c0c0c0' => 'Silver',\n '#000080' => 'Navy'\n);\nEnabling Search and Filtering\nTo enable Highlightfield\u00c2\u00a0for searching and filtering, define the filter operators and the Sugar widget.\nDefining the Filter Operators\nThe\u00c2\u00a0filter operators, defined in\u00c2\u00a0./custom/clients/base/filters/operators/operators.php, \u00c2\u00a0allow the custom field be used\u00c2\u00a0for searching in\u00c2\u00a0Sidecar listviews.\u00c2\u00a0\n./custom/clients/base/filters/operators/operators.php\n 'LBL_HIGHLIGHTFIELD_OPERATOR_CONTAINS',\n '$not_contains' => 'LBL_HIGHLIGHTFIELD_OPERATOR_NOT_CONTAINS',\n '$starts' => 'LBL_HIGHLIGHTFIELD_OPERATOR_STARTS_WITH',\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-30", "text": ");\nNote: The labels for the\u00c2\u00a0filters in this example are defined in \u00c2\u00a0./custom/Extension/application/Ext/Language/en_us.Highlightfield.php. For the full list of filters in the system, you can look at ./clients/base/filters/operators/operators.php.\nDefining the Sugar Widget\nFinally, define the Sugar widget. The widget will help our field for display on Reports and subpanels in backward compatibility. It also controls how search filters are applied\u00c2\u00a0to our field.\n./custom/include/generic/SugarWidgets/SugarWidgetFieldHighlightfield.php\nreporter->db->convert($this->_get_column_select($layout_def), \"text2char\") .\n \" = \" . $this->reporter->db->quoted($layout_def['input_name0']);\n }\n function queryFilterNot_Equals_Str($layout_def)\n {\n $column = $this->_get_column_select($layout_def);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-32", "text": "$column = $this->_get_column_select($layout_def);\n return \"($column IS NULL OR \" . $this->reporter->db->convert($column, \"text2char\") . \" != \" .\n $this->reporter->db->quoted($layout_def['input_name0']) . \")\";\n }\n function queryFilterNot_Empty($layout_def)\n {\n $column = $this->_get_column_select($layout_def);\n return \"($column IS NOT NULL AND \" . $this->reporter->db->convert($column, \"length\") . \" > 0)\";\n }\n function queryFilterEmpty($layout_def)\n {\n $column = $this->_get_column_select($layout_def);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "ff8e8d8e08db-33", "text": "$column = $this->_get_column_select($layout_def);\n return \"($column IS NULL OR \" . $this->reporter->db->convert($column, \"length\") . \" = 0)\";\n }\n function displayList($layout_def)\n {\n return nl2br(parent::displayListPlain($layout_def));\n }\n}\n?>\nOnce the files are in place, navigate to Admin > Repair > Quick Repair and Rebuild. It is also best practice\u00c2\u00a0to clear your browser cache before using the new\u00c2\u00a0field type in Studio.\n \tLast modified: 2023-03-09 22:43:32", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_Custom_Fields/index.html"} {"id": "c9398acc7a9f-0", "text": "Modifying Layouts to Display Additional Columns\nOverview\nBy default, the record view layout for each module displays two columns of fields. The number of columns to display can be customized on a per-module basis with the following steps.\nResolution\nFirst, you will want to ensure your layouts are deployed in the custom directory. If you have not previously customized your layouts via Studio, go to Admin > Studio > {Module Name} > Layouts. From there, select each layout you wish to add additional columns to and click 'Save & Deploy'. This action will create a corresponding layout file under the ./custom/modules/{Module Name}/clients/base/views/record/ directory. The file will be named record.php.\nIn your custom record.php file, locate the maxColumns\u00c2\u00a0value under templateMeta array, and change it to the number of columns you would like to have on screen:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Layouts_to_Display_Additional_Columns/index.html"} {"id": "c9398acc7a9f-1", "text": "'maxColumns' => '3',\nOnce that is updated, locate the widths array to define the spacing for your each column(s). You should have a label and field entry for each column in your layout:\n'widths' => array (\n 0 => array (\n 'label' => '10',\n 'field' => '30',\n ),\n 1 => array (\n 'label' => '10',\n 'field' => '30',\n ),\n 2 => array (\n 'label' => '10',\n 'field' => '30',\n ),\n),\nNext, under the existing\u00c2\u00a0panels\u00c2\u00a0array, each entry will already have a columns property, with a value of 2. Update each of these to the number of columns you set for\u00c2\u00a0maxColumns\u00c2\u00a0:\n'columns' => 3,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Layouts_to_Display_Additional_Columns/index.html"} {"id": "c9398acc7a9f-2", "text": "'columns' => 3,\nOnce the file has been modified, you can navigate to Studio and add fields to your new column in the layout. For any rows that already contain two fields, the second field will automatically span the second and third column. Simply click the minus (-) icon to contract the field to one column and expose the new column space:\nAfter you have added the desired fields in Studio, click 'Save & Deploy' to finalize your changes\nColumn Widths\nStudio does not support expanding a field beyond two column-widths. If you want a field to span the full layout (all three columns), you would need to manually update this in the custom record.php like so:\narray (\n 'name' => 'description',\n 'span' => 12,\n)", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Layouts_to_Display_Additional_Columns/index.html"} {"id": "c9398acc7a9f-3", "text": "'name' => 'description',\n 'span' => 12,\n)\nChanging the span value from 8 to 12. After saving the changes on the file, you would then run a Quick Repair and Rebuild. However, any updates in Studio will revert the span back to 8.\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Layouts_to_Display_Additional_Columns/index.html"} {"id": "c7f14063ac9a-0", "text": "Module Loadable Packages\nExamples working with the module loadable packages.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/index.html"} {"id": "c7f14063ac9a-1", "text": "TopicsCreating an Installable Package for a Logic HookThese examples will demonstrate how to create module loadable packages for logic hooks based on different scenarios.Creating an Installable Package That Copies FilesThis is an overview of how to create a module loadable package that will copy files into your instance of Sugar. This is most helpful when your instance is hosted in Sugar's cloud environment or by a third party. For more details on the $manifest or $installdef options, you can visit the Introduction to the Manifest. This example package can be downloaded here.Creating an Installable Package that Creates New FieldsThis is an overview of how to create a Module Loader package that will install custom fields to a module. This example will install a set of fields to the accounts module. The full package is downloadable here for your reference. For more details on the $manifest or $installdef options, you can visit the Introduction to the Manifest File.Removing Files with", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/index.html"} {"id": "c7f14063ac9a-2", "text": "options, you can visit the Introduction to the Manifest File.Removing Files with an Installable PackageThis is an overview of how to create a module loadable package that will remove files from the custom directory that may have been left over from a previous package installation or legacy versions of your code customization.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/index.html"} {"id": "c7f14063ac9a-3", "text": "Last modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/index.html"} {"id": "f2c71ef3616e-0", "text": "Creating an Installable Package for a Logic Hook\nOverview\nThese examples will demonstrate how to create module loadable packages for logic hooks based on different scenarios.\nLogic Hook File vs. Logic Hook Definition\nNo matter the deployment method, all logic hooks require being registered (meaning they are attached to the $hook_array array), defining the logic hook event, module, file to load, and class and function to run for that logic hook event. For all deployment options, the logic hook definition points to a file where the class and function to run is located, and this file must be copied to the instance via the copy\u00c2\u00a0installdefs of the manifest. The bulk of this article will focus on the various options for registering the logic hook definition via the package manifest. But all deployment strategies will assume the same logic hook definition, the same logic hook file, and will use the same\u00c2\u00a0copy array to move the logic hook file into the instance.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-1", "text": "Note: More information on the $manifest or $installdef\u00c2\u00a0can be found in\u00c2\u00a0the Introduction to the Manifest .\nThe Logic Hook\nThis logic hook will install a before_save hook to the accounts module that will default the account name to 'My New Account Name ({time stamp})'. This various ways of installing this hook will be shown in the following sections.\nLogic Hook Definition\n/Files/custom/Extension/Accounts/Ext/LogicHooks/account_name_hook.php\n/Files/custom/modules/Accounts/accounts_save.php\nname = \"My New Account Name (\" . time() . \")\";\n\t}\n}\nDistributed Plugin", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-3", "text": "}\n}\nDistributed Plugin\nIf the package being built is intended to be distributed to various Sugar instances as part of a distributed plugin, your logic hook definition should be created as part of the extension framework using the LogicHooks Extension, which can be done using\u00c2\u00a0$installdefs['logic_hooks'] in the package manifest. When using this extension, the logic hook will be installed and uninstalled along with the plugin.\nNote: More information on the $installdefs['logic_hooks']\u00c2\u00a0can be found in\u00c2\u00a0LogicHooks Extensions.\nPackage Example\nThe following files are relative to the root of the .zip archive which is referred to at the basepath.\u00c2\u00a0This example package can be downloaded here.\n/manifest.php\n array(\n 'PRO',\n 'ENT',\n 'ULT'\n ),\n 'acceptable_sugar_versions' => array(\n 'exact_matches' => array(),\n 'regex_matches' => array(\n '13.0.*\n '),\n ),\n 'author' => 'SugarCRM',\n 'description' => 'Installs a sample logic hook - using extension framework',\n 'icon' => '',\n 'is_uninstallable' => true,\n 'name' => 'Example Logic Hook Installer - Using Extension Framework',\n 'published_date' => '2018-01-01 00:00:00',\n 'type' => 'module',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-5", "text": "'type' => 'module',\n 'version' => '1.0.0',\n);\n$installdefs = array(\n\t'id' => 'package_123',\n\t'copy' => array(\n\t\tarray(\n\t\t\t'from' => '/Files/custom/modules/Accounts/accounts_save.php',\n\t\t\t'to' => 'custom/modules/Accounts/accounts_save.php',\n\t\t),\n\t),\n\t'hookdefs' => array(\n\t\tarray(\n\t\t\t'from' => '/Files/custom/Extension/Accounts/Ext/LogicHooks/account_name_hook.php',\n\t\t\t'to_module' => 'Accounts',\n\t\t)\n\t),\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-6", "text": ")\n\t),\n);\n/Files/custom/Extension/Accounts/Ext/LogicHooks/account_name_hook.php\n/Files/custom/modules/Accounts/accounts_save.php\nname = \"My New Account Name (\" . time() . \")\";\n\t}\n}\nPromotion Process\nIf the package being built is intended to be part of a code promotion process, you are welcome to use the\u00c2\u00a0LogicHooks Extension as mentioned above or\u00c2\u00a0you may find it easier to update the ./custom/modules//logic_hooks.php file, which can be done using the $installdefs['logic_hooks'] in the package manifest.\nPackage Example\nThe following files are relative to the root of the .zip archive which is referred to at the basepath.\u00c2\u00a0This example package can be downloaded here.\n/manifest.php\n array(\n 'PRO',\n 'ENT',\n 'ULT'\n ),\n 'acceptable_sugar_versions' => array(\n 'exact_matches' => array(),\n 'regex_matches' => array(\n '13.0.*\n '),\n ),\n\t'author' => 'SugarCRM',\n\t'description' => 'Installs a sample logic hook - using logic_hooks installdefs',\n\t'icon' => '',\n\t'is_uninstallable' => true,\n\t'name' => 'Example Logic Hook Installer - Using logic_hooks installdefs',\n\t'published_date' => '2018-01-01 00:00:00',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-9", "text": "'published_date' => '2018-01-01 00:00:00',\n\t'type' => 'module',\n\t'version' => '1.0.0',\n);\n$installdefs = array(\n\t'id' => 'package_456',\n\t'copy' => array(\n\t\tarray(\n\t\t\t'from' => '/Files/custom/modules/Accounts/accounts_save.php',\n\t\t\t'to' => 'custom/modules/Accounts/accounts_save.php',\n\t\t),\n\t),\n\t'logic_hooks' => array(\n\t\tarray(\n\t\t\t'module' => 'Accounts',\n\t\t\t'hook' => 'before_save',\n\t\t\t'order' => 99,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-10", "text": "'order' => 99,\n\t\t\t'description' => 'Example Logic Hook - Updates account name',\n\t\t\t'file' => 'custom/modules/Accounts/accounts_save.php',\n\t\t\t'class' => 'Accounts_Save',\n\t\t\t'function' => 'updateAccountName',\n\t\t),\n\t),\n);\n/Files/custom/modules/Accounts/accounts_save.php\nname = \"My New Account Name (\" . time() . \")\";\n\t}\n}\nConditionally Add or Remove Logic Hook via post_execute script", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-11", "text": "}\n}\nConditionally Add or Remove Logic Hook via post_execute script\nA developer may want to be able to trigger the addition or removal of logic hooks from a customization. This can be done using a post execute script with the check_logic_hook_file and remove_logic_hook_file functions.\nIt is recommended to be cautious when doing this and limit any updates to off-hours as not to affect system behavior for users.\nNote:\u00c2\u00a0remove_logic_hook_file\u00c2\u00a0only removes hooks defined in the given module's logic_hooks.php file.\u00c2\u00a0check_logic_hook_file\u00c2\u00a0only checks hooks defined in the given module's\u00c2\u00a0logic_hooks.php\u00c2\u00a0file. Neither check or remove hooks defined via the Logic Hook Extension framework. Thus this deployment option should be considered a subset of the Promotion Process deployment option listed earlier.\nPackage Example", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-12", "text": "Package Example\nNote: For demonstration purposes, in the post_execute script, the Accounts_Save logic hook from the earlier example package is unregistered (if it exists) and a second logic hook Accounts_Save_Enterprise\u00c2\u00a0is registered. The second logic hook points to a different logic hook file, which is moved to the instance using copy\u00c2\u00a0in the manifest.\nThe following files are relative to the root of the .zip archive which is referred to at the basepath.\u00c2\u00a0This example package can be downloaded here.\n/manifest.php\n array(\n 'PRO',\n 'ENT',\n 'ULT'\n ),\n 'acceptable_sugar_versions' => array(\n 'exact_matches' => array(),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-13", "text": "'exact_matches' => array(),\n 'regex_matches' => array(\n '13.0.*\n '),\n ),\n\t'author' => 'SugarCRM',\n\t'description' => 'Installs a sample logic hook - using post_execute check_logic_hook_file',\n\t'icon' => '',\n\t'is_uninstallable' => true,\n\t'name' => 'Example Logic Hook Installer - Using post_execute check_logic_hook_file',\n\t'published_date' => '2018-01-01 00:00:00',\n\t'type' => 'module',\n\t'version' => '1.0.0',\n);\n$installdefs = array(\n\t'id' => 'package_789',\n\t'copy' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_for_a_Logic_Hook/index.html"} {"id": "f2c71ef3616e-14", "text": "'id' => 'package_789',\n\t'copy' => array(\n\t\tarray(\n\t\t\t'from' => '/Files/custom/modules/Accounts/accounts_save_enterprise.php',\n\t\t\t'to' => 'custom/modules/Accounts/accounts_save_enterprise.php',\n\t\t),\n\t),\n\t'post_execute' => array(\n\t\t '/change_hooks.php',\n\t),\n);\n/Files/custom/modules/Accounts/accounts_save_enterprise.php\nname = \"My New Account Name (\" . time() . \") -- Enterprise\";\n\t}\n}\n/change_hooks.php\n array('PRO','ENT','ULT'),\n 'acceptable_sugar_versions' => array(\n 'exact_matches' => array(),\n 'regex_matches' => array('(.*?)\\\\.(.*?)\\\\.(.*?)$'),\n ),\n 'author' => 'SugarCRM',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_That_Copies_Files/index.html"} {"id": "77c11bb579ab-1", "text": "),\n 'author' => 'SugarCRM',\n 'description' => 'Copies my files to custom/src/',\n 'icon' => '',\n 'is_uninstallable' => true,\n 'name' => 'Example File Installer',\n 'published_date' => '2018-06-29 00:00:00',\n 'type' => 'module',\n 'version' => '1.0.0',\n);\n$installdefs = array(\n 'id' => 'package_1530305622',\n 'copy' => array(\n 0 => array(\n 'from' => '/Files/custom/src/MyLibrary/MyCustomClass.php',\n 'to' => 'custom/src/MyLibrary/MyCustomClass.php',\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_That_Copies_Files/index.html"} {"id": "77c11bb579ab-2", "text": "),\n ),\n);\nCopied File Example\nThis example copies a file to\u00c2\u00a0\u00c2\u00a0./custom/src/MyLibrary/MyCustomClass.php, which adds the custom namespaced\u00c2\u00a0class\u00c2\u00a0Sugarcrm\\Sugarcrm\\custom\\MyLibrary\\MyCustomClass\u00c2\u00a0to the application.\ninfo('MyCustomClass says' . \"'{$message}'\");\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_That_Copies_Files/index.html"} {"id": "f2d1a0c96987-0", "text": "Removing Files with an Installable Package\nOverview\nThis is an overview of how to create a module loadable package that will remove files from the custom directory that may have been left over from a previous package installation or legacy versions of your code customization.\u00c2\u00a0\nNote: For SugarCloud customers, this method will not work because removing files is prohibited by Package Scanner. To have files removed, you can submit\u00c2\u00a0a case to Sugar Support with a list of files to be removed or request a package approval and provide your module loadable package.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Removing_Files_with_an_Installable_Package/index.html"} {"id": "f2d1a0c96987-1", "text": "This example will install a custom file and use a pre-execute script to remove files from a previously installed customization. Typically, uninstalling a package would remove the files of the customization, however, in some scenarios, it is desired to install a new package on top of a previous version, and removing files with the new\u00c2\u00a0package might be necessary. The full package for this example is downloadable\u00c2\u00a0here\u00c2\u00a0for your reference.\nFor more details on the $manifest or $installdef options, you can visit the Introduction to the Manifest\u00c2\u00a0documentation.\u00c2\u00a0\nManifest Example\n/manifest.php\n array(\n 'PRO',\n 'ENT',\n 'ULT'\n ),\n 'acceptable_sugar_versions' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Removing_Files_with_an_Installable_Package/index.html"} {"id": "f2d1a0c96987-2", "text": "),\n 'acceptable_sugar_versions' => array(\n 'exact_matches' => array(),\n 'regex_matches' => array(\n '13.0.*\n '),\n ),\n 'author' => 'SugarCRM',\n 'description' => 'Installs a custom class file',\n 'icon' => '',\n 'is_uninstallable' => true,\n 'name' => 'Example Removing File Installer',\n 'published_date' => '2018-12-06 00:00:00',\n 'type' => 'module',\n 'version' => '1.2.0'\n );\n $installdefs = array(\n 'id' => 'package_1341607504',\n 'copy' => array(\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Removing_Files_with_an_Installable_Package/index.html"} {"id": "f2d1a0c96987-3", "text": "'copy' => array(\n array(\n 'from' => '/Files/custom/src/CustomClass.php',\n 'to' => 'custom/src/CustomClass.php',\n ),\n ),\n 'pre_execute' => array(\n '/removeLegacyFiles.php',\n ),\n 'remove_files' => array(\n 'custom/include/CustomClass.php'\n )\n );\n/removeLegacyFiles.php\u00c2\u00a0\ninstalldefs['remove_files'])) {\n foreach($this->installdefs['remove_files'] as $relpath){\n if (SugarAutoloader::fileExists($relpath)) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Removing_Files_with_an_Installable_Package/index.html"} {"id": "f2d1a0c96987-4", "text": "if (SugarAutoloader::fileExists($relpath)) {\n SugarAutoloader::unlink($relpath);\n }\n }\n}\nThe full package is downloadable\u00c2\u00a0here\u00c2\u00a0for your reference.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Removing_Files_with_an_Installable_Package/index.html"} {"id": "40b215ff6a68-0", "text": "Creating an Installable Package that Creates New Fields\nOverview\nThis is an overview of how to create a Module Loader package that will install custom fields to a module. This example will install a set of fields to the accounts module. The full package is downloadable here\u00c2\u00a0for your reference. For more details on the $manifest or $installdef options, you can visit the Introduction to the Manifest File.\nNote: Sugar Sell Essentials customers do not have the ability to upload custom file packages to Sugar using Module Loader.\nManifest Example\n/manifest.php\n array('CE', 'PRO', 'CORP', 'ENT', 'ULT'),\n 'acceptable_sugar_versions' => array(\n 'exact_matches' => array(),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-1", "text": "'exact_matches' => array(),\n 'regex_matches' => array(\n 0 => '6\\\\.5\\\\.(.*?)',\n 1 => '7\\\\.8\\\\.(.*?)\\\\.(.*?)', \n 2 => '7\\\\.9\\\\.(.*?)\\\\.(.*?)', \n 3 => '7\\\\.10\\\\.(.*?)\\\\.(.*?)'\n ),\n 'author' => 'SugarCRM',\n 'description' => 'Installs a sample set of custom fields to the accounts module',\n 'icon' => '',\n 'is_uninstallable' => true,\n 'name' => 'Example Custom Field Installer',\n 'published_date' => '2015-05-11 20:45:04',\n 'type' => 'module',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-2", "text": "'type' => 'module',\n 'version' => '1.0.0',\n);\n$installdefs = array(\n 'id' => 'package_1341607504',\n 'language' => array(\n array(\n 'from' => '/Files/Language/Accounts/en_us.lang.php',\n 'to_module' => 'Accounts',\n 'language' => 'en_us'\n ),\n ),\n 'custom_fields' => array(\n //Text\n array(\n 'name' => 'text_field_example_c',\n 'label' => 'LBL_TEXT_FIELD_EXAMPLE',\n 'type' => 'varchar',\n 'module' => 'Accounts',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-3", "text": "'module' => 'Accounts',\n 'help' => 'Text Field Help Text',\n 'comment' => 'Text Field Comment Text',\n 'default_value' => '',\n 'max_size' => 255,\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'importable' => 'true', // 'true', 'false', 'required'\n 'duplicate_merge' => false, // true or false\n ),\n //DropDown\n array(\n 'name' => 'dropdown_field_example_c',\n 'label' => 'LBL_DROPDOWN_FIELD_EXAMPLE',\n 'type' => 'enum',\n 'module' => 'Accounts',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-4", "text": "'type' => 'enum',\n 'module' => 'Accounts',\n 'help' => 'Enum Field Help Text',\n 'comment' => 'Enum Field Comment Text',\n 'ext1' => 'account_type_dom', //maps to options - specify list name\n 'default_value' => 'Analyst', //key of entry in specified list\n 'mass_update' => false, // true or false\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n 'duplicate_merge' => false, // true or false\n ),\n //MultiSelect\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-5", "text": "),\n //MultiSelect\n array(\n 'name' => 'multiselect_field_example_c',\n 'label' => 'LBL_MULTISELECT_FIELD_EXAMPLE',\n 'type' => 'multienum',\n 'module' => 'Accounts',\n 'help' => 'Multi-Enum Field Help Text',\n 'comment' => 'Multi-Enum Field Comment Text',\n 'ext1' => 'account_type_dom', //maps to options - specify list name\n 'default_value' => 'Analyst', //key of entry in specified list\n 'mass_update' => false, // true or false\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-6", "text": "'audited' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n 'duplicate_merge' => false, // true or false\n ),\n //Checkbox\n array(\n 'name' => 'checkbox_field_example_c',\n 'label' => 'LBL_CHECKBOX_FIELD_EXAMPLE',\n 'type' => 'bool',\n 'module' => 'Accounts',\n 'default_value' => true, // true or false\n 'help' => 'Bool Field Help Text',\n 'comment' => 'Bool Field Comment',\n 'audited' => false, // true or false\n 'mass_update' => false, // true or false\n 'duplicate_merge' => false, // true or false", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-7", "text": "'duplicate_merge' => false, // true or false\n 'reportable' => true, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n //Date\n array(\n 'name' => 'date_field_example_c',\n 'label' => 'LBL_DATE_FIELD_EXAMPLE',\n 'type' => 'date',\n 'module' => 'Accounts',\n 'default_value' => '',\n 'help' => 'Date Field Help Text',\n 'comment' => 'Date Field Comment',\n 'mass_update' => false, // true or false\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-8", "text": "'audited' => false, // true or false\n 'duplicate_merge' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n //DateTime\n array(\n 'name' => 'datetime_field_example_c',\n 'label' => 'LBL_DATETIME_FIELD_EXAMPLE',\n 'type' => 'datetime',\n 'module' => 'Accounts',\n 'default_value' => '',\n 'help' => 'DateTime Field Help Text',\n 'comment' => 'DateTime Field Comment',\n 'mass_update' => false, // true or false\n 'enable_range_search' => false, // true or false\n 'required' => false, // true or false", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-9", "text": "'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'duplicate_merge' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n //Encrypt\n array(\n 'name' => 'encrypt_field_example_c',\n 'label' => 'LBL_ENCRYPT_FIELD_EXAMPLE',\n 'type' => 'encrypt',\n 'module' => 'Accounts',\n 'default_value' => '',\n 'help' => 'Encrypt Field Help Text',\n 'comment' => 'Encrypt Field Comment',\n 'reportable' => true, // true or false", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Module_Loadable_Packages/Creating_an_Installable_Package_that_Creates_New_Fields/index.html"} {"id": "40b215ff6a68-10", "text": "'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'duplicate_merge' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n ),\n);\n?>\nLanguage Example\n/Files/Language/Accounts/en_us.lang.php\nfrom(BeanFactory::newBean('Accounts'), ['team_security' => false]);\n $sq->select->fieldRaw('MAX(' . $sq->getFromAlias() . '_cstm.incrementing_number_c)', 'current_max_id');\n $current_max_id = $sq->getOne();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_an_Auto-Incrementing_Field/index.html"} {"id": "f5b5f47b19cf-2", "text": "$current_max_id = $sq->getOne();\n $max_id = (empty($current_max_id)) ? 1 : $current_max_id + 1;\n $bean->incrementing_number_c = $max_id;\n }\n }\n}\nNext, register the custom logic hook via the LogicHooks Extension framework by creating a file at ./custom/Extension/modules/Accounts/Ext/LogicHooks. An example is shown below:\n./custom/Extension/modules/Accounts/Ext/LogicHooks/autoIncrementOnSave.php\n 'account_number_auto',\n 'vname' => 'LBL_NUMBER_AUTO',\n 'type' => 'int',\n 'readonly' => true,\n 'len' => 11,\n 'required' => true,\n 'auto_increment' => true,\n 'unified_search' => true,\n 'full_text_search' => array(\n 'enabled' => true, \n 'searchable' => true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_an_Auto-Incrementing_Field/index.html"} {"id": "f5b5f47b19cf-5", "text": "'enabled' => true, \n 'searchable' => true, \n 'boost' => 1.25\n ),\n 'comment' => 'Visual unique identifier',\n 'duplicate_merge' => 'disabled',\n 'disable_num_format' => true,\n 'studio' => array('quickcreate' => false),\n 'duplicate_on_record_copy' => 'no',\n);\n$dictionary['Account']['indices']['account_number_auto'] = array(\n 'name' =>'accountsnumk_cstm', \n 'type' =>'unique', \n 'fields'=>array('account_number_auto'),\n);\nNavigate to Admin > Studio > Repair > Quick Repair and Rebuild. After the repair, you will see a vardef comparison as shown below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_an_Auto-Incrementing_Field/index.html"} {"id": "f5b5f47b19cf-6", "text": "/*COLUMNS*/\n/*MISSING IN DATABASE - account_number_auto - ROW*/\nALTER TABLE accounts add COLUMN account_number_auto int(11) NOT NULL auto_increment;\n/* INDEXES */\n/*MISSING INDEX IN DATABASE - accountsnumk_cstm - unique ROW */\nALTER TABLE accounts ADD CONSTRAINT UNIQUE accountsnumk_cstm (account_number_auto);;\nAlter this to be the following and execute the changes:\nALTER TABLE accounts add COLUMN account_number_auto int(11) UNIQUE NOT NULL auto_increment;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_an_Auto-Incrementing_Field/index.html"} {"id": "f5b5f47b19cf-7", "text": "Note: Since auto-incremented fields are populated at the database level, all existing records in the database will have this field populated as soon as the field is created on the database table. The value assigned will not be based on any logic (such as the record creation date) that can be controlled or predicted. Therefore when sorting by this field, records created after the field was added will be in order that they were created, but records created before will not.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Creating_an_Auto-Incrementing_Field/index.html"} {"id": "3eca6a819542-0", "text": "Disabling RLI Alerts on Opportunities\nOverview\nHow to disable Revenue Line Item (RLI) alerts on Opportunities using a custom JavaScript controller.\nOverriding the Record View\nFirst, we must override\u00c2\u00a0the stock opportunities record view. This will handle the RLI alerts when navigating to an existing record. This can be done by creating:\n./custom/modules/Opportunities/clients/base/views/record/record.js\n({\n extendsFrom: 'OpportunitiesRecordView',\n initialize: function (options) {\n this._super('initialize', [options]);\n },\n /**\n * Hide the warning message about missing RLIs\n * @param string module The module that we are currently on.\n */\n showRLIWarningMessage: function(module) {\n //here we create an empty override function\n },\n /**", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Disabling_RLI_Alerts_on_Opportunities/index.html"} {"id": "3eca6a819542-1", "text": "//here we create an empty override function\n },\n /**\n * @inheritdoc\n */\n _dispose: function() {\n this._super('_dispose', []);\n }\n})\nAs you can see, this file extends from 'OpportunitiesRecordView' which points our code to extend the stock ./modules/Opportunities/clients/base/views/record/record.js file.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Disabling_RLI_Alerts_on_Opportunities/index.html"} {"id": "8f604914c4ab-0", "text": "Passing Data to Templates\nOverview\nThis page explains how to create a custom view component that passes data to the Handlebars template.\nSteps to Complete\nThe view component will render the actual content on the page. The view below will display data passed to it from the controller.\n./custom/clients/base/views/my-dataview/my-dataview.js\n({\n className: 'tcenter',\n loadData: function (options) {\n //populate your data\n myData=new Object();\n myData.myProperty = \"My Value\";\n this.myData = myData;\n \n /*\n //alternatively, you can pass in a JSON array to populate your data\n myData = $.parseJSON( '{\"myData\":{\"myProperty\":\"My Value\"}}' );\n _.extend(this, myData);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Passing_Data_to_Templates/index.html"} {"id": "8f604914c4ab-1", "text": "_.extend(this, myData);\n */\n this.render();\n //reset flags on reload\n if (options && _.isFunction(options.complete)) {\n options.complete();\n }\n \n // Another Alternative you can get the date from an end point\n let self = this;\n app.api.call(\"read\", app.api.buildURL(\"Accounts/4bbd3b4e-755d-11e9-9a7b-f45c89a8598f\"), null, {\n success: function (accountResponse) {\n self.myData['account'] = accountResponse;\n self.render();\n },\n })\n },\n})\nNext, add the Handlebars template to render the data. An example is shown below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Passing_Data_to_Templates/index.html"} {"id": "8f604914c4ab-2", "text": "Next, add the Handlebars template to render the data. An example is shown below:\n./custom/clients/base/views/my-dataview/my-dataview.hbs\n{{#with myData}}\n {{account.name}} - {{account.assigned_user_name}}
\n {{myProperty}}\n{{/with}}\nOnce the files are in place, add the\u00c2\u00a0view to a layout and then navigate to Admin > Repair > Quick Repair and Rebuild.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Passing_Data_to_Templates/index.html"} {"id": "9e1dfe418687-0", "text": "Converting Address' Country Field to a Dropdown\nOverview\nAddress fields in Sugar\u00c2\u00ae are normally text fields, which allow users to enter in the appropriate information (e.g. street, city, and country) for the record. However, with\u00c2\u00a0multiple users working in Sugar, it is possible for data (e.g. country) to be entered in a variety of different ways (e.g. USA, U.S.A, and United States) when creating or editing the record. This can cause some issues when creating a report grouped by the Billing Country field, for example, as records with the same country will be grouped separately based on the different ways the country was entered. \u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-1", "text": "This article will cover how to change the address' Billing Country field to a dropdown list which will allow users to select a single\u00c2\u00a0value (e.g. USA) and maintain consistency in data throughout the system. \u00c2\u00a0 \u00c2\u00a0\nNote: This article pertains to Sugar versions 6.x and 7.x.\nUse Case\nIn this example, we will convert the Billing Country field in the Accounts module to a dropdown-type field to allow values to be selected from a dropdown list.\nPrerequisites", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-2", "text": "Prerequisites\nA part of making this change involves mapping\u00c2\u00a0the \"countries_dom\" dropdown list to your existing\u00c2\u00a0Billing Country field's values. This dropdown list can be accessed and modified via Admin > Dropdown Editor. For more information on editing dropdown lists, please refer to the\u00c2\u00a0Developer Tools\u00c2\u00a0documentation. It is very important that the existing values in the Billing Country field exactly\u00c2\u00a0match the Item Name values in the \"countries_dom\" dropdown list in order for the values to convert properly. If the existing value (e.g. United States) does not match one of the country options (e.g. USA) in the dropdown list, then the new dropdown version of the Billing Country field will most likely default to a blank value for that record record.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-3", "text": "To avoid such issues, please review and update all of your existing Billing Country text field values prior to making this change. For more information on updating many records at once via import, please refer to the Updating Records Via Import\u00c2\u00a0article.\u00c2\u00a0\nSteps to Complete\nConverting Field to Dropdown\nUse the following steps to change the Billing Country field to a dropdown list:\nFirst, we will\u00c2\u00a0associate the Billing Country field in the Accounts module with the \"countries_dom\" dropdown. Locate the following directory in your Sugar file system: ./custom/Extension/modules/Accounts/Ext/Vardefs/", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-4", "text": "Locate a file called\u00c2\u00a0sugarfield_billing_address_country.php\u00c2\u00a0which controls the billing_address_country field and add the following lines to the file. This will set the field type to 'enum' and define the dropdown (countries_dom) to use for the field.\u00c2\u00a0Note: If this file or location does not exist, then you will need to first create this path and file.Your file should look like this:\n\nDirectly between the list shown above and the appearing before it, add the following lines to display the field as a dropdown:{if (!isset($config.enable_autocomplete) || $config.enable_autocomplete==false) && isset($fields.{{$country}}.options)}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-7", "text": "\n{else}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-8", "text": "{/if}\n\n{else}\n\n{/if}\nSave the changes to the file.\nOnce the necessary change has been made, please navigate to Admin > Repair and perform a Quick Repair and Rebuild in order for the change to take effect. Your Billing Country field will now display as a dropdown field in the Accounts module.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-9", "text": "Please note that only the Account module's Billing Country field will be converted to a dropdown field once this change is applied. If you wish to have the Shipping Country field converted to a dropdown as well, please follow the steps\u00c2\u00a0above, but be sure to make the change specific to the \"shipping_address_country\" field. In addition, you can make this change for other modules (e.g. Contacts and Leads) as well by specifying the appropriate module name (e.g. Contacts) and field name (e.g. Primary Address Country) when going through the steps.\nUpdating the Field Type for List View Filter\nOnce the appropriate changes have been made per the section above, use the following steps to get the list view filter to recognize the change:\nNavigate to Admin > Studio > Accounts > Layouts > Search.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-10", "text": "Navigate to Admin > Studio > Accounts > Layouts > Search.\nDrag the Billing Country field from the Default column to the Hidden column and click \"Save & Deploy\".\nNow drag the Billing Country field back to the Default column and click \"Save & Deploy\" again.\nThis will retrieve the Billing Country field in its new state and add it to the account's list view filter.\nApplication\nOnce the Billing Country field is converted successfully to a dropdown, all records that had an existing value in the field should have the matching country automatically selected. Going forward, users will simply need to select the appropriate country when entering address information in Sugar.\u00c2\u00a0\nPlease note that administrators can add additional country values as necessary to the\u00c2\u00a0\"countries_dom\" dropdown via Admin > Dropdown Editor. For more information on editing dropdown lists, please refer to the Developer Tools documentation. \u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "9e1dfe418687-11", "text": "The Billing Country field will now appear as follows:\nFor Accounts record view:\u00c2\u00a0\nFor Accounts list view filter: \n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_Address_Country_Field_to_a_Dropdown/index.html"} {"id": "cc22bc678d3b-0", "text": "Customizing the Email Editor Buttons\nOverview\nThe Emails module in Sugar\u00c2\u00ae displays commonly-used buttons in the HTML editor. This article explains how to modify the buttons on the editor's toolbar.\nModifying The View\nThe following sections outline how to customize the button toolbar presented within the TinyMCE editor. In the example below, we will be adding buttons for Cut, Copy, and Paste to the toolbar.\nUsing Custom Module Metadata", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Email_Editor_Buttons/index.html"} {"id": "cc22bc678d3b-1", "text": "Using Custom Module Metadata\nTo override the Emails module\u00c2\u00a0compose-email\u00c2\u00a0view, we will need to copy\u00c2\u00a0./modules/Emails/clients/base/views/compose-email/compose-email.php\u00c2\u00a0to\u00c2\u00a0./custom/modules/Emails/clients/base/views/compose-email/compose-email.php. Once completed, we will then edit the ['tinyConfig']['toolbar']\u00c2\u00a0definition\u00c2\u00a0to include\u00c2\u00a0| cut copy paste\u00c2\u00a0.\u00c2\u00a0An example of this is shown below:\n./custom/modules/Emails/clients/base/views/compose-email/compose-email.php\n$viewdefs['Emails']['base']['view']['compose-email'] = array(\n ...\n 'panels' => array(\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Email_Editor_Buttons/index.html"} {"id": "cc22bc678d3b-2", "text": "...\n 'panels' => array(\n array(\n ...\n 'fields' => array(\n \t...\n array(\n 'name' => 'description_html',\n 'dismiss_label' => true,\n 'span' => 12,\n 'tinyConfig' => array(\n 'toolbar' => 'code | bold italic underline strikethrough | bullist numlist | ' .\n 'alignleft aligncenter alignright alignjustify | forecolor backcolor | ' .\n 'fontsizeselect | formatselect | fontselect | sugarattachment sugarsignature sugartemplate | cut copy paste',\n ),\n ),\n ),\n ),\n ...\n ),\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Email_Editor_Buttons/index.html"} {"id": "cc22bc678d3b-3", "text": "),\n ),\n ),\n ),\n ...\n ),\n);\nNote:\u00c2\u00a0We recommend modifying the modules custom\u00c2\u00a0metadata for local deployments when the customization is not part of a distributed package.\nOnce this file is in place, navigate to Admin > Repair\u00c2\u00a0> Quick Repair and Rebuild. Once completed, your changes will be reflected in the system.\nUsing The Module Extension Framework\nTo extend the Emails module\u00c2\u00a0compose-email\u00c2\u00a0view\u00c2\u00a0using the extension framework, we will need to loop through the existing views array definition to find and modify the description_html\u00c2\u00a0field and update the relevant sub-array\u00c2\u00a0['tinyConfig']['toolbar']\u00c2\u00a0with the additional toolbar buttons we want to display. An example of this is shown below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Email_Editor_Buttons/index.html"} {"id": "cc22bc678d3b-4", "text": "./custom/Extension/modules/Emails/Ext/clients/base/views/compose-email/add_toolbar_buttons.php\n $panel) {\n\t\tif (!empty($panel['fields'])) {\n\t\t\tforeach ($panel['fields'] as $j => $field) {\n\t\t\t\tif ($field['name'] == $target_fieldname) {\n\t\t\t\t\tif(!isset($field['tinyConfig'])){\n\t\t\t\t\t\t$field['tinyConfig'] = array();\n\t\t\t\t\t}\n\t\t\t\t\t/* If toolbar already exists, add our custom buttons to the end, \n\t\t\t\t\totherwise set it to the default and append that. */", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Email_Editor_Buttons/index.html"} {"id": "cc22bc678d3b-6", "text": "otherwise set it to the default and append that. */\n\t\t\t\t\tif(!isset($field['tinyConfig']['toolbar'])) {\n\t\t\t\t\t\t$field['tinyConfig']['toolbar'] = $default_toolbar;\n\t\t\t\t\t}\n\t\t\t\t\t$viewdefs['Emails']['base']['view'][$target_view]['panels'][$i]['fields'][$j]['tinyConfig']['toolbar'] = $field['tinyConfig']['toolbar'] . $custom_toolbar;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\nNote:\u00c2\u00a0We recommend using the extension framework when the code will be installed as part of a distributed package.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Email_Editor_Buttons/index.html"} {"id": "cc22bc678d3b-7", "text": "Once this file is in place, navigate to Admin > Repair\u00c2\u00a0> Quick Repair and Rebuild. Once completed, your changes will be reflected in the system.\nToolbar Format\nAs demonstrated in the examples above, the\u00c2\u00a0toolbar\u00c2\u00a0value is a string with the button keywords space-separated. The\u00c2\u00a0|\u00c2\u00a0indicates a divider should be shown in the editor. If the goal were to replace the toolbar buttons with only text-modifier buttons, the value for toolbar\u00c2\u00a0would be:\n'bold italic | underline strikethrough'\nThe toolbar button keywords are documented at\u00c2\u00a0TinyMCE Editor Control Identifiers. Note that at this time, only control keywords listed as \"Core\" are supported by Sugar\u00c2\u00ae.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Email_Editor_Buttons/index.html"} {"id": "18add40a5d64-0", "text": "Removing the Account Requirement on Opportunities\nOverview\nThis article covers how to remove the Account field from being required on the Opportunities module.\u00c2\u00a0\nRemoving the Requirement in Configuration\nBy default, Sugar requires the accounts field to be populated on several modules. These modules include\nOpportunities\nCases\nContracts\nIn order to remove this dependency, you will need to modify the\u00c2\u00a0require_accounts\u00c2\u00a0configuration in\u00c2\u00a0your\u00c2\u00a0 ./config_override.php.\n$sugar_config['require_accounts'] = false;\nThe resulting file should look similar to:\nRemoving the Requirement in Vardefs", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Removing_the_Account_Requirement_on_Opportunities/index.html"} {"id": "18add40a5d64-1", "text": "The resulting file should look similar to:\nRemoving the Requirement in Vardefs\nOnce you have updated your configuration, you may find the field is still required. This may be due to the module's vardefs array having the field's required attribute set to true. This will also need to be updated. Using\u00c2\u00a0the Opportunities vardefs as an example, we will need to do the following:\nCreate a custom file in the Opportunities Extension directory like ./custom/Extension/modules/Opportunities/Ext/Vardefs/no_account_required.php\u00c2\u00a0\nSet the content of this file so that the\u00c2\u00a0account_name field has required set to false\n Repairs and run a Quick Repair & Rebuild\nRemoving the Requirement in View Metadata\nIf the Account field is still required after making these changes, this may be due to the views metadata having the field's required attribute set to true. By default, account_name\u00c2\u00a0should not be set to required, but if you have created custom views, these may need to be updated. Using\u00c2\u00a0the Opportunities record view as an example, we will need to do the following:\nEdit\u00c2\u00a0\u00c2\u00a0./custom/modules/Opportunities/clients/base/views/record/record.php\u00c2\u00a0with a text editor application.\nSearch for the\u00c2\u00a0account_name field in panel definitions of your record view.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Removing_the_Account_Requirement_on_Opportunities/index.html"} {"id": "18add40a5d64-3", "text": "Search for the\u00c2\u00a0account_name field in panel definitions of your record view.\nRemove\u00c2\u00a0'required' => true,\u00c2\u00a0from\u00c2\u00a0the account_name\u00c2\u00a0definition. If it doesn't already exist, you don't need to modify anything.\n...\n 'fields' => \n array (\n 0 => \n array (\n 'name' => 'account_name',\n 'required' => false,\n ...\nYour resulting file should be:\n...\n 'fields' => \n array (\n 0 => \n array (\n 'name' => 'account_name',\n ...\nThese changes will only affect\u00c2\u00a0the\u00c2\u00a0record view for Opportunities.\u00c2\u00a0You may need to modify additional module layouts based on your use case.\u00c2\u00a0A\u00c2\u00a0list of other views you many need to modify for your module are\u00c2\u00a0shown below.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Removing_the_Account_Requirement_on_Opportunities/index.html"} {"id": "18add40a5d64-4", "text": "./custom/modules//clients/base/views/list/list.php\n./custom/modules//clients/base/views/record/record.php\n./custom/modules//clients/base/views/dupecheck-list/dupecheck-list.php\n./custom/modules//clients/base/views/resolve-conflicts-list/resolve-conflicts-list.php\n./custom/modules//clients/base/views/selection-list/selection-list.php\n./custom/modules//clients/base/views/subpanel-list/subpanel-list.php\nOnce completed, you will need to navigate to Admin > Repairs and run a Quick Repair & Rebuild\nApplication", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Removing_the_Account_Requirement_on_Opportunities/index.html"} {"id": "18add40a5d64-5", "text": "Application\nNow that the appropriate changes have been made, navigate to the Opportunities module and create a new opportunity record. You will notice that the Account Name field no longer indicates \"Required\" in the field. In addition, the Account Name field will no longer be marked as required when importing records into the Opportunities module.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Removing_the_Account_Requirement_on_Opportunities/index.html"} {"id": "3f64acab13e3-0", "text": "Modifying Subpanel Buttons\nOverview\nSeveral buttons exist on each subpanel by default such as \"Create\" (+ Plus symbol) and \"Link Existing Record\". These buttons are controlled by the panel-top view for each module. To make changes to the buttons included in a subpanel layout, you will need to create an override for the panel-top view in\u00c2\u00a0./custom/Extension/modules//Ext/clients/base/views/panel-top/ and update the corresponding\u00c2\u00a0buttons property to include or exclude a button.\nIf you need to make changes to a specific relationships subpanel, then you will need to modify the subpanels layout definition for the relationship to point to a custom panel-top view that you define.\nSteps to Complete\nEditing Subpanel Buttons", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Subpanel_Action_Buttons/index.html"} {"id": "3f64acab13e3-1", "text": "Steps to Complete\nEditing Subpanel Buttons\nIn this example, we will remove the \"Create\" button from the Contacts subpanel for all modules. This code snippet uses the same button definition that the create button uses.\u00c2\u00a0It has been changed to trigger the \"Link Existing Record\" action\u00c2\u00a0by setting the button type to link-action. The blank array after the initial button is just to assure that the drop-down button displays next to it as disabled for placement purposes.\nCreate the file custom/Extension/modules/Contacts/Ext/clients/base/views/panel-top/panel-top.php as follows: 'actiondropdown',\n 'name' => 'panel_dropdown',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Subpanel_Action_Buttons/index.html"} {"id": "3f64acab13e3-2", "text": "'name' => 'panel_dropdown',\n 'css_class' => 'pull-right',\n 'buttons' => array(\n array(\n 'type' => 'link-action',\n 'icon' => 'fa-link',\n 'name' => 'select_button',\n 'label' => ' ',\n 'tooltip' => 'LBL_ASSOC_RELATED_RECORD',\n ),\n array(\n ),\n ),\n ),\n);\nNavigate to Admin > Repair and click \"Quick Repair and Rebuild\".\nThe subpanel will appear as shown below for all Contacts subpanels.\nUsing a Custom Panel-Top View for a Specific Relationship", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Subpanel_Action_Buttons/index.html"} {"id": "3f64acab13e3-3", "text": "Using a Custom Panel-Top View for a Specific Relationship\nIn this example, we will only remove the \"Create\" action from a specific relationships subpanel. Specifically, the example will look at Contacts subpanel on the Accounts module and implement the above changes explicitly for that relationship.\nCreate the custom panel-top view in ./custom/modules/Contacts/clients/base/views/panel-top-for-accounts/panel-top-for-accounts.php as follows: 'panel-top',\n 'template' => 'panel-top',\n 'buttons' => array(\n array(\n 'type' => 'actiondropdown',\n 'name' => 'panel_dropdown',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Subpanel_Action_Buttons/index.html"} {"id": "3f64acab13e3-4", "text": "'name' => 'panel_dropdown',\n 'css_class' => 'pull-right',\n 'buttons' => array(\n array(\n 'type' => 'link-action',\n 'icon' => 'fa-link',\n 'name' => 'select_button',\n 'label' => ' ',\n 'tooltip' => 'LBL_ASSOC_RELATED_RECORD',\n ),\n array(\n ),\n ),\n ),\n ),\n);\nCreate the subpanel panel-top override definition for Accounts in ./custom/modules/Accounts/clients/base/layouts/subpanels/subpanels.php as follows:\u00c2\u00a0\n $component){\n if ($component['context']['link'] == 'contacts'){\n $viewdefs['Accounts']['base']['layout']['subpanels']['components'][$key]['override_paneltop_view'] = 'panel-top-for-accounts';\n break;\n }\n}\nNavigate to Admin > Repair and click \"Quick Repair and Rebuild\".\nYour changes will now be\u00c2\u00a0reflected in the system.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Subpanel_Action_Buttons/index.html"} {"id": "3bbf717b8a72-0", "text": "Increasing the Number of Dashboards Displayed in the Home Menu\nOverview\nBy default, the \"Home Dashboard\" comes out-of-the-box with Sugar\u00c2\u00ae to display on the home page. In addition, Sugar users with a Sugar Serve and/or Sugar Sell license type\u00c2\u00a0will have access to specialized Home page dashboards called \"Service Console\" and \"Renewals Console\".\u00c2\u00a0 Users have the ability to create new dashboards on their home page and build out its layout and dashlet set. Currently, Sugar imposes a limit of 50 dashboards that\u00c2\u00a0can be displayed under the Home module tab.\u00c2\u00a0So, when creating multiple dashboards, keep in mind that having more than 50 in the list of available dashboards will cause the ones in the beginning to be dropped off the list.\u00c2\u00a0This article covers\u00c2\u00a0how to increase the number of dashboards allowed in the Home menu via a code-level customization.\nUse Case", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Increasing_the_Number_of_Dashboards_Displayed_in_the_Home_Menu/index.html"} {"id": "3bbf717b8a72-1", "text": "Use Case\nIn this example, we will make a code-level change to set\u00c2\u00a0the number of dashboards allowed in the Home menu to \"80\".\nPrerequisites\nThis change requires code-level customizations. You will need direct access to the server as well as administrator access in Sugar in order to perform the necessary actions. If you need\u00c2\u00a0assistance making these changes and already have a relationship with a Sugar partner, you can work with them to make this change.\u00c2\u00a0If not, please refer to the Partner Page to find a reselling partner to help with your development needs.\u00c2\u00a0\nYou will also need the following capabilities prior to making this code-level customization:\nYou should have a working knowledge of PHP development\u00c2\u00a0and arrays.\nYou should have access to\u00c2\u00a0a text editor that can be used for programming.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Increasing_the_Number_of_Dashboards_Displayed_in_the_Home_Menu/index.html"} {"id": "3bbf717b8a72-2", "text": "You should have access to\u00c2\u00a0a text editor that can be used for programming.\nIf your Sugar instance is hosted on Sugar's cloud service or hosted on a server to which you do not have direct file access, you will need to know how to create and deploy Module Loader packages. For more information, please refer to the Module Loader section of the Developer Guide.\nNote: Sugar Sell Essentials customers do not have the ability to upload custom file packages to Sugar using Module Loader.\nSteps to Complete\nThe following steps cover setting the number of dashboards allowed on the Home menu to \"80\" as an example:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Increasing_the_Number_of_Dashboards_Displayed_in_the_Home_Menu/index.html"} {"id": "3bbf717b8a72-3", "text": "Navigate to ./modules/Home/clients/base/views/module-menu/module-menu.php and copy the file contents to a new file at ./custom/modules/Home/clients/base/views/module-menu/module-menu.php. The contents of the file should look similar to this:\n array(\n 'favorites' => 0,\n 'recently_viewed' => 10,\n 'recently_viewed_toggle' => 3,\n ),\n);\n?>", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Increasing_the_Number_of_Dashboards_Displayed_in_the_Home_Menu/index.html"} {"id": "3bbf717b8a72-4", "text": "),\n);\n?>\nModify the ./custom/modules/Home/clients/base/views/module-menu/module-menu.php file and add the\u00c2\u00a0dashboards => 80, element to the array. The modified file should look similar to this: array(\n 'dashboards' => 80,\n 'favorites' => 0,\n 'recently_viewed' => 10,\n 'recently_viewed_toggle' => 3,\n ),\n);\n?>\nSave the changes to the file and update the ownership and permissions of the files that were created.\nFor more information on Linux-based stacks, please refer to the Required File System Permissions on Linux article.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Increasing_the_Number_of_Dashboards_Displayed_in_the_Home_Menu/index.html"} {"id": "3bbf717b8a72-5", "text": "For more information on Windows-based stacks, please refer to the Required File System Permissions on Windows With IIS article.\u00c2\u00a0\nFinally, log\u00c2\u00a0into Sugar as an administrator, navigate to Admin > Repair, and perform a \"Quick Repair and Rebuild\". This will rebuild the cached files to fully implement the changes to your Sugar instance.\nApplication\nOnce the appropriate changes have\u00c2\u00a0been made, users should be able to create and view up to 80 dashboards on their home page and any previously missing dashboards should now display in the Home menu as well.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Increasing_the_Number_of_Dashboards_Displayed_in_the_Home_Menu/index.html"} {"id": "3a9f9f6c3a8a-0", "text": "This page applies to the legacy \"BWC\" calendar offering. Sugar has released a Sidecar-based calendar in version 11.2.0; this content does not apply to the Sidecar calendar.\nModifying Calendar Item Colors\nOverview\nEach calendar event type (Meetings, Calls, and Tasks) has its own distinct color scheme. This article will review how to modify these colors, as well as demonstrate how to set the event color based on the event status.\nThe color scheme for each calendar activity type is defined in the stock file ./modules/Calendar/CalendarDisplay.php\u00c2\u00a0in the $activity_colors array as shown below:\npublic $activity_colors = array(\n\t'Meetings' => array(\n\t\t'border' => '#1C5FBD',\n\t\t'body' => '#D2E5FC',\n\t),\n\t'Calls' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-1", "text": "),\n\t'Calls' => array(\n\t\t'border' => '#DE4040',\n\t\t'body' => '#FCDCDC',\n\t),\n\t'Tasks' => array(\n\t\t'border' => '#015900',\n\t\t'body' => '#B1F5AE',\n\t),\n);\nThis file can not be overridden or extended in an upgrade-safe way, but this array can still be overridden later in the rendering process allowing for an upgrade safe customization.\nModifying the Calendar Activity Colors\nThe CalendarDisplay class passes the $activity_colors array to javascript by way of the ./modules/Calendar/tpls/main.tpl Smarty template.\nIn this template file, you will see the following code where the CAL.activity_colors\u00c2\u00a0object is setup:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-2", "text": "CAL.activity_colors = [];\t\t\t\t\n{foreach name=colors from=$activity_colors key=module item=v}\n\tCAL.activity_colors['{$module}'] = [];\n\tCAL.activity_colors['{$module}']['border'] = '{$v.border}';\n\tCAL.activity_colors['{$module}']['body'] = '{$v.body}'\n{/foreach}\nThis is where we can update the $activity_colors array in an upgrade safe manner. To do this, copy the template file from./modules/Calendar/tpls/main.tpl to ./custom/modules/Calendar/tpls/main.tpl.\nIf we wanted to change Meetings to have a purple color scheme, we might choose:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-3", "text": "If we wanted to change Meetings to have a purple color scheme, we might choose:\nborder: #580059body : #F2AEF5\nTo implement this, we'll update the activity colors array in the custom template file as follows:\n./custom/modules/Calendar/tpls/main.tpl\nCAL.activity_colors = [];\t\t\t\t\n{foreach name=colors from=$activity_colors key=module item=v}\n\tCAL.activity_colors['{$module}'] = [];\n\tCAL.activity_colors['{$module}']['border'] = '{$v.border}';\n\tCAL.activity_colors['{$module}']['body'] = '{$v.body}'\n{/foreach}\n{literal}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-4", "text": "{/foreach}\n{literal}\nCAL.activity_colors[\"Meetings\"] = {\n\t\"border\": \"#580059\",\n\t\"body\": \"#F2AEF5\"\n};\n{/literal}\nIn the above code, the activity_colors entry for \"Meetings\" has specifically been altered to set the custom colors just for Meetings, leaving the other activity types as they were. Alternatively, the entire activity_colors array could be updated, replacing the original coming from CalendarDisplay. For example:\n./custom/modules/Calendar/tpls/main.tpl\nCAL.activity_colors = [];\t\t\t\t\n{foreach name=colors from=$activity_colors key=module item=v}\n\tCAL.activity_colors['{$module}'] = [];", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-5", "text": "CAL.activity_colors['{$module}'] = [];\n\tCAL.activity_colors['{$module}']['border'] = '{$v.border}';\n\tCAL.activity_colors['{$module}']['body'] = '{$v.body}'\n{/foreach}\n{literal}\nCAL.activity_colors = {\n\t\t\"Meetings\": {\n\t\t\t\"border\": \"#580059\",\n\t\t\t\"body\": \"#F2AEF5\"\n\t\t},\n\t\t\"Calls\": {\n\t\t\t\"border\": \"#DE4040\",\n\t\t\t\"body\": \"#FCDCDC\"\n\t\t},\n\t\t\"Tasks\": {\n\t\t\t\"border\": \"#015900\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-6", "text": "\"Tasks\": {\n\t\t\t\"border\": \"#015900\",\n\t\t\t\"body\": \"#B1F5AE\"\n\t\t}\n\t};\n{/literal}\nWhile Calls and Tasks have not been modified from their original colors, having the entire array defined here may make it easier to make further color customizations later on, since the modified activity_colors will be completely defined in the custom template file.\nAfter making the above changes, run a Quick Repair and Rebuild and reload the Calendar module in your browser to see the changes take effect.\nCustomizing colors based on event status", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-7", "text": "Customizing colors based on event status\nIf you wanted to go a step further, you might want to customize the colors based on the status of the activity. For example, perhaps for Meetings, the color should reflect if the Meeting status is Scheduled, Held, or Canceled. To achieve this, we will need to customize the javascript that actually renders the activities onto the calendar view, so we will copy\u00c2\u00a0./modules/Calendar/Cal.js to ./custom/modules/Calendar/Cal.js.\nAdditionally, in order for our custom template to load the custom Cal.js, it will need to be updated to point to the custom Cal.js by changing the line:\n{sugar_getscript file=\"modules/Calendar/Cal.js\"}\nto\n{sugar_getscript file=\"custom/modules/Calendar/Cal.js\"}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-8", "text": "{sugar_getscript file=\"custom/modules/Calendar/Cal.js\"}\nThe activity colors from the CAL.activity_colors object get applied in the Cal.js script at:\nel.style.backgroundColor = CAL.activity_colors[item.module_name]['body'];\nel.style.borderColor = CAL.activity_colors[item.module_name]['border'];\t\t\t\t\t\t\nThe activity type (Meetings, Calls, Tasks) comes from item.module_name, as shown above. The activity's status can be found in the item.status variable. Using these, we can modify the color-setting logic to apply a status-specific color scheme to the Meeting items in the calendar, for example:\nif (item.module_name ==\"Meetings\") {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-9", "text": "if (item.module_name ==\"Meetings\") {\n el.style.backgroundColor = CAL.activity_colors[item.module_name][item.status]['body'];\n el.style.borderColor = CAL.activity_colors[item.module_name][item.status]['border'];\n} \nelse {\n el.style.backgroundColor = CAL.activity_colors[item.module_name]['body'];\n el.style.borderColor = CAL.activity_colors[item.module_name]['border'];\n}\nThis assumes that the 'Meetings' part of CAL.activity_colors has status-specific colors set. Therefore we will need to update our custom template file so that this is the case:\n./custom/modules/Calendar/tpls/main.tpl\n{literal}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-10", "text": "{literal}\nCAL.activity_colors = {\n \"Meetings\": {\n \"Planned\": {\n \"border\": \"#FF6666\",\n \"body\": \"#FF6666\"\n },\n \"Held\": {\n \"border\": \"#FF9999\",\n \"body\": \"#FF9999\"\n },\n \"Not Held\": {\n \"border\": \"#6C8CD5\",\n \"body\": \"#6C8CD5\"\n }\n },\n \"Calls\": {\n \"border\": \"#DE4040\",\n \"body\": \"#FCDCDC\"\n },\n \"Tasks\": {\n \"border\": \"#015900\",\n \"body\": \"#B1F5AE\"\n },\n \"Planned\": {\n \"border\": \"#ff6666\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "3a9f9f6c3a8a-11", "text": "},\n \"Planned\": {\n \"border\": \"#ff6666\",\n \"body\": \"#ff6666\"\n },\n \"Held\": {\n \"border\": \"#FF9999\",\n \"body\": \"#FF9999\"\n },\n \"Not Held\": {\n \"border\": \"#6C8CD5\",\n \"body\": \"#6C8CD5\"\n }\n};\n{/literal}\nAfter making the above changes, run Rebuild JS Grouping Files followed by a Quick Repair and Rebuild, then reload the Calendar module in your browser to see the changes take effect.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Modifying_Calendar_Item_Colors/index.html"} {"id": "0a0183b5e8c0-0", "text": "Prepopulating the Compose Email View\nOverview\nWhen composing an email in Sugar, it may be useful to modify the compose view to better suit your common business practices. In this article, we will use JavaScript to create a code-level customization which causes the To, CC, and Subject fields of the email to prepopulate with data from a related Opportunity.\nSteps to Complete\nCreate a Custom Compose Email View\nTo modify the default compose email functionality, we will need to create our own compose-email view that extends from the base compose-email view. To accomplish this, we will need to create the following file:\n./custom/modules/Emails/clients/base/views/compose-email/compose-email.js\n({\n extendsFrom: 'EmailsComposeEmailView',\n initialize: function(options){\n this._super('initialize',[options]);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Prepopulating_the_Compose_Email_View/index.html"} {"id": "0a0183b5e8c0-1", "text": "initialize: function(options){\n this._super('initialize',[options]);\n this.configureDefaults();\n },\n /**\n * Configure the default data\n */\n configureDefaults: function(){\n var model = this.context.parent.get('model');\n var module = this.context.parent.get('module');\n if (module == 'Opportunities'){\n var contacts;\n var oppName = model.get('name');\n if (this.model.get('to_collection').length === 0) {\n var email = this.model;\n //Get the related contacts to the Opportunity\n contacts = model.getRelatedCollection('contacts');\n contacts.fetch({\n relate: true,\n success: function (data) {\n var ccRecords = [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Prepopulating_the_Compose_Email_View/index.html"} {"id": "0a0183b5e8c0-2", "text": "success: function (data) {\n var ccRecords = [],\n toRecords = [];\n data.forEach(function (record) {\n var parentName = app.utils.getRecordName(record);\n if (record.attributes.opportunity_role == 'Primary Decision Maker') {\n //Primary decisions makers are added to the TO Recipients\n toRecords.push(app.data.createBean('EmailParticipants', {\n _link: 'to',\n parent: _.extend({type: record.module}, record.attributes),\n parent_type: record.module,\n parent_id: record.get('id'),\n parent_name: parentName\n }));\n } else {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Prepopulating_the_Compose_Email_View/index.html"} {"id": "0a0183b5e8c0-3", "text": "parent_name: parentName\n }));\n } else {\n //All other contacts are added to the CC Recipients\n ccRecords.push(app.data.createBean('EmailParticipants', {\n _link: 'cc',\n parent: _.extend({type: record.module}, record.attributes),\n parent_type: record.module,\n parent_id: record.get('id'),\n parent_name: parentName\n }));\n }\n });\n email.get('to_collection').add(toRecords);\n email.get('cc_collection').add(ccRecords);\n },\n fields: ['id', 'full_name', 'email', 'opportunity_role']\n });\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Prepopulating_the_Compose_Email_View/index.html"} {"id": "0a0183b5e8c0-4", "text": "});\n }\n //Default the Subject of Email to the Opportunity Name\n email.set('name',oppName);\n }\n }\n})\nSome key things to note about this customization:\nThe custom view should extend from EmailsComposeEmailView\nWhen adding recipients to an Email Bean Model, you should create an EmailParticipants Bean Model and specify the _link property that will be used.\nThis view will be used when clicking on the \"Create\" button in the Emails subpanel, or when clicking on Email Address on a record when the user is configured to use the Sugar Email Client\nOnce you have added the custom code, execute a Quick Repair and rebuild via Admin > Repair > Quick Repair and Rebuild, and your changes should now be reflected in your instance.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Prepopulating_the_Compose_Email_View/index.html"} {"id": "1eefc417d286-0", "text": "Refreshing Subpanels on the RecordView\nOverview\nHow to refresh specific subpanels on the Record View.\nRefreshing Subpanels\nWhen Working with the Record View, it is sometimes necessary to force the refresh of a subpanel. The following example will demonstrate how to add buttons to force refresh a specific subpanel or all subpanels on the Accounts RecordView.\nAdding the Button Metadata\nFor our example, we will first create a metadata extension file to append our custom refresh buttons to the Accounts RecordView action menu.\n./custom/Extension/modules/Accounts/Ext/clients/base/views/record/refreshButtons.php\n 'divider',\n ),\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Refreshing_Subpanels_on_the_Record_View/index.html"} {"id": "1eefc417d286-1", "text": "'type' => 'divider',\n ),\n array (\n 'type' => 'rowaction',\n 'event' => 'button:refresh_specific_subpanel:click',\n 'name' => 'refresh_specific_subpanel',\n 'label' => 'LBL_REFRESH_SPECIFIC_SUBPANEL',\n 'acl_action' => 'view',\n ),\n array (\n 'type' => 'rowaction',\n 'event' => 'button:refresh_all_subpanels:click',\n 'name' => 'refresh_all_subpanels',\n 'label' => 'LBL_REFRESH_ALL_SUBPANELS',\n 'acl_action' => 'view',\n )\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Refreshing_Subpanels_on_the_Record_View/index.html"} {"id": "1eefc417d286-2", "text": "'acl_action' => 'view',\n )\n);\n//if the buttons are missing in our base modules metadata, include core buttons\nif (!isset($viewdefs[$module]['base']['view']['record']['buttons']))\n{\n require('clients/base/views/record/record.php');\n $viewdefs[$module]['base']['view']['record']['buttons'] = $viewdefs['base']['view']['record']['buttons'];\n unset($viewdefs['base']);\n}\nforeach($viewdefs[$module]['base']['view']['record']['buttons'] as $outerKey => $outerButton)\n{\n if (\n isset($outerButton['type'])", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Refreshing_Subpanels_on_the_Record_View/index.html"} {"id": "1eefc417d286-3", "text": "{\n if (\n isset($outerButton['type'])\n && $outerButton['type'] == 'actiondropdown'\n && isset($outerButton['name'])\n && $outerButton['name'] == 'main_dropdown'\n && isset($outerButton['buttons'])\n )\n {\n /*\n //removing buttons by name\n foreach($viewdefs[$module]['base']['view']['record']['buttons'][$outerKey]['buttons'] as $innerKey => $innerButton)\n {\n if (\n isset($innerButton['name'])\n && $innerButton['name'] == 'button_name'\n )\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Refreshing_Subpanels_on_the_Record_View/index.html"} {"id": "1eefc417d286-4", "text": ")\n {\n unset($viewdefs[$module]['base']['view']['record']['buttons'][$outerKey]['buttons'][$innerKey]);\n }\n }\n */\n //appending buttons\n foreach ($addButtons as $addButton)\n {\n $viewdefs[$module]['base']['view']['record']['buttons'][$outerKey]['buttons'][]=$addButton;\n }\n }\n}\nNext, we will create our language labels for the\u00c2\u00a0buttons.\n./custom/Extension/modules/Accounts/Ext/Language/en_us.refreshButtons.php\n Repair > Quick Repair and Rebuild. This will rebuild our extensions and make the refresh buttons available on our RecordView.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Refreshing_Subpanels_on_the_Record_View/index.html"} {"id": "b36cba6b260f-0", "text": "Disabling Tooltips\nOverview\nThis article will demonstrate how to disable the tooltips in Sugar.\nSteps to Complete\nCreating a Custom JavaScript File\nFirst, we will need to create a custom JavaScript file. This file can technically exist anywhere within the root of your\u00c2\u00a0Sugar instance.\ncustom/JavaScript/disable_tooltips.js\n(function(app){\n app.events.on('app:init', function(){\n // Clear existing ones\n app.tooltip.clear();\n // Disable all\n app.tooltip._disable();\n });\n})(SUGAR.App);\nAppending to JSGroupings\nSecond, we need to add our disable_tooltips.js file to sugar_grp7.min.js in our\u00c2\u00a0JSGroupings.\ncustom/Extension/application/Ext/JSGroupings/disable_tooltips.php\n $groupings) {\n foreach ($groupings as $file => $target) {\n if ($target == 'include/javascript/sugar_grp7.min.js') {\n $js_groupings[$key]['custom/JavaScript/disable_tooltips.js'] = 'include/javascript/sugar_grp7.min.js';\n }\n break;\n }\n}\nNote: More information about JSGroupings can be found here.\nQuick Repair and Rebuild", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Disabling_Tooltips/index.html"} {"id": "b36cba6b260f-2", "text": "Note: More information about JSGroupings can be found here.\nQuick Repair and Rebuild\nAfter creating the\u00c2\u00a0./custom/JavaScript/disable_tooltips.js and\u00c2\u00a0./custom/Extension/application/Ext/JSGroupings/disable_tooltips.php files, navigate to Admin > Repairs and\u00c2\u00a0perform a \"Quick Repair and Rebuild\". This will rebuild the cached files to fully implement\u00c2\u00a0the changes.\u00c2\u00a0 Once \"Quick Repair and Rebuild\" finishes, the tooltips will be disabled through Sugar.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Disabling_Tooltips/index.html"} {"id": "7c603304dbd8-0", "text": "Enabling Importing for Custom Modules\nOverview\nWhen designing a custom module in Module Builder, you have the option to enable importing for the module. If the custom module is deployed without enabling this option, it is not recommended that you redeploy the module since any changes made in Studio and potentially other areas of the application could be lost. This article will cover how to enable importing for custom modules via a code-level change\u00c2\u00a0to preserve any additional configurations made to the module since being deployed from Module Builder.\nSteps to Complete", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Enabling_Importing_for_Custom_Modules/index.html"} {"id": "7c603304dbd8-1", "text": "Steps to Complete\nTo enable importing for your custom module, you must\u00c2\u00a0modify certain PHP files depending on the version of Sugar that you have. Please note that the instructions below apply to custom modules created via Admin > Module Builder and are not applicable to any stock modules which come out-of-the-box with Sugar. All of the directory paths are relative to the root directory of Sugar on the web server and require you to replace the and variables with appropriate values for your situation. For instance, if your module is installed in the directory of ./modules/abc_custom_module/ then the would be abc\u00c2\u00a0and would be custom_module.\nEdit the ./modules/_/__sugar.php file in your Sugar file system.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Enabling_Importing_for_Custom_Modules/index.html"} {"id": "7c603304dbd8-2", "text": "Around line 24 of the file, locate and change\u00c2\u00a0public $importable = false;\u00c2\u00a0to\u00c2\u00a0public $importable = true;.\nSave your changes to the file.\nNext, edit the ./modules/_/clients/base/menus/header/header.php file which should look similar to this:$viewdefs[$moduleName]['base']['menu']['header'] = array(\n array( \n 'route' => \"#$moduleName/create\", \n 'label' => 'LNK_NEW_RECORD',\n 'acl_action' => 'create',\n 'acl_module' => $moduleName,\n 'icon' => 'fa-plus',\n ),\n array(\n 'route' => \"#$moduleName\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Enabling_Importing_for_Custom_Modules/index.html"} {"id": "7c603304dbd8-3", "text": "),\n array(\n 'route' => \"#$moduleName\",\n 'label' => 'LNK_LIST',\n 'acl_action' => 'list',\n 'acl_module' => $moduleName,\n 'icon' => 'fa-bars',\n ),\n);\nAdd the following line to the end of the file after the last\u00c2\u00a0 ),\u00c2\u00a0but before the ending );:array(\n 'route' => \"#bwc/index.php?module=Import&action=Step1&import_module=$moduleName&return_module=$moduleName&return_action=index\",\n 'label' => 'LBL_IMPORT',\n 'acl_action' => 'import',\n 'acl_module' => $moduleName,\n 'icon' => 'icon-upload',\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Enabling_Importing_for_Custom_Modules/index.html"} {"id": "7c603304dbd8-4", "text": "'icon' => 'icon-upload',\n ),\nSave your changes to the file. The updated file should then look similar to this:$viewdefs[$moduleName]['base']['menu']['header'] = array(\n array( \n 'route' => \"#$moduleName/create\", \n 'label' => 'LNK_NEW_RECORD',\n 'acl_action' => 'create',\n 'acl_module' => $moduleName,\n 'icon' => 'fa-plus',\n ),\n array(\n 'route' => \"#$moduleName\",\n 'label' => 'LNK_LIST',\n 'acl_action' => 'list',\n 'acl_module' => $moduleName,\n 'icon' => 'fa-bars',\n ),\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Enabling_Importing_for_Custom_Modules/index.html"} {"id": "7c603304dbd8-5", "text": "'icon' => 'fa-bars',\n ),\n array(\n 'route' => \"#bwc/index.php?module=Import&action=Step1&import_module=$moduleName&return_module=$moduleName&return_action=index\",\n 'label' => 'LBL_IMPORT',\n 'acl_action' => 'import',\n 'acl_module' => $moduleName,\n 'icon' => 'icon-upload',\n ),\n);\nOnce the necessary changes have been made, log into Sugar and navigate to Admin > Repair and perform a \"Quick Repair and Rebuild\". This will rebuild the cached files to fully implement\u00c2\u00a0the changes.\u00c2\u00a0\nApplication", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Enabling_Importing_for_Custom_Modules/index.html"} {"id": "7c603304dbd8-6", "text": "Application\nAfter making these\u00c2\u00a0changes, the \"Import {Module Name}\" option will appear in the Actions menu of the custom module's module tab. Simply click the triangle in the module tab, then select the Import option to create or update records for your custom module. For instructions on using Sugar's Import tool, please refer to the Import documentation.\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Enabling_Importing_for_Custom_Modules/index.html"} {"id": "6868b182307a-0", "text": "Moving Footer content to Sidebar Nav\nOverview\nThis example explains how to add additional buttons to a new section in the sidebar nav layout. You may have previously customized a button that was added to the footer layout, which can be repurposed here and added to the sidebar-nav layout. We will create a custom view and append the view component to the sidebar-nav layout metadata. The additional button will merely show an alert and a flyout menu with a link to the Accounts module but can be expanded to do much more.\nSteps To Complete\nThis tutorial requires the following steps, which are explained in the sections below:\nExtend the language files to include the new labels\nCreating the Custom View\nAppending the View to Layout Metadata\nAdding a Secondary Action\nExtending the Language files to Include New Labels\nWe'll want to add a couple of new labels for our new sidebar-nav-item. To do this, create the following file:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-1", "text": "./custom/Extension/application/Ext/Language/en_us.greetingNavItem.php\n true\n);\nAppending the View to Layout Metadata", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-4", "text": "'autoClose' => true\n);\nAppending the View to Layout Metadata\nOnce the view is created, you simply need to add the view to the\u00c2\u00a0sidebar-nav\u00c2\u00a0Layout metadata. The sidebar-nav Layout is located in\u00c2\u00a0./clients/base/layouts/sidebar-nav/, so appending the view to this layout can be done via the Extension Framework. Create a file\u00c2\u00a0\u00c2\u00a0./custom/Extension/application/Ext/clients/base/layouts/sidebar-nav/\u00c2\u00a0and the Extension Framework will append the metadata to the\u00c2\u00a0sidebar-nav\u00c2\u00a0Layout.\n./custom/Extension/application/Ext/clients/base/layouts/sidebar-nav/greeting-nav-item.php\n [\n 'name' => 'greeting-nav-item',\n 'type' => 'greeting-nav-item',\n 'icon' => 'sicon-bell-lg',\n 'label' => 'LBL_HELLO_C',\n 'template' => 'sidebar-nav-item',\n ],\n];\nOnce all the files are in place, you can run a Quick Repair and Rebuild and a new group\u00c2\u00a0\u00c2\u00a0sidebar-nav-item\u00c2\u00a0at the bottom of the\u00c2\u00a0sidebar-nav\u00c2\u00a0bar layout.\n\u00c2\u00a0\nNote:\u00c2\u00a0You may need to refresh the page to see the profile menu items removed.\nAdding a Secondary Action", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-6", "text": "Adding a Secondary Action\nWith the introduction of the\u00c2\u00a0sidebar-nav-item\u00c2\u00a0component, we're now introducing Secondary Actions. These appear by way of a kebab menu when hovering on the\u00c2\u00a0sidebar-nav-item\u00c2\u00a0container to which they are added. It can be configured similarly to a Primary Action.\nIn this example, we'll add a secondary action to our\u00c2\u00a0greeting-nav-item\u00c2\u00a0view. It will trigger a flyout menu that has a link to the Accounts module.\nFirst, let's add a new label to the language file we created earlier for our flyout menu header:\n [\n 'name' => 'greeting-nav-item',\n 'type' => 'greeting-nav-item',\n 'icon' => 'sicon-bell-lg',\n 'label' => 'LBL_HELLO_C',\n 'secondary_action' => true,\n 'template' => 'sidebar-nav-item',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-8", "text": "'template' => 'sidebar-nav-item',\n 'flyoutComponents' => [\n [\n 'view' => 'sidebar-nav-flyout-header',\n 'title' => 'LBL_GREETINGS_C',\n ],\n [\n 'view' => [\n 'type' => 'sidebar-nav-flyout-actions',\n 'actions' => [\n [\n 'route' => '#Accounts',\n 'label' => 'LBL_ACCOUNTS',\n 'icon' => 'sicon-account-lg',\n ],\n ],\n ],\n ],\n ],\n ],\n];\n\u00c2\u00a0\nOnce these changes are added, you can\u00c2\u00a0run a Quick Repair and Rebuild and sidebar-nav-item will be updated with a Secondary Action.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-9", "text": "\u00c2\u00a0\nNote:\u00c2\u00a0You may need to refresh the page to see the profile menu items removed.\n\u00c2\u00a0\nCustomizing the sidebar-nav-item Template\nBy default, our new\u00c2\u00a0sidebar-nav-item\u00c2\u00a0is using the base Handlebars template. If you'd like to customize the template, create the following Handlebar Template file\u00c2\u00a0greeting-nav-item.hbs. The following snippet is the template for the base view for reference.\u00c2\u00a0\n./custom/clients/base/views/greeting-nav-item/greeting-nav-item.hbs\n{{#if appIsSynced}}\n ", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-11", "text": "\n \n \n {{#if secondaryAction}}\n \n {{/if}}\n{{/if}}\nNext, in\u00c2\u00a0./custom/Extension/application/Ext/clients/base/layouts/sidebar-nav/greeting-nav-item.php remove the\u00c2\u00a0'template' => 'sidebar-nav-item'\u00c2\u00a0metadata entry.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-12", "text": "Note: Sidebar components must be expanded/collapsed state aware now, therefore you must make sure to provide\u00c2\u00a0collapsed\u00c2\u00a0(simple icon) and\u00c2\u00a0expanded\u00c2\u00a0(icon + text)\u00c2\u00a0class elements in your buttons.\nChanging position of sidebar-nav-item\nIf you need to change the position of the\u00c2\u00a0sidebar-nav-item\u00c2\u00a0in\u00c2\u00a0the\u00c2\u00a0sidebar-nav\u00c2\u00a0layout, it is recommended that the layout be redefined using custom metadata. For example, if you\u00c2\u00a0wanted to move the group we created above, we could define the custom metadata as such:\n./custom/clients/base/layouts/sidebar-nav/sidebar-nav.php\n [\n [ \n 'layout' => '...',\n ],\n [\n 'layout' => [\n 'type' => 'sidebar-nav-item-group-modules',\n 'css_class' => 'flex-grow flex-shrink',\n ],\n ],\n [\n 'layout' => [", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-14", "text": "],\n ],\n [\n 'layout' => [\n 'type' => 'sidebar-nav-item-group',\n 'name' => 'sidebar-nav-item-group-bottom',\n 'css_class' => 'flex-grow-0 flex-shrink-0',\n 'components' => [\n [\n 'view' => [\n 'name' => 'footer-greet-button',\n 'type' => 'footer-greet-button',\n 'route' => '#Accounts',\n 'icon' => 'sicon-bell-lg',\n 'label' => 'Hello!',\n 'flyoutComponents' => [\n [\n 'view' => 'sidebar-nav-flyout-header',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-15", "text": "'view' => 'sidebar-nav-flyout-header',\n 'title' => 'Greetings',\n ],\n [\n 'view' => [\n 'type' => 'sidebar-nav-flyout-actions',\n 'actions' => [\n [\n 'route' => '#Accounts',\n 'label' => 'LBL_ACCOUNTS',\n 'icon' => 'sicon-account-lg',\n ],\n ],\n ],\n ],\n ],\n ],\n ],\n ],\n ],\n ],\n [\n 'layout' => [\n 'type' => 'sidebar-nav-item-group',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "6868b182307a-16", "text": "'type' => 'sidebar-nav-item-group',\n 'name' => 'sidebar-nav-item-group-bottom',\n 'css_class' => 'flex-grow-0 flex-shrink-0',\n 'components' => [ ... ],\n ],\n ],\n ],\n];\nNote:\u00c2\u00a0Although this is a best practice for customizing base metadata, these base layouts are subject to change and may be changed in the future. Maintenance of these customizations belongs to the owner of the instance.\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Moving_Footer_content_to_Sidebar_Nav/index.html"} {"id": "cb0ad2db4387-0", "text": "Customizing the Start Speed of List View Search\nOverview\nWhen searching a Sidecar module's list view, Sugar\u00c2\u00ae begins returning results automatically once a\u00c2\u00a0predefined number of milliseconds have passed. This article covers how to customize the start speed of the list view search for Sidecar modules in Sugar.\nPrerequisites\nThis change requires code-level customizations, and you will need direct access to the server in order to make the necessary changes in the file system.\u00c2\u00a0If you already have a relationship with a Sugar partner, you can work with them to make this customization. If not, please refer to the Partner Page to find a reselling partner to help with your development needs.\u00c2\u00a0\nNote: If your\u00c2\u00a0instance is hosted in Sugar's cloud environment, you can create a package that can be installed within Admin > Module Loader. For more information, please refer to the Creating an Installable Package That Copies Files article.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Start_Speed_of_List_View_Search/index.html"} {"id": "cb0ad2db4387-1", "text": "Note: Sugar Sell Essentials customers do not have the ability to upload custom file packages to Sugar using Module Loader.\nUse Case\nBy default, the list view search process in Sugar begins to run 400 milliseconds after a user stops typing or pasting values into one of the search fields.\u00c2\u00a0For some users or situations, the system-defined start speed for list view search may be considered too fast. We will walk through increasing the length of time it takes before the search starts to run, using 750 milliseconds as an example.\nSteps to Complete\nThe function that controls the list view search speed in Sugar can be found in the following file: ./clients/base/views/filter-quicksearch/filter-quicksearch.js\u00c2\u00a0In order to customize this function, please use the following steps to create an extension in the ./custom/ directory:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Start_Speed_of_List_View_Search/index.html"} {"id": "cb0ad2db4387-2", "text": "Navigate to the ./custom/ directory in the Sugar file system and create the following directory structure if it does not already exist: ./clients/base/views/filter-quicksearch/.\nIn a text editor application, create a new file.\nCopy the code provided below into this new file:({\n extendsFrom: 'FilterQuicksearchView',\n /**\n * @override\n * @param {Object} opts\n */\n initialize: function(opts) {\n this._super('initialize', [opts]);\n },\n /**\n * Fire quick search\n * @param {Event} e\n */\n throttledSearch: _.debounce(function(e) {\n var newSearch = this.$el.val();\n if(this.currentSearch !== newSearch) {\n this.currentSearch = newSearch;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Start_Speed_of_List_View_Search/index.html"} {"id": "cb0ad2db4387-3", "text": "this.currentSearch = newSearch;\n this.layout.trigger('filter:apply', newSearch);\n }\n }, 750),\n})\nFor our example, the value of \"750\" at the end of the code represents the new start speed of list view search. Feel free to replace it with\u00c2\u00a0your desired value in milliseconds.\nSave the new file as./custom/clients/base/views/filter-quicksearch/filter-quicksearch.js.\nUpdate the Ownership and Permissions of the directories and file that were created.\nFor more information on Linux based stacks, please refer to the article Required\u00c2\u00a0File\u00c2\u00a0System\u00c2\u00a0Permissions\u00c2\u00a0on Linux.\nFor more information on Windows-based stacks, please refer to the article Required File System Permissions on Windows With IIS.\nFinally, log into Sugar and navigate to Admin > Repair then perform a \"Quick Repair and Rebuild\".", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Start_Speed_of_List_View_Search/index.html"} {"id": "cb0ad2db4387-4", "text": "After completing the steps in this article, Sugar will wait 750 milliseconds before returning search results once\u00c2\u00a0the user has stopped entering search criteria.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_the_Start_Speed_of_List_View_Search/index.html"} {"id": "0a667cf3ea8e-0", "text": "Adding the Email Field to a Bean\nOverview\nThis example explains how to add an emails field for modules that don't extend the Person module template. We will create an email field and bring the email functionality module bean. The steps are applicable for stock and custom modules. In this example, we will add the email field into the Opportunities module.\nSteps to Complete\nThis tutorial requires the following steps, which are explained in the sections below:\nCreating a Custom Vardef file for email Field and Relationships\nCreating a Custom Bean and Modify the save function\nReplacing the stock bean with the custom bean\nAdding Emails Field into Record View\nCreating a Custom Vardef file for email Field and Relationships\nYou will create a file in the custom/Extension/modules/Opportunities/\u00c2\u00a0folder for the field and relationships definitions.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-1", "text": "./custom/Extension/modules/Opportunities/Ext/Vardefs/custom_email_field.php\n 'email',\n 'type' => 'email',\n 'query_type' => 'default',\n 'source' => 'non-db',\n 'operator' => 'subquery',\n 'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 AND ea.email_address LIKE',\n 'db_field' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-2", "text": "'db_field' => array(\n 'id',\n ),\n 'vname' => 'LBL_EMAIL_ADDRESS',\n 'studio' => array(\n 'visible' => true,\n 'searchview' => true,\n 'editview' => true,\n 'editField' => true,\n ),\n 'duplicate_on_record_copy' => 'always',\n 'len' => 100,\n 'link' => 'email_addresses_primary',\n 'rname' => 'email_address',\n 'module' => 'EmailAddresses',\n 'full_text_search' => array(\n 'enabled' => true,\n 'searchable' => true,\n 'boost' => 1.50,\n ),\n 'audited' => true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-3", "text": "),\n 'audited' => true,\n 'pii' => true,\n);\n$dictionary[$module]['fields']['email1'] = array(\n 'name' => 'email1',\n 'vname' => 'LBL_EMAIL_ADDRESS',\n 'type' => 'varchar',\n 'function' => array(\n 'name' => 'getEmailAddressWidget',\n 'returns' => 'html',\n ),\n 'source' => 'non-db',\n 'link' => 'email_addresses_primary',\n 'rname' => 'email_address',\n 'group' => 'email1',\n 'merge_filter' => 'enabled',\n 'module' => 'EmailAddresses',\n 'studio' => false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-4", "text": "'module' => 'EmailAddresses',\n 'studio' => false,\n 'duplicate_on_record_copy' => 'always',\n 'importable' => false,\n);\n$dictionary[$module]['fields']['email2'] = array(\n 'name' => 'email2',\n 'vname' => 'LBL_OTHER_EMAIL_ADDRESS',\n 'type' => 'varchar',\n 'function' => array(\n 'name' => 'getEmailAddressWidget',\n 'returns' => 'html',\n ),\n 'source' => 'non-db',\n 'group' => 'email2',\n 'merge_filter' => 'enabled',\n 'studio' => 'false',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-5", "text": "'studio' => 'false',\n 'duplicate_on_record_copy' => 'always',\n 'importable' => false,\n 'workflow' => false,\n);\n$dictionary[$module]['fields']['invalid_email'] = array(\n 'name' => 'invalid_email',\n 'vname' => 'LBL_INVALID_EMAIL',\n 'source' => 'non-db',\n 'type' => 'bool',\n 'link' => 'email_addresses_primary',\n 'rname' => 'invalid_email',\n 'massupdate' => false,\n 'studio' => 'false',\n 'duplicate_on_record_copy' => 'always',\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-6", "text": "'duplicate_on_record_copy' => 'always',\n);\n$dictionary[$module]['fields']['email_opt_out'] = array(\n 'name' => 'email_opt_out',\n 'vname' => 'LBL_EMAIL_OPT_OUT',\n 'source' => 'non-db',\n 'type' => 'bool',\n 'link' => 'email_addresses_primary',\n 'rname' => 'opt_out',\n 'massupdate' => false,\n 'studio' => 'false',\n 'duplicate_on_record_copy' => 'always',\n);\n$dictionary[$module]['fields']['email_addresses_primary'] = array(\n 'name' => 'email_addresses_primary',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-7", "text": "'name' => 'email_addresses_primary',\n 'type' => 'link',\n 'relationship' => strtolower($table_name) . '_email_addresses_primary',\n 'source' => 'non-db',\n 'vname' => 'LBL_EMAIL_ADDRESS_PRIMARY',\n 'duplicate_merge' => 'disabled',\n 'primary_only' => true,\n);\n$dictionary[$module]['fields']['email_addresses'] = array(\n 'name' => 'email_addresses',\n 'type' => 'link',\n 'relationship' => strtolower($table_name) . '_email_addresses',\n 'source' => 'non-db',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-8", "text": "'source' => 'non-db',\n 'vname' => 'LBL_EMAIL_ADDRESSES',\n 'reportable' => false,\n 'unified_search' => true,\n 'rel_fields' => array('primary_address' => array('type' => 'bool')),\n);\n// Used for non-primary mail import\n$dictionary[$module]['fields']['email_addresses_non_primary'] = array(\n 'name' => 'email_addresses_non_primary',\n 'type' => 'varchar',\n 'source' => 'non-db',\n 'vname' => 'LBL_EMAIL_NON_PRIMARY',\n 'studio' => false,\n 'reportable' => false,\n 'massupdate' => false,\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-9", "text": "'reportable' => false,\n 'massupdate' => false,\n);\n$dictionary[$module]['relationships'][strtolower($table_name) . '_email_addresses'] = array(\n 'lhs_module' => $table_name,\n 'lhs_table' => strtolower($table_name),\n 'lhs_key' => 'id',\n 'rhs_module' => 'EmailAddresses',\n 'rhs_table' => 'email_addresses',\n 'rhs_key' => 'id',\n 'relationship_type' => 'many-to-many',\n 'join_table' => 'email_addr_bean_rel',\n 'join_key_lhs' => 'bean_id',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-10", "text": "'join_key_lhs' => 'bean_id',\n 'join_key_rhs' => 'email_address_id',\n 'relationship_role_column' => 'bean_module',\n 'relationship_role_column_value' => $table_name,\n);\n$dictionary[$module]['relationships'][strtolower($table_name) . '_email_addresses_primary'] = array(\n 'lhs_module' => $table_name,\n 'lhs_table' => strtolower($table_name),\n 'lhs_key' => 'id',\n 'rhs_module' => 'EmailAddresses',\n 'rhs_table' => 'email_addresses',\n 'rhs_key' => 'id',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-11", "text": "'rhs_key' => 'id',\n 'relationship_type' => 'many-to-many',\n 'join_table' => 'email_addr_bean_rel',\n 'join_key_lhs' => 'bean_id',\n 'join_key_rhs' => 'email_address_id',\n 'relationship_role_column' => 'bean_module',\n 'relationship_role_column_value' => $module,\n 'primary_flag_column' => 'primary_address',\n);\nCreating a Custom Bean and Modifying the Save Function\nNext step, you will need to create a custom bean that extends from the stock bean. In our example, we choose the Opportunities.\u00c2\u00a0\n./custom/modules/Opportunities/CustomOpportunity.php\n emailAddress = BeanFactory::newBean('EmailAddresses');\n }\n /**\n * Populate email address fields here instead of retrieve() so that they are properly available for logic hooks\n *\n * @see parent::fill_in_relationship_fields()\n */\n public function fill_in_relationship_fields()\n {\n parent::fill_in_relationship_fields();\n $this->emailAddress->handleLegacyRetrieve($this);\n }\n /**\n * @see parent::get_list_view_data()\n */\n public function get_list_view_data()\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-13", "text": "*/\n public function get_list_view_data()\n {\n global $current_user;\n $temp_array = $this->get_list_view_array();\n $temp_array['EMAIL'] = $this->emailAddress->getPrimaryAddress($this);\n // Fill in the email1 field only if the user has access to it\n // This is a special case, because getEmailLink() uses email1 field for making the link\n // Otherwise get_list_view_data() shouldn't set any fields except fill the template data\n if ($this->ACLFieldAccess('email1', 'read')) {\n $this->email1 = $temp_array['EMAIL'];\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-14", "text": "$this->email1 = $temp_array['EMAIL'];\n }\n $temp_array['EMAIL_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');\n return $temp_array;\n }\n /**\n *\n * @see parent::save()\n */\n public function save($check_notify = false)\n {\n if (static::inOperation('saving_related')) {\n parent::save($check_notify);\n return $this;\n }\n \n $ori_in_workflow = empty($this->in_workflow) ? false : true;\n $this->emailAddress->handleLegacySave($this, $this->module_dir);\n parent::save($check_notify);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-15", "text": "parent::save($check_notify);\n $override_email = array();\n if (!empty($this->email1_set_in_workflow)) {\n $override_email['emailAddress0'] = $this->email1_set_in_workflow;\n }\n if (!empty($this->email2_set_in_workflow)) {\n $override_email['emailAddress1'] = $this->email2_set_in_workflow;\n }\n if (!isset($this->in_workflow)) {\n $this->in_workflow = false;\n }\n if ($ori_in_workflow === false || !empty($override_email)) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-16", "text": "$result = $this->emailAddress->save($this->id, $this->module_dir, $override_email, '', '', '', '',\n $this->in_workflow);\n }\n return $this;\n }\n}\nReplacing the Stock Bean with a Custom Bean\nOnce you created the custom bean, you will need to show Sugar to use Custom bean. To do that you will create ./custom/modules//.php and update the class name and file path in the $beanList and $beanFiles. (See: Modules $beanList\u00c2\u00a0and Customizing Core SugarBeans)\ncustom/Extension/application/Ext/Include/customOpportunities.php\n Repairs and perform Quick Repair and Rebuild.\nAdding the Emails Field to the Record View\nAt the stage, you have already created the field and updated the bean. The last step is placing the email field to record view. You can perform this step using Studio. Once you navigate to Studio you will find an Email field on the left column where available fields are listed. After adding the field the record views of Opportunities will look like this:\n./custom/modules/Opportunities/clients/base/views/record/record.php\n \n array (\n 'view' => \n array (\n 'record' => \n array (\n 'buttons' => \n array (\n 0 => \n array (\n 'type' => 'button',\n 'name' => 'cancel_button',\n 'label' => 'LBL_CANCEL_BUTTON_LABEL',\n 'css_class' => 'btn-invisible btn-link',\n 'showOn' => 'edit',\n 'events' => \n array (\n 'click' => 'button:cancel_button:click',\n ),\n ),\n 1 => \n array (\n 'type' => 'rowaction',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-19", "text": "1 => \n array (\n 'type' => 'rowaction',\n 'event' => 'button:save_button:click',\n 'name' => 'save_button',\n 'label' => 'LBL_SAVE_BUTTON_LABEL',\n 'css_class' => 'btn btn-primary',\n 'showOn' => 'edit',\n 'acl_action' => 'edit',\n ),\n 2 => \n array (\n 'type' => 'actiondropdown',\n 'name' => 'main_dropdown',\n 'primary' => true,\n 'showOn' => 'view',\n 'buttons' => \n array (\n 0 => \n array (\n 'type' => 'rowaction',\n 'event' => 'button:edit_button:click',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-20", "text": "'event' => 'button:edit_button:click',\n 'name' => 'edit_button',\n 'label' => 'LBL_EDIT_BUTTON_LABEL',\n 'acl_action' => 'edit',\n ),\n 1 => \n array (\n 'type' => 'shareaction',\n 'name' => 'share',\n 'label' => 'LBL_RECORD_SHARE_BUTTON',\n 'acl_action' => 'view',\n ),\n 2 => \n array (\n 'type' => 'pdfaction',\n 'name' => 'download-pdf',\n 'label' => 'LBL_PDF_VIEW',\n 'action' => 'download',\n 'acl_action' => 'view',\n ),\n 3 => \n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-21", "text": "),\n 3 => \n array (\n 'type' => 'pdfaction',\n 'name' => 'email-pdf',\n 'label' => 'LBL_PDF_EMAIL',\n 'action' => 'email',\n 'acl_action' => 'view',\n ),\n 4 => \n array (\n 'type' => 'divider',\n ),\n 5 => \n array (\n 'type' => 'rowaction',\n 'event' => 'button:find_duplicates_button:click',\n 'name' => 'find_duplicates_button',\n 'label' => 'LBL_DUP_MERGE',\n 'acl_action' => 'edit',\n ),\n 6 => \n array (\n 'type' => 'rowaction',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-22", "text": "6 => \n array (\n 'type' => 'rowaction',\n 'event' => 'button:duplicate_button:click',\n 'name' => 'duplicate_button',\n 'label' => 'LBL_DUPLICATE_BUTTON_LABEL',\n 'acl_module' => 'Opportunities',\n 'acl_action' => 'create',\n ),\n 7 => \n array (\n 'type' => 'rowaction',\n 'event' => 'button:historical_summary_button:click',\n 'name' => 'historical_summary_button',\n 'label' => 'LBL_HISTORICAL_SUMMARY',\n 'acl_action' => 'view',\n ),\n 8 => \n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-23", "text": "),\n 8 => \n array (\n 'type' => 'rowaction',\n 'event' => 'button:audit_button:click',\n 'name' => 'audit_button',\n 'label' => 'LNK_VIEW_CHANGE_LOG',\n 'acl_action' => 'view',\n ),\n 9 => \n array (\n 'type' => 'divider',\n ),\n 10 => \n array (\n 'type' => 'rowaction',\n 'event' => 'button:delete_button:click',\n 'name' => 'delete_button',\n 'label' => 'LBL_DELETE_BUTTON_LABEL',\n 'acl_action' => 'delete',\n ),\n ),\n ),\n 3 => \n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-24", "text": "),\n ),\n ),\n 3 => \n array (\n 'name' => 'sidebar_toggle',\n 'type' => 'sidebartoggle',\n ),\n ),\n 'panels' => \n array (\n 0 => \n array (\n 'name' => 'panel_header',\n 'header' => true,\n 'fields' => \n array (\n 0 => \n array (\n 'name' => 'picture',\n 'type' => 'avatar',\n 'size' => 'large',\n 'dismiss_label' => true,\n 'readonly' => true,\n ),\n 1 => \n array (\n 'name' => 'name',\n 'related_fields' => \n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-25", "text": "'related_fields' => \n array (\n 0 => 'total_revenue_line_items',\n 1 => 'closed_revenue_line_items',\n 2 => 'included_revenue_line_items',\n ),\n ),\n 2 => \n array (\n 'name' => 'favorite',\n 'label' => 'LBL_FAVORITE',\n 'type' => 'favorite',\n 'dismiss_label' => true,\n ),\n 3 => \n array (\n 'name' => 'follow',\n 'label' => 'LBL_FOLLOW',\n 'type' => 'follow',\n 'readonly' => true,\n 'dismiss_label' => true,\n ),\n ),\n ),\n 1 => \n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-26", "text": "),\n ),\n ),\n 1 => \n array (\n 'name' => 'panel_body',\n 'label' => 'LBL_RECORD_BODY',\n 'columns' => 2,\n 'labels' => true,\n 'labelsOnTop' => true,\n 'placeholders' => true,\n 'newTab' => false,\n 'panelDefault' => 'expanded',\n 'fields' => \n array (\n 0 => \n array (\n 'name' => 'account_name',\n 'related_fields' => \n array (\n 0 => 'account_id',\n ),\n ),\n 1 => \n array (\n 'name' => 'date_closed',\n 'related_fields' => \n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-27", "text": "'related_fields' => \n array (\n 0 => 'date_closed_timestamp',\n ),\n ),\n 2 => \n array (\n 'name' => 'amount',\n 'type' => 'currency',\n 'label' => 'LBL_LIKELY',\n 'related_fields' => \n array (\n 0 => 'amount',\n 1 => 'currency_id',\n 2 => 'base_rate',\n ),\n 'currency_field' => 'currency_id',\n 'base_rate_field' => 'base_rate',\n 'span' => 12,\n ),\n 3 => \n array (\n 'name' => 'best_case',\n 'type' => 'currency',\n 'label' => 'LBL_BEST',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-28", "text": "'label' => 'LBL_BEST',\n 'related_fields' => \n array (\n 0 => 'best_case',\n 1 => 'currency_id',\n 2 => 'base_rate',\n ),\n 'currency_field' => 'currency_id',\n 'base_rate_field' => 'base_rate',\n ),\n 4 => \n array (\n 'name' => 'worst_case',\n 'type' => 'currency',\n 'label' => 'LBL_WORST',\n 'related_fields' => \n array (\n 0 => 'worst_case',\n 1 => 'currency_id',\n 2 => 'base_rate',\n ),\n 'currency_field' => 'currency_id',\n 'base_rate_field' => 'base_rate',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-29", "text": "'base_rate_field' => 'base_rate',\n ),\n 5 => \n array (\n 'name' => 'tag',\n 'span' => 6,\n ),\n 6 => \n array (\n 'name' => 'sales_status',\n 'readonly' => true,\n 'studio' => true,\n 'label' => 'LBL_SALES_STATUS',\n 'span' => 6,\n ),\n 7 => \n array (\n 'name' => 'email',\n 'studio' => \n array (\n 'visible' => true,\n 'searchview' => true,\n 'editview' => true,\n 'editField' => true,\n ),\n 'label' => 'LBL_EMAIL_ADDRESS',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-30", "text": "),\n 'label' => 'LBL_EMAIL_ADDRESS',\n 'span' => 12,\n ),\n ),\n ),\n 2 => \n array (\n 'name' => 'panel_hidden',\n 'label' => 'LBL_RECORD_SHOWMORE',\n 'hide' => true,\n 'labelsOnTop' => true,\n 'placeholders' => true,\n 'columns' => 2,\n 'newTab' => false,\n 'panelDefault' => 'expanded',\n 'fields' => \n array (\n 0 => 'next_step',\n 1 => 'opportunity_type',\n 2 => 'lead_source',\n 3 => 'campaign_name',\n 4 => \n array (\n 'name' => 'description',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-31", "text": "4 => \n array (\n 'name' => 'description',\n 'span' => 12,\n ),\n 5 => 'assigned_user_name',\n 6 => 'team_name',\n 7 => \n array (\n 'name' => 'date_entered_by',\n 'readonly' => true,\n 'type' => 'fieldset',\n 'label' => 'LBL_DATE_ENTERED',\n 'fields' => \n array (\n 0 => \n array (\n 'name' => 'date_entered',\n ),\n 1 => \n array (\n 'type' => 'label',\n 'default_value' => 'LBL_BY',\n ),\n 2 => \n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-32", "text": "),\n 2 => \n array (\n 'name' => 'created_by_name',\n ),\n ),\n ),\n 8 => \n array (\n 'name' => 'date_modified_by',\n 'readonly' => true,\n 'type' => 'fieldset',\n 'label' => 'LBL_DATE_MODIFIED',\n 'fields' => \n array (\n 0 => \n array (\n 'name' => 'date_modified',\n ),\n 1 => \n array (\n 'type' => 'label',\n 'default_value' => 'LBL_BY',\n ),\n 2 => \n array (\n 'name' => 'modified_by_name',\n ),\n ),\n ),\n ),\n ),\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "0a667cf3ea8e-33", "text": "),\n ),\n ),\n ),\n ),\n ),\n 'templateMeta' => \n array (\n 'useTabs' => false,\n ),\n ),\n ),\n ),\n);\nOnce the files are in place, navigate to Admin > Repair > Quick Repair & Rebuild to regenerate the metadata.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_the_Email_Field_to_a_Bean/index.html"} {"id": "2eecbdfa6f92-0", "text": "Adding Buttons to the Record View\nOverview\nThis example explains how to create additional buttons on the record view and add events.\u00c2\u00a0We will extend and override the stock Accounts record view to add a custom button. The custom button will be called \"Validate Postal Code\" and ping the Zippopotamus REST service to validate the records billing state and postal code.\nSteps To Complete\nThis tutorial requires the following steps, which are explained in the sections below:\nDefining the Metadata\nAdding Custom Buttons\nDefining the Button Label\nExtending and Overriding the Controller\nDefining the Metadata", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-1", "text": "Extending and Overriding the Controller\nDefining the Metadata\nTo add a button to the record view, you will first need to create the custom metadata for the view if it doesn't exist. You can easily do this by opening and saving your modules record layout in studio. Depending on your module, the path will then be ./custom/modules//clients/base/views/record/record.php. Once your file is in place, you will need to copy the button array from ./clients/base/views/record/record.php and add it to the $viewdefs['']['base']['view']['record'] portion of your metadata array. An example of the button array is shown below:\n'buttons' => array(\n array(\n 'type' => 'button',\n 'name' => 'cancel_button',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-2", "text": "'name' => 'cancel_button',\n 'label' => 'LBL_CANCEL_BUTTON_LABEL',\n 'css_class' => 'btn-invisible btn-link',\n 'showOn' => 'edit',\n ),\n array(\n 'type' => 'rowaction',\n 'event' => 'button:save_button:click',\n 'name' => 'save_button',\n 'label' => 'LBL_SAVE_BUTTON_LABEL',\n 'css_class' => 'btn btn-primary',\n 'showOn' => 'edit',\n 'acl_action' => 'edit',\n ),\n array(\n 'type' => 'actiondropdown',\n 'name' => 'main_dropdown',\n 'primary' => true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-3", "text": "'name' => 'main_dropdown',\n 'primary' => true,\n 'showOn' => 'view',\n 'buttons' => array(\n array(\n 'type' => 'rowaction',\n 'event' => 'button:edit_button:click',\n 'name' => 'edit_button',\n 'label' => 'LBL_EDIT_BUTTON_LABEL',\n 'acl_action' => 'edit',\n ),\n array(\n 'type' => 'shareaction',\n 'name' => 'share',\n 'label' => 'LBL_RECORD_SHARE_BUTTON',\n 'acl_action' => 'view',\n ),\n array(\n 'type' => 'pdfaction',\n 'name' => 'download-pdf',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-4", "text": "'name' => 'download-pdf',\n 'label' => 'LBL_PDF_VIEW',\n 'action' => 'download',\n 'acl_action' => 'view',\n ),\n array(\n 'type' => 'pdfaction',\n 'name' => 'email-pdf',\n 'label' => 'LBL_PDF_EMAIL',\n 'action' => 'email',\n 'acl_action' => 'view',\n ),\n array(\n 'type' => 'divider',\n ),\n array(\n 'type' => 'rowaction',\n 'event' => 'button:find_duplicates_button:click',\n 'name' => 'find_duplicates_button',\n 'label' => 'LBL_DUP_MERGE',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-5", "text": "'label' => 'LBL_DUP_MERGE',\n 'acl_action' => 'edit',\n ),\n array(\n 'type' => 'rowaction',\n 'event' => 'button:duplicate_button:click',\n 'name' => 'duplicate_button',\n 'label' => 'LBL_DUPLICATE_BUTTON_LABEL',\n 'acl_module' => $module,\n ),\n array(\n 'type' => 'rowaction',\n 'event' => 'button:audit_button:click',\n 'name' => 'audit_button',\n 'label' => 'LNK_VIEW_CHANGE_LOG',\n 'acl_action' => 'view',\n ),\n array(\n 'type' => 'divider',\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-6", "text": "),\n array(\n 'type' => 'divider',\n ),\n array(\n 'type' => 'rowaction',\n 'event' => 'button:delete_button:click',\n 'name' => 'delete_button',\n 'label' => 'LBL_DELETE_BUTTON_LABEL',\n 'acl_action' => 'delete',\n ),\n ),\n ),\n array(\n 'name' => 'sidebar_toggle',\n 'type' => 'sidebartoggle',\n ),\n ),\nNote: When copying this array into your metadata, you will need to replace\u00c2\u00a0$module with the text string of your module's name.\nFor standard button types, the button definitions will contain the following properties:\nProperty\nPotential Values\nDescription\ntype\nbutton, rowaction, shareaction, actiondropdown", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-7", "text": "Potential Values\nDescription\ntype\nbutton, rowaction, shareaction, actiondropdown\nThe widget type\nname\n\u00c2\u00a0\nThe name of the button\nlabel\n\u00c2\u00a0\nThe label string key for the display text of the button\ncss_class\n\u00c2\u00a0\nThe CSS class to append to the button\nshowOn\nedit, view\nThe ACL action of the button\nFor this example, we will add\u00c2\u00a0the\u00c2\u00a0custom button to the main dropdown. For actiondropdown types, there\u00c2\u00a0is an additional buttons array for you to specify the dropdown list of buttons. The button definitions in this array will contain the following properties:\nProperty\nPotential Values\nDescription\ntype\nbutton, rowaction, shareaction, actiondropdown\nThe widget type; Most custom buttons are 'rowaction'\nevent\nbutton:button_name:click\nThe event name of the button\nname\n\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-8", "text": "button:button_name:click\nThe event name of the button\nname\n\u00c2\u00a0\nThe name of the button\nlabel\n\u00c2\u00a0\nThe label string key for the display text of the button\nacl_action\n\u00c2\u00a0edit, view\nThe ACL action of the button\nAdding Custom Buttons\nFor this example, modify the accounts' metadata to add the button definition to main_dropdown:\narray(\n 'type' => 'rowaction',\n 'event' => 'button:validate_postal_code:click',\n 'name' => 'validate_postal_code',\n 'label' => 'LBL_VALIDATE_POSTAL_CODE',\n 'acl_action' => 'view',\n),\nA full example is shown below:\n./custom/modules/Accounts/clients/base/views/record/record.php\n\n array (\n 'view' =>\n array (\n 'record' =>\n array (\n 'buttons' =>\n array (\n 0 =>\n array (\n 'type' => 'button',\n 'name' => 'cancel_button',\n 'label' => 'LBL_CANCEL_BUTTON_LABEL',\n 'css_class' => 'btn-invisible btn-link',\n 'showOn' => 'edit',\n ),\n 1 =>\n array (\n 'type' => 'rowaction',\n 'event' => 'button:save_button:click',\n 'name' => 'save_button',\n 'label' => 'LBL_SAVE_BUTTON_LABEL',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-10", "text": "'label' => 'LBL_SAVE_BUTTON_LABEL',\n 'css_class' => 'btn btn-primary',\n 'showOn' => 'edit',\n 'acl_action' => 'edit',\n ),\n 2 =>\n array (\n 'type' => 'actiondropdown',\n 'name' => 'main_dropdown',\n 'primary' => true,\n 'showOn' => 'view',\n 'buttons' =>\n array (\n 0 =>\n array (\n 'type' => 'rowaction',\n 'event' => 'button:edit_button:click',\n 'name' => 'edit_button',\n 'label' => 'LBL_EDIT_BUTTON_LABEL',\n 'acl_action' => 'edit',\n ),\n 1 =>", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-11", "text": "'acl_action' => 'edit',\n ),\n 1 =>\n array (\n 'type' => 'shareaction',\n 'name' => 'share',\n 'label' => 'LBL_RECORD_SHARE_BUTTON',\n 'acl_action' => 'view',\n ),\n 2 =>\n array (\n 'type' => 'rowaction',\n 'event' => 'button:validate_postal_code:click',\n 'name' => 'validate_postal_code',\n 'label' => 'LBL_VALIDATE_POSTAL_CODE',\n 'acl_action' => 'view',\n ),\n 3 =>\n array (\n 'type' => 'divider',\n ),\n 4 =>\n array (\n 'type' => 'rowaction',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-12", "text": "4 =>\n array (\n 'type' => 'rowaction',\n 'event' => 'button:duplicate_button:click',\n 'name' => 'duplicate_button',\n 'label' => 'LBL_DUPLICATE_BUTTON_LABEL',\n 'acl_module' => 'Accounts',\n ),\n 5 =>\n array (\n 'type' => 'rowaction',\n 'event' => 'button:audit_button:click',\n 'name' => 'audit_button',\n 'label' => 'LNK_VIEW_CHANGE_LOG',\n 'acl_action' => 'view',\n ),\n 6 =>\n array (\n 'type' => 'divider',\n ),\n 7 =>\n array (\n 'type' => 'rowaction',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-13", "text": "7 =>\n array (\n 'type' => 'rowaction',\n 'event' => 'button:delete_button:click',\n 'name' => 'delete_button',\n 'label' => 'LBL_DELETE_BUTTON_LABEL',\n 'acl_action' => 'delete',\n ),\n ),\n ),\n 3 =>\n array (\n 'name' => 'sidebar_toggle',\n 'type' => 'sidebartoggle',\n ),\n ),\n 'panels' =>\n array (\n 0 =>\n array (\n 'name' => 'panel_header',\n 'header' => true,\n 'fields' =>\n array (\n 0 =>\n array (\n 'name' => 'picture',\n 'type' => 'avatar',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-14", "text": "'name' => 'picture',\n 'type' => 'avatar',\n 'width' => 42,\n 'height' => 42,\n 'dismiss_label' => true,\n 'readonly' => true,\n ),\n 1 => 'name',\n 2 =>\n array (\n 'name' => 'favorite',\n 'label' => 'LBL_FAVORITE',\n 'type' => 'favorite',\n 'dismiss_label' => true,\n ),\n 3 =>\n array (\n 'name' => 'follow',\n 'label' => 'LBL_FOLLOW',\n 'type' => 'follow',\n 'readonly' => true,\n 'dismiss_label' => true,\n ),\n ),\n ),\n 1 =>\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-15", "text": "),\n ),\n ),\n 1 =>\n array (\n 'name' => 'panel_body',\n 'columns' => 2,\n 'labelsOnTop' => true,\n 'placeholders' => true,\n 'fields' =>\n array (\n 0 => 'website',\n 1 => 'industry',\n 2 => 'parent_name',\n 3 => 'account_type',\n 4 => 'assigned_user_name',\n 5 => 'phone_office',\n ),\n ),\n 2 =>\n array (\n 'name' => 'panel_hidden',\n 'hide' => true,\n 'columns' => 2,\n 'labelsOnTop' => true,\n 'placeholders' => true,\n 'fields' =>\n array (\n 0 =>", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-16", "text": "'fields' =>\n array (\n 0 =>\n array (\n 'name' => 'fieldset_address',\n 'type' => 'fieldset',\n 'css_class' => 'address',\n 'label' => 'LBL_BILLING_ADDRESS',\n 'fields' =>\n array (\n 0 =>\n array (\n 'name' => 'billing_address_street',\n 'css_class' => 'address_street',\n 'placeholder' => 'LBL_BILLING_ADDRESS_STREET',\n ),\n 1 =>\n array (\n 'name' => 'billing_address_city',\n 'css_class' => 'address_city',\n 'placeholder' => 'LBL_BILLING_ADDRESS_CITY',\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-17", "text": "),\n 2 =>\n array (\n 'name' => 'billing_address_state',\n 'css_class' => 'address_state',\n 'placeholder' => 'LBL_BILLING_ADDRESS_STATE',\n ),\n 3 =>\n array (\n 'name' => 'billing_address_postalcode',\n 'css_class' => 'address_zip',\n 'placeholder' => 'LBL_BILLING_ADDRESS_POSTALCODE',\n ),\n 4 =>\n array (\n 'name' => 'billing_address_country',\n 'css_class' => 'address_country',\n 'placeholder' => 'LBL_BILLING_ADDRESS_COUNTRY',\n ),\n ),\n ),\n 1 =>\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-18", "text": "),\n ),\n ),\n 1 =>\n array (\n 'name' => 'fieldset_shipping_address',\n 'type' => 'fieldset',\n 'css_class' => 'address',\n 'label' => 'LBL_SHIPPING_ADDRESS',\n 'fields' =>\n array (\n 0 =>\n array (\n 'name' => 'shipping_address_street',\n 'css_class' => 'address_street',\n 'placeholder' => 'LBL_SHIPPING_ADDRESS_STREET',\n ),\n 1 =>\n array (\n 'name' => 'shipping_address_city',\n 'css_class' => 'address_city',\n 'placeholder' => 'LBL_SHIPPING_ADDRESS_CITY',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-19", "text": "),\n 2 =>\n array (\n 'name' => 'shipping_address_state',\n 'css_class' => 'address_state',\n 'placeholder' => 'LBL_SHIPPING_ADDRESS_STATE',\n ),\n 3 =>\n array (\n 'name' => 'shipping_address_postalcode',\n 'css_class' => 'address_zip',\n 'placeholder' => 'LBL_SHIPPING_ADDRESS_POSTALCODE',\n ),\n 4 =>\n array (\n 'name' => 'shipping_address_country',\n 'css_class' => 'address_country',\n 'placeholder' => 'LBL_SHIPPING_ADDRESS_COUNTRY',\n ),\n 5 =>\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-20", "text": "),\n 5 =>\n array (\n 'name' => 'copy',\n 'label' => 'NTC_COPY_BILLING_ADDRESS',\n 'type' => 'copy',\n 'mapping' =>\n array (\n 'billing_address_street' => 'shipping_address_street',\n 'billing_address_city' => 'shipping_address_city',\n 'billing_address_state' => 'shipping_address_state',\n 'billing_address_postalcode' => 'shipping_address_postalcode',\n 'billing_address_country' => 'shipping_address_country',\n ),\n ),\n ),\n ),\n 2 =>\n array (\n 'name' => 'phone_alternate',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-21", "text": "2 =>\n array (\n 'name' => 'phone_alternate',\n 'label' => 'LBL_OTHER_PHONE',\n ),\n 3 => 'email',\n 4 => 'phone_fax',\n 5 => 'campaign_name',\n 6 =>\n array (\n 'name' => 'description',\n 'span' => 12,\n ),\n 7 => 'sic_code',\n 8 => 'ticker_symbol',\n 9 => 'annual_revenue',\n 10 => 'employees',\n 11 => 'ownership',\n 12 => 'rating',\n 13 =>\n array (\n 'name' => 'date_entered_by',\n 'readonly' => true,\n 'type' => 'fieldset',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-22", "text": "'readonly' => true,\n 'type' => 'fieldset',\n 'label' => 'LBL_DATE_ENTERED',\n 'fields' =>\n array (\n 0 =>\n array (\n 'name' => 'date_entered',\n ),\n 1 =>\n array (\n 'type' => 'label',\n 'default_value' => 'LBL_BY',\n ),\n 2 =>\n array (\n 'name' => 'created_by_name',\n ),\n ),\n ),\n 14 => 'team_name',\n 15 =>\n array (\n 'name' => 'date_modified_by',\n 'readonly' => true,\n 'type' => 'fieldset',\n 'label' => 'LBL_DATE_MODIFIED',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-23", "text": "'label' => 'LBL_DATE_MODIFIED',\n 'fields' =>\n array (\n 0 =>\n array (\n 'name' => 'date_modified',\n ),\n 1 =>\n array (\n 'type' => 'label',\n 'default_value' => 'LBL_BY',\n ),\n 2 =>\n array (\n 'name' => 'modified_by_name',\n ),\n ),\n 'span' => 12,\n ),\n ),\n ),\n ),\n 'templateMeta' =>\n array (\n 'useTabs' => false,\n 'tabDefs' =>\n array (\n 'LBL_RECORD_BODY' =>\n array (\n 'newTab' => false,\n 'panelDefault' => 'expanded',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-24", "text": "'newTab' => false,\n 'panelDefault' => 'expanded',\n ),\n 'LBL_RECORD_SHOWMORE' =>\n array (\n 'newTab' => false,\n 'panelDefault' => 'expanded',\n ),\n ),\n ),\n ),\n ),\n ),\n);\nDefining the Button Label\nNext, define the label for the button:\n./custom/Extension/modules/Accounts/Ext/Language/en_us.validatePostalCode.php\n Repair > Quick Repair and Rebuild.\nAdding Buttons without Overriding View Controllers\nSometimes your customization might need to add the same buttons to multiple views, but you don't want to overwrite other possible customizations already on the view. The following will walk through creating a custom button like the above example, add adding the buttons to views without overriding the module view controllers.\nCreate a Custom Button\nButtons typically come in two forms, a standard button and a 'rowaction' in an Action Menu. We can create two buttons to handle both scenarios.\n./clients/base/fields/zipcode-check-button/zipcode-check-button.js\n/**\n * Zipcode Check button will check if zipcode matches city field\n *", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-28", "text": "/**\n * Zipcode Check button will check if zipcode matches city field\n *\n * @class View.Fields.Base.ZipcodeCheckButtonField\n * @alias SUGAR.App.view.fields.BaseZipcodeCheckButtonField\n * @extends View.Fields.Base.ButtonField\n */\n({\n extendsFrom: 'ButtonField',\n defaultZipCodeField: 'billing_address_postalcode',\n defaultCityField: 'billing_address_city',\n /**\n * @inheritdoc\n */\n initialize: function(options) {\n options.def.events = _.extend({}, options.def.events, {\n 'click .zip-check-btn': 'validatePostalCode'\n });\n this._super('initialize', [options]);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-29", "text": "});\n this._super('initialize', [options]);\n this.def.zip_code_field = _.isEmpty(this.def.zip_code_field)?this.defaultZipCodeField:this.def.zip_code_field;\n this.def.city_field = _.isEmpty(this.def.city_field)?this.defaultCityField:this.def.city_field;\n },\n validatePostalCode: function(evt) {\n var currentCity = this.model.get(this.def.city_field);\n var currentZip = this.model.get(this.def.zip_code_field);\n //jQuery AJAX call to Zippopotamus REST API\n $.ajax({\n url: 'http://api.zippopotam.us/us/' + currentZip,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-30", "text": "success: function(data) {\n this.zipJSON = data;\n var city = this.zipJSON.places[0]['place name'];\n if (city === currentCity)\n {\n app.alert.show('address-ok', {\n level: 'success',\n messages: 'City and Zipcode match.',\n autoClose: true\n });\n }\n else\n {\n app.alert.show('address-ok', {\n level: 'error',\n messages: 'City and Zipcode do not match.',\n autoClose: false\n });\n }\n }\n });\n }\n})\n./clients/base/fields/zipcode-check-rowaction/zipcode-check-rowaction.js\n/**\n * Zipcode Check button will check if zipcode matches city field\n *", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-31", "text": "/**\n * Zipcode Check button will check if zipcode matches city field\n *\n * @class View.Fields.Base.ZipcodeCheckRowactionField\n * @alias SUGAR.App.view.fields.BaseZipcodeCheckRowactionField\n * @extends View.Fields.Base.RowactionField\n */\n({\n extendsFrom: 'RowactionField',\n defaultZipCodeField: 'billing_address_postalcode',\n defaultCityField: 'billing_address_city',\n /**\n * @inheritdoc\n */\n initialize: function(options) {\n this._super('initialize', [options]);\n this.def.zip_code_field = _.isEmpty(this.def.zip_code_field)?this.defaultZipCodeField:this.def.zip_code_field;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-32", "text": "this.def.city_field = _.isEmpty(this.def.city_field)?this.defaultCityField:this.def.city_field;\n },\n /**\n * Rowaction fields have a default event which calls rowActionSelect\n */\n rowActionSelect: function(evt) {\n this.validatePostalCode(evt);\n },\n validatePostalCode: function(evt) {\n var currentCity = this.model.get(this.def.city_field);\n var currentZip = this.model.get(this.def.zip_code_field);\n //jQuery AJAX call to Zippopotamus REST API\n $.ajax({\n url: 'http://api.zippopotam.us/us/' + currentZip,\n success: function(data) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-33", "text": "success: function(data) {\n this.zipJSON = data;\n var city = this.zipJSON.places[0]['place name'];\n if (city === currentCity)\n {\n app.alert.show('address-check-msg', {\n level: 'success',\n messages: 'City and Zipcode match.',\n autoClose: true\n });\n }\n else\n {\n app.alert.show('address-check-msg', {\n level: 'error',\n messages: 'City and Zipcode do not match.',\n autoClose: false\n });\n }\n }\n });\n }\n})", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-34", "text": "});\n }\n }\n });\n }\n})\nAlong with the JavaScript controllers for the buttons, you can copy over the detail.hbs and edit.hbs from the base controllers that each button is\u00c2\u00a0extended from into each folder. The folder structure will look as follows:\n./clients/base/fields/zipcode-check-button/\nzipcode-check-button.js\ndetail.hbs\nedit.hbs\n./clients/base/fields/zipcode-check-rowaction/\nzipcode-check-rowaction.js\ndetail.hbs\nedit.hbs\n\u00c2\u00a0In the Handlebar files, you should add a custom CSS\u00c2\u00a0class called zip-check-btn to each of the layouts, as a way to find the elements on the page. This is also used for the ZipcodeCheckButton to isolate the event trigger. Example below:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-35", "text": "./cilents/base/fields/zipcode-check-button/edit.hbs\n{{#if def.icon}} {{/if}}{{label}}\nOnce we have the button controllers and the templates setup, we can add the buttons to the View metadata for particular modules.\nAppending Buttons to Metadata\nAfter creating your buttons, you will need to append the buttons to the views metadata. For this, you can use the Extension Framework. The following examples will add a button to the action menu on the Accounts record view and a button to the Contacts record view. Please note that this example assumes that you have created the\u00c2\u00a0rowaction button\u00c2\u00a0above.\n./custom/Extension/modules/Accounts/Ext/clients/base/views/record/addZipCodeCheckRowaction.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-37", "text": "$buttons = isset($viewdefs['Accounts']['base']['view']['record']['buttons'])?$viewdefs['Accounts']['base']['view']['record']['buttons']:array();\nif (!empty($buttons)) {\n foreach ($buttons as $key => $button) {\n if ($button['type'] == 'actiondropdown' && $button['name'] == 'main_dropdown') {\n $viewdefs['Accounts']['base']['view']['record']['buttons'][$key]['buttons'][] = array(\n 'type' => 'divider',\n );", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-38", "text": "'type' => 'divider',\n );\n $viewdefs['Accounts']['base']['view']['record']['buttons'][$key]['buttons'][] = array(\n 'type' => 'zipcode-check-rowaction',\n 'event' => 'button:zipcode_check:click',\n 'name' => 'zipcode_check_button',\n 'label' => 'LBL_ZIPCODE_CHECK_BUTTON_LABEL',\n 'acl_action' => 'edit',\n 'showOn' => 'view',\n );\n break;\n }\n }\n}\n./custom/Extension/modules/Contacts/Ext/clients/base/views/record/addZipCodeCheckButton.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-39", "text": "$buttons = isset($viewdefs['Contacts']['base']['view']['record']['buttons'])?$viewdefs['Contacts']['base']['view']['record']['buttons']:array();\n$zipCodeButton = array (\n 'type' => 'zipcode-check-button',\n 'event' => 'button:zipcode_check:click',\n 'name' => 'zipcode_check_button',\n 'label' => 'LBL_ZIPCODE_CHECK_BUTTON_LABEL',\n 'acl_action' => 'edit',\n 'zip_code_field' => 'primary_address_postalcode',\n 'city_field' => 'primary_address_city'\n);\nif (!empty($buttons)){", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-40", "text": ");\nif (!empty($buttons)){\n foreach($buttons as $key => $button){\n if ($button['type'] == 'actiondropdown' && $button['name'] == 'main_dropdown'){\n //Get everything from this point down\n $slicedBtns = array_slice($viewdefs['Contacts']['base']['view']['record']['buttons'],$key);\n //Remove everything from this point down\n array_splice($viewdefs['Contacts']['base']['view']['record']['buttons'],$key);\n //Add Zip Code Button\n $viewdefs['Contacts']['base']['view']['record']['buttons'][] = $zipCodeButton;\n //Add back the buttons we removed", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-41", "text": "//Add back the buttons we removed\n foreach($slicedBtns as $oldButton){\n $viewdefs['Contacts']['base']['view']['record']['buttons'][] = $oldButton;\n }\n break;\n }\n }\n} else {\n $viewdefs['Contacts']['base']['view']['record']['buttons'] = array(\n $zipCodeButton\n );\n}\nunset($zipCodeButton);\nThe last thing that is needed now, is to define the button's label.\nDefining the Button Labels\nSince the button was made to work globally on multiple modules, we can define the label at the application level.\n./custom/Extension/application/Ext/Language/en_us.ZipCodeCheckButton.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "2eecbdfa6f92-42", "text": "$app_strings['LBL_ZIPCODE_CHECK_BUTTON_LABEL'] = 'Verify Zip Code';\n\u00c2\u00a0Once all files are in place, you can run a Quick Repair and Rebuild and the buttons will display and check the Zipcode fields for both the Contacts and Accounts record views without having to extend either modules RecordView controllers.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_Buttons_to_the_Record_View/index.html"} {"id": "9dcdcdd83911-0", "text": "Dynamically Hiding Subpanels Based on Record Values\nOverview\nThis article will demonstrate how to dynamically hide subpanels that are dependent on record values by overriding the subpanels layout for a module. This example is for an account record where we will hide the Contacts subpanel when the account type is not 'Customer'.\nExample\nTo accomplish this, we will create a JavaScript controller that extends SubpanelsLayout. This controller will then monitor the model and control the display of the subpanels.\n./custom/modules/Accounts/clients/base/layouts/subpanels/subpanels.js\nRemoved script tag to: https://gist.github.com/3722771.js?file=view.detail.php\n({\n extendsFrom: 'SubpanelsLayout',\n _hiddenSubpanels: [],\n initialize: function(options) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Dynamically_Hiding_Subpanels_Based_on_Record_Values/index.html"} {"id": "9dcdcdd83911-1", "text": "_hiddenSubpanels: [],\n initialize: function(options) {\n this._super('initialize', [options]);\n this.registerModelEvents();\n },\n /**\n * Add the model change events for fields that determine when a subpanel should be hidden\n */\n registerModelEvents: function(){\n this.model.on('change:account_type',function(model) {\n var link = 'contacts';\n if (model.get('account_type') == \"Customer\"){\n this.unhideSubpanel(link);\n }else{\n this.hideSubpanel(link);\n }\n },this);\n },\n /**\n * Override showSubpanel to re-hide subpanels when outside changes occur, like reordering subpanel\n * @inheritdoc\n */", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Dynamically_Hiding_Subpanels_Based_on_Record_Values/index.html"} {"id": "9dcdcdd83911-2", "text": "* @inheritdoc\n */\n showSubpanel: function(linkName) {\n this._super('showSubpanel',[linkName]);\n _.each(this._hiddenSubpanels, function(link) {\n this.hideSubpanel(link);\n },this);\n },\n /**\n * Helper for getting the Subpanel View for a specific link\n */\n getSubpanelByLink: function(link){\n return this._components.find(function(component){\n return component.context.get('link') === link;\n });\n },\n /**\n * Add to the _hiddenSubpanels array, and hide the subpanel\n */\n hideSubpanel: function(link){\n this._hiddenSubpanels.push(link);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Dynamically_Hiding_Subpanels_Based_on_Record_Values/index.html"} {"id": "9dcdcdd83911-3", "text": "this._hiddenSubpanels.push(link);\n var component = this.getSubpanelByLink(link);\n if (!_.isUndefined(component)){\n component.hide();\n }\n this._hiddenSubpanels = _.unique(this._hiddenSubpanels);\n },\n /**\n * Unhide the Subpanel and remove from _hiddenSubpanels array\n */\n unhideSubpanel: function(link){\n var index = this._hiddenSubpanels.findIndex(function(l){\n return l == link;\n });\n if (_.isUndefined(index)){\n delete this._hiddenSubpanels[index];\n }\n var component = this.getSubpanelByLink(link);\n if (!_.isUndefined(component)){\n component.show();\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Dynamically_Hiding_Subpanels_Based_on_Record_Values/index.html"} {"id": "9dcdcdd83911-4", "text": "component.show();\n }\n }\n})\nOnce the file is in place, run a Quick Repair and Rebuild. The changes will then be reflected in the Accounts record view.\nRelated\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Dynamically_Hiding_Subpanels_Based_on_Record_Values/index.html"} {"id": "9b788d965a7d-0", "text": "Changing the Default Module When Logging a New Call or Meeting\nOverview\nWhen creating\u00c2\u00a0a\u00c2\u00a0call\u00c2\u00a0or meeting directly from the\u00c2\u00a0Calls or\u00c2\u00a0Meetings module\u00c2\u00a0in Sugar, the default module for the Related To field is Accounts. If\u00c2\u00a0your sales team frequently schedules calls and meetings related to\u00c2\u00a0records from a module other than Accounts, it may make sense to adjust\u00c2\u00a0the behavior so that the Related To field defaults to a more commonly used module.\u00c2\u00a0This article covers\u00c2\u00a0how to change the default related module for calls and meetings in Sugar.\nNote: This article pertains to Sugar versions 6.x and 7.x.\nPrerequisites", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_the_Default_Module_When_Logging_a_New_Call_or_Meeting/index.html"} {"id": "9b788d965a7d-1", "text": "Prerequisites\nThis change requires code-level customizations, which requires\u00c2\u00a0direct access to the server or familiarity with creating and installing module loadable packages. If you need assistance making these changes and already have a relationship with a Sugar partner, you can work with them to make this customization.\u00c2\u00a0If not, please refer to the Partner Page to find a reselling partner to help with your development needs.\nNote: Sugar Sell Essentials customers do not have the ability to upload custom file packages to Sugar using Module Loader.\nSteps to Complete", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_the_Default_Module_When_Logging_a_New_Call_or_Meeting/index.html"} {"id": "9b788d965a7d-2", "text": "Steps to Complete\nFor this example, we will change the\u00c2\u00a0default \"Relates To\" module to Contacts for records created in the Calls module and the Meetings module.\u00c2\u00a0Please note that,\u00c2\u00a0after completing these steps, the Related To field will still default\u00c2\u00a0to Accounts when creating a call or meeting from a contact that has an account relationship or to the\u00c2\u00a0current module from any other related module's\u00c2\u00a0record view.\nCalls\nCreate the following directory path if it does not already exist from the root of your Sugar instance directory:./custom/Extension/modules/Calls/Ext/Vardefs/\nCreate a file in the directory called sugarfield_parent_type.php with the following contents: Repair and perform a Quick Repair and Rebuild.\nOnce the quick repair completes, navigate to the Calls module and \"Contact\" should now be selected by default for the Related To field when logging a new call.\nMeetings\nCreate the following directory path if it does not already exist from the root of your Sugar instance directory: ./custom/Extension/modules/Meetings/Ext/Vardefs/.\nCreate a file in the directory called sugarfield_parent_type.php with the following contents: Repair and perform a Quick Repair and Rebuild.\nOnce the quick repair completes, navigate to the Meetings module and \"Contact\" should now be selected by default for the Related To field when scheduling a new meeting.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Changing_the_Default_Module_When_Logging_a_New_Call_or_Meeting/index.html"} {"id": "c6b990befb4e-0", "text": "Adding an Existing Note to an Email as Attachment\nOverview\nThere may be times when you want to reuse a file attached to one Note record as an attachment for an Email, similar to the ability in the Compose Email view to add an attachment using 'Sugar Document'.\nKey Concepts\nThere are two key things to understand when implementing this functionality:\nYou can not relate an existing Note record to an Email record. This will throw an Exception in the API as intended. A note that is used as an attachment can only exist once and can not act as an attachment across multiple emails.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-1", "text": "You can create a new Note record that uses an existing Note's attached file. Doing so essentially requires setting the\u00c2\u00a0upload_id\u00c2\u00a0field of the new Note record to the id of the existing Note you want to reuse the file from, and setting the\u00c2\u00a0file_source\u00c2\u00a0field of the new Note to 'Notes'. In addition to needing to set the upload_id, you must also set the filename and name field.\nThe following examples demonstrate how to do this in three different contexts: server-side (SugarBean/PHP), client-side (sidecar/Javascript), and purely through the API. But all three contexts follow the same essential steps:\nFetch the original Note record;\nCreate a new Note record, setting the necessary fields from the original Note record;\nLink the new Note record to the Email record via the appropriate 'attachments' link.\nPHP", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-2", "text": "PHP\nThis example would be done server-side using the SugarBean object, similar to how you might interact with the records in a custom Logic Hook or Scheduler job.\n$original_note_id = '4e226282-8158-11e8-a1b3-439fe19c087a';\n$email_id = 'e3e058f4-7f11-11e8-ba11-fcdd97d61bbe';\n// 1. Fetch Original Note:\n$original_note = BeanFactory::retrieveBean('Notes', $original_note_id);\n// 2. Create a new note based on original note, setting upload_id, name, and filename:\n$new_note = BeanFactory::newBean('Notes');\n$new_note->upload_id = $original_note->getUploadId();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-3", "text": "$new_note->upload_id = $original_note->getUploadId();\n$new_note->file_source = 'Notes';\n$new_note->filename = $original_note->filename;\n$new_note->name = $original_note->filename;\n// 3. Relate the new note to Email record using 'attachments' link:\n$email = BeanFactory::retrieveBean('Emails', $email_id);\n$email->load_relationship('attachments');\n$email->attachments->add($email, $new_note);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-4", "text": "$email->attachments->add($email, $new_note);\nNote that in most contexts, such as a Logic Hook or a custom endpoint, you will not need to call save() on either the $new_note or $email for $new_note to be related as an attachment to $email and for $new_note to save. The $new_note record will save as part of being linked to $email.\nJavascript\nThe following example is totally standalone within Sidecar, demonstrating how to fetch the existing Note using app.data.createBean and\u00c2\u00a0bean.fetch(), create the new Note using app.data.createBean and setting the relevant fields, and then adding the new Note to the email records attachments_collection.\nvar original_note_id = '4e226282-8158-11e8-a1b3-439fe19c087a';", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-5", "text": "var email_id = 'e3e058f4-7f11-11e8-ba11-fcdd97d61bbe';\n// 1. Fetch Original Note:\nvar original_note = app.data.createBean('Notes');\noriginal_note.set('id', original_note_id);\noriginal_note.fetch();\n// 2. Create a new note based on original note, setting upload_id, name, and filename:\nvar new_note = app.data.createBean('Notes', {\n\t_link: 'attachments',\n\tupload_id: original_note.get('id'),\n\tfile_source: 'Notes',\n\tfilename: original_note.get('filename'),\n\tname: original_note.get('filename'),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-6", "text": "name: original_note.get('filename'),\n\tfile_mime_type: original_note.get('file_mime_type'),\n\tfile_size: original_note.get('file_size'),\n\tfile_ext: original_note.get('file_ext'),\n});\n// 3. Relate the new note to Email record using 'attachments_collection' link:\nvar email = app.data.createBean('Emails');\nemail.set('id', email_id);\nemail.fetch();\nemail.get('attachments_collection').add(new_note,{merge:true});\nemail.save();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-7", "text": "email.save();\nNote: In the above example, the fields file_mime_type, file_size, and file_ext are also set. This is assuming a context where the customization is adding the attachments to the Compose Email view. Setting these fields makes the new attachments look correct to the user before saving the Email, but these fields are otherwise set automatically on save. If extending the actual compose view for emails, you also wouldn't fetch the email directly. This is added in this example purely for demonstration purposes.\nREST API\nThe following section will outline how to related the attachment using the REST API using the /link/attachments/\u00c2\u00a0endpoint for the Email record.\nFetch Original Note\nTo fetch the original note, send a GET request to rest/{REST VERSION}/Notes/{$original_note_id}. An example of the response is shown below :\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-8", "text": "{\n \"id\": \"4e226282-8158-11e8-a1b3-439fe19c087a\",\n \"name\": \"Note with Attachment\",\n \"date_entered\": \"2018-07-01T12:00:00-00:00\",\n \"description\": \"Send to special clients.\",\n \"file_mime_type\": \"application/pdf\",\n \"filename\": \"special_sales_doc.pdf\",\n \"_module\": \"Notes\"\n}\nCreate and Relate a Note\nCreate a JSON object based on the response (which we will treat as a JSON object named $original_note) like:\n{\n\t\"upload_id\": \"$original_note.id\",\n\t\"file_source\" : \"Notes\"\n\t\"name\" : \"$original_note.filename\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "c6b990befb4e-9", "text": "\"name\" : \"$original_note.filename\",\n\t\"filename\" : \"$original_note.filename\",\n}\nRelate the Note to the Email record using the 'attachments' link. Next, send a POST request to rest/{REST VERSION}/Emails/{$email_id}/link/attachments/\u00c2\u00a0with the JSON shown above as the request body.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Adding_an_Existing_Note_to_an_Email_as_Attachment/index.html"} {"id": "29899e5d082d-0", "text": "Customizing Prefill Fields When Copying Records\nOverview\nThe copy action on the record view allows for users to duplicate records. This article will cover the various ways to customize the prefill fields on the copy view.\nModifying the Copy Prefill View Using the Vardefs\nThe following section will outline how to modify the fields that are prefilled when copying a Bug record from the record view using the beans Vardefs. This is helpful when the list of copied fields are static and have no dependencies.\u00c2\u00a0You can apply this to any module in the system.\n./custom/Extension/modules/Bugs/Ext/Vardefs/copyPrefill.php\n Repair > Quick Repair & Rebuild.\nNote: You can name the file 'copyPrefill.php' anything you like. We advise against making these changes in the\u00c2\u00a0./custom/Extension/modules//Ext/Vardefs/sugarfield_.php\u00c2\u00a0files as these changes may be removed during studio edits.\nModifying the Copy Prefill View Using JavaScript Controllers\nThe following section will outline how to modify the fields that are prefilled when copying a Bug record from the record view using the JavaScript Controller. This is helpful when you need to dependently determine the fields to copy by a field on the bean. You can apply this to any module in the system.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_Prefill_Fields_When_Copying_Records/index.html"} {"id": "29899e5d082d-2", "text": "./custom/modules/Bugs/clients/base/views/record/record.js\n({\n extendsFrom: 'RecordView',\n setupDuplicateFields: function (prefill) {\n this._super('setupDuplicateFields', prefill);\n var fields = [\n 'name',\n 'assigned_user_id',\n 'priority',\n 'type',\n 'product_category',\n 'description'\n ];\n //determines whether the field list above is a set of allowlisted (allowed) or denylisted (denied) fields\n var denylist = false;\n if (denylist) {\n _.each(fields, function (field) {\n if (field && prefill.has(field)) {\n //set denylist field to the default value if exists", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_Prefill_Fields_When_Copying_Records/index.html"} {"id": "29899e5d082d-3", "text": "//set denylist field to the default value if exists\n if (!_.isUndefined(prefill.fields[field]) && !_.isUndefined(prefill.fields[field].default)) {\n prefill.set(field, prefill.fields[field].default);\n } else {\n prefill.unset(field);\n }\n }\n });\n } else {\n _.each(prefill.fields, function (value, field) {\n if (!_.contains(fields, field)) {\n if (!_.isUndefined(prefill.fields[field].default)) {\n prefill.set(field, prefill.fields[field].default);\n } else {\n prefill.unset(field);\n }\n }\n });\n }\n }\n})", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_Prefill_Fields_When_Copying_Records/index.html"} {"id": "29899e5d082d-4", "text": "}\n }\n });\n }\n }\n})\nOnce in place, navigate to Admin > Repair > Quick Repair & Rebuild. The denylist variable will determine whether the list of fields are allowlisted or denylisted from the copy feature.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Cookbook/Customizing_Prefill_Fields_When_Copying_Records/index.html"} {"id": "a16ab1234acb-0", "text": "Security\nSecurity documents for securing Sugars\u00c2\u00a0infastructure.\nTopicsEndpoints and Entry PointsThis document describes how to disable out of the box REST API endpoints and legacy MVC entry points.Web Server ConfigurationThis document serves as a guideline to harden the web server configuration with regard to running SugarCRM. Note that this is a guideline and certain settings will depend on your specific environment and setup. This guideline focuses on Apache web server as this is SugarCRM's primary supported web server. However, the recommendations in this document apply to all web servers in general.XSS PreventionThis document describes how to prevent cross-site scripting (XSS) attacks in Sugar customizations. XSS attacks occur when malicious entities are able to inject client-side scripts into web pages.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/index.html"} {"id": "3a2c337e2ee7-0", "text": "XSS Prevention\nOverview\nThis document describes how to prevent cross-site scripting (XSS) attacks in Sugar customizations. XSS attacks occur when malicious entities are able to\u00c2\u00a0inject client-side scripts into web pages.\nBest Practices\nWhen creating custom code for Sugar, be sure to respect the following\u00c2\u00a0best practices. These rules serve to protect the elements of your customizations that are most susceptible to XSS vulnerabilities:\nCreate safe variables when injecting HTML via Handlebars templates or JavaScript methods such as: $(selector).html(variable), $(selector).before(variable), or $(selector).after(variable).\nAvoid using triple-bracket (e.g.\u00c2\u00a0{{{variable}}}) syntax to allow unescaped HTML content in Handlebars templates.\nNever use input from an unknown source as it may contain unsafe data.\nProtect dynamic content, which may also contain unsafe data.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/XSS_Prevention/index.html"} {"id": "3a2c337e2ee7-1", "text": "Protect dynamic content, which may also contain unsafe data.\nPlease refer to the following sections for more information and examples that demonstrate these best practices.\nCreating Safe Variables\nYou must always encode a variable before you inject or display it on a webpage. The piece that is not encoded should be isolated and marked as a safe string very carefully. The the following sections outline protecting\u00c2\u00a0your system when using JavaScript\u00c2\u00a0and Handlebars templates.\nJavaScript\nTo ensure displayed\u00c2\u00a0JavaScript variables are safe, respect these two rules:\nIf you are displaying plain\u00c2\u00a0text without any HTML, use .text() instead of .html()\u00c2\u00a0with your selectors.\nIf your text contains HTML formatting, you can use .html()\u00c2\u00a0as long as it does not contain any dynamic data coming from a variable.\nVulnerable Setup", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/XSS_Prevention/index.html"} {"id": "3a2c337e2ee7-2", "text": "Vulnerable Setup\nThis is an example of bad code because it utilizes the\u00c2\u00a0.html()\u00c2\u00a0method to display a dynamic-value variable, leaving the JavaScript vulnerable to injection:\nvar inputData = $('#myInput').val(); // \"\"\n$(selector).html('This is the value: ' + inputData); // \"This is the value: \"\nProtected Setup\nThis is\u00c2\u00a0an example of good code, which uses the safe .text() method to protect the JavaScript from potential injection:\nvar status = 'safe';\n$(selector).text('This is very ' + status); // \"This is very safe\"\nThis is also an acceptable approach, which uses the\u00c2\u00a0Handlebars.Utils.escapeExpression to safely escape the content:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/XSS_Prevention/index.html"} {"id": "3a2c337e2ee7-3", "text": "var inputData = $('#myinput').val(); // \"\"\nvar safeData = Handlebars.Utils.escapeExpression(inputData); // \"<script>alert(0)</script>\"\n$(selector).html('This is the value: ' + safeData); // \"This is the value: <script>alert(0)</script>\"\nHandlebars Templates", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/XSS_Prevention/index.html"} {"id": "3a2c337e2ee7-4", "text": "Handlebars Templates\nHandlebars, by default, handles the encoding of data passed to the template in double brackets (e.g. {{variable}}), however, it also allows you to bypass this encoding by using triple brackets (e.g. {{{variable}}}). Text passed via triple brackets will not be encoded. As a rule, do not use triple brackets. If you don't want Handlebars to encode a piece of a string, use double brackets\u00c2\u00a0and execute Handlebars.SafeString() in your JavaScript controller.\u00c2\u00a0\nAs an\u00c2\u00a0example, we will apply best practices to a complex use case with dynamic\u00c2\u00a0values that\u00c2\u00a0need to be encoded. For this example, we\u00c2\u00a0want to display\u00c2\u00a0a message similar to:\nCongrats! You just created the record ABCD", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/XSS_Prevention/index.html"} {"id": "3a2c337e2ee7-5", "text": "The values ABCD and /#Accounts/abcd are dynamic values and, therefore, must be encoded. But the message must also be displayed as HTML, so the overall element cannot be entirely encoded. To address this use case, we must properly script the JavaScript controller and the Handlebars template.\nThe following JavaScript encodes the message's dynamic values, marks the displayed hyperlink as a safe string, and then outputs the safe message:\nvar record = {\n id: 'abcd',\n name: 'ABCD'\n};\n// escape `ABCD`\nvar safeName = Handlebars.Utils.escapeExpression(record.name);\n// escape `abcd`\nvar safeId = Handlebars.Utils.escapeExpression(record.id);\n// Mark the link as a SafeString now that the unsafe pieces are encoded and the content has safe HTML.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/XSS_Prevention/index.html"} {"id": "3a2c337e2ee7-6", "text": "var link = new Handlebars.SafeString('' + safeName . '');\n// This can be displayed with double brackets in the template because html parts will not be encoded.\nthis.safeMessage = new Handlebars.SafeString('Congrats! You just created the record ' + link + '.');\nTo display the safe message in the application, use the following syntax in your Handlebars template:\n
{{safeMessage}}
\nPlease refer to the HTML Escaping documentation on the Handlebars website for more information.\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/XSS_Prevention/index.html"} {"id": "3392ec99ea44-0", "text": "Endpoints and Entry Points\nOverview\nThis document describes how to disable out of the box REST API endpoints and legacy MVC entry points.\nAdvisory ID: sugarcrm-sr-2015-001Revision: 1.1Last updated: 2015-10-01\nDescription\nSugarCRM has both legacy entry points and REST API endpoints which are shipped out of the box. Not every customer uses all capabilities of the SugarCRM product. To harden the configuration both entry points can be disabled based on the customer's requirements.\nLegacy Entry Points\nAll stock entry points are defined in include/MVC/Controller/entry_point_registry.php. Using the SugarCRM Extension framework the configuration directives can be overridden in an upgrade safe manner. As an example consider the entrypoint \"removeme\". To disable this entrypoint use the following procedure.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Endpoints_and_Entry_Points/index.html"} {"id": "3392ec99ea44-1", "text": "Create a new php file ./custom/Extension/application/Ext/EntryPointRegistry/disable_removeme.php and add the following content:\n\n AllowOverride None\n # BEGIN SUGARCRM RESTRICTIONS\n RedirectMatch 403 .*\\.log$\n ...\n # END SUGARCRM RESTRICTIONS\n", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-3", "text": "...\n # END SUGARCRM RESTRICTIONS\n\nWhen choosing for this security measure, make sure to verify if any changes have happened in the .htaccess after an upgrade. Those changes need to be applied manually back in the Apache configuration to ensure SugarCRM functions properly. Disabling the .htaccess file support also has a positive impact on the performance as Apache will no longer need to scan for the presence of .htaccess files.\nAlthough Apache does not allow to download .htaccess files, to tighten the security around .htaccess, even more, the following directives can be added:\n\n Order deny,allow\n Deny from all\n\nPrevent version exposure", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-4", "text": "Deny from all\n\nPrevent version exposure\nBy default Apache web server exposes its version and OS details in most *nix distributions in both the HTTP response headers as well as on the default error pages. To prevent this behavior use the following configuration directives:\nServerSignature Off\nServerTokens Prod\n\u00c2\u00a0The exposure of the PHP version can be disabled in your php.ini file. When exposed an X-Powered-By response header will be added containing the PHP version information.\nexpose_php = Off\nAnother option\u00c2\u00a0is to unset the header explicitly in the Apache configuration:\n\n Header unset X-Powered-By \n", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-5", "text": "Header unset X-Powered-By \n\nNote that unsetting the Server header is not possible using this way. The web server will always respond with a Server header containing the string \"Apache\". If it is desired to remove this header as well, additional modules need to be used for this (i.e. mod_security can do this).\nDirectory listing and index page\nMake sure to configure a default index page which should only be index.php for SugarCRM. This is mostly configured but worth checking. Additional SugarCRM does not require the directory browsing support and this is recommended to be disabled. This can be accomplished by removing Options Indexes and/or completely disable the mod_autoindex module.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-6", "text": "Optionally additional Allow/Deny directives can be used to apply access lists to certain directories. It is not recommended to add additional authentication through Apache as SugarCRM already fully manages user authentication. The Allow/Deny directives can still be used to apply any IP access list if required by the customer.\nThe following example secures the root directory (default configuration), disable directory browsing and an additional IP access list is applied.\nDocumentRoot \"/var/www/html\"\n\n AllowOverride none\n Order allow,deny\n Deny from all\n\n\n DirectoryIndex index.php\n Options -Indexes\n Order deny,allow\n Allow from 10.0.0.0/8\n Deny from all\n\nAdditional Options directives", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-7", "text": "Deny from all\n\nAdditional Options directives\nSugarCRM does not rely on both CGI and SSI and it is recommended to disable this functionality explicitly. Optionally the FollowSymLinks options can also be disabled depending on your directory setup.\n\n Options -ExecCGI -Includes -FollowSymLinks\n\nWeb server permissions\nEnsure your web server is configured to run as a dedicated non-privileged user. Certain *nix distributions use out of the box the user/group nobody. It is recommended to use a dedicated user/group instead.\nUser wwwrun\nGroup www\nEnsure the configured user/group have the proper file and directory permissions for SugarCRM. See the installation/upgrade guide for more detailed instructions regarding the required permissions.\nDisable unnecessary loadable modules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-8", "text": "Disable unnecessary loadable modules\nApache is pluggable by means of loadable modules. To minimize the chances of becoming a victim of an attack it is recommended to disable all loadable modules which are not needed. SugarCRM recommends the following base Apache modules:\nmod_authz_host\nmod_dir\nmod_expires\nmod_rewrite\nmod_headers\nmod_mime\nmod_alias\nFrom an Apache perspective to disable a loadable module, it is sufficient to comment out the LoadModule directives. However certain *nix distribution has additional configuration scripts to manage the loaded Apache modules. Please refer to your *nix distribution for this.\nBased on your setup additional Apache modules can be used. When using MPM prefork you will also need mod_php5 and when terminating secure HTTP connection on the web server directly also mod_ssl (see below).\nHTTP methods", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-9", "text": "HTTP methods\nHTTP uses different methods (verbs) in requests. As per RFC-7231 for HTTP/1.1 different request methods are defined which serve the primary source of the request semantics. The following methods are used by SugarCRM:\nFor new REST API:\nGET\nPOST\nPUT\nDELETE\nHEAD (*)\nOPTIONS (*)\nBootstrap, BWC access, old SOAP/REST API:\nGET\nPOST\n(*) Currently not in use, but may be implemented in the future.\nThe new REST API is accessed using the URL \"/rest/vxx/\u00e2\u0080\u00a6\" where xxx represents the API version number. To harden the usage of the additional HTTP methods the following directives can be used for the new REST API endpoint while only allowing GET and POST on the legacy access.\n\n ", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-10", "text": "\n \n Order deny,allow\n Deny from all\n \n\n\n \n Order deny,allow\n Deny from all\n \n\n\n \n Order deny,allow\n Deny from all\n \n\nInstead of using the Limit directive, an alternative is using mod_allowmethods which is available since Apache 2.4. However this module is flagged as experimental.\nSecure HTTP traffic", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-11", "text": "Secure HTTP traffic\nSugarCRM requires the usage of HTTPS transport without any exception. Depending on your setup you can terminate the secure connection on a separate endpoint (load balancer, dedicated HTTPS termination point) or directly on the web server(s). You will also need a valid private key and X.509 certificate. In most cases, the customer needs to acquire an X.509 certificate through a public certification authority of their choice. For internal deployments, this may not be necessary when a local PKI environment is available.\nWhen terminating the secure connection directly on the Apache web server, mod_ssl is required. A dedicated VirtualHost needs to be configured on port 443 (standard HTTPS port). The following is a basic SSL/TLS configuration as a reference. More details are covered in the next paragraphs.\n\n SSLEngine on", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-12", "text": "SSLEngine on\n SSLCertificateFile /etc/pki/tls/certs/example.com.crt\n SSLCertificateKeyFile /etc/pki/tls/certs/example.com.key\n SSLCertificateChainFile /etc/pki/tls/certs/example_bundle.crt\n ServerName crm.example.com\n\nMake sure to have your server name properly configured as it should match the X.509 certificate's CommonName (or one of the SNA's, subject alternative names). More information regarding the certificate requests including the certificate chain can be obtained from your certification authority.\nEnsure to redirect all non-secure HTTP (port 80) traffic to the secure virtual host.\n\n Redirect \"/\" \"https://crm.example.com/\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-13", "text": "Redirect \"/\" \"https://crm.example.com/\"\n\nCipher suite hardening\nOne of the crucial points of HTTPS is to force only secure cryptographic algorithms. Based on new future weaknesses which may be discovered in the future the recommended cipher suite settings can change. As per publish date of this document the usage of SSLv2 and SSLv3 is recommended to be disabled. The current safe secure transport protocols are TLSv1.0, TLSv1.1, and TLSv1.2 with properly configured cipher suites.\nFor proper deployment of Diffie-Hellman (DH) key exchange algorithms the following guidelines apply:\nNo longer use out-dated export cipher suites\nEnsure the usage of Elliptic Curve Diffie-Hellman (ECDHE) based algorithms\nUse of non-common Diffie-Hellman groups\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-14", "text": "Use of non-common Diffie-Hellman groups\u00c2\u00a0\nMore detail around the DH configuration and a detailed list of recommended cipher suites including web server configuration examples can be found at https://weakdh.org/sysadmin.html. Additionally, an online SSL/TLS checker can be used to generate a full report of your current configuration in case your web server is publically reachable. A recommended tool is https://www.ssllabs.com/ssltest/analyze.html. The output of this SSL/TLS test suite will guide you into further (optional) details which can be tweaked regarding your configuration (i.e. OCSP stapling, certificate pinning, \u00e2\u0080\u00a6).", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-15", "text": "Please note that using the above instruction \"perfect forward secrecy\" will be enabled. This basically means that captured TLS traffic can only be decoded using the session key between a specific client and server. Nonperfect forwarding secrecy connections can always be decrypted by having access to only the server's private key. If the customer's setup has intermediate IDS/WAF systems to inspect traffic looking inside the secure traffic, having perfect forwarding secrecy configured may not be desirable.\nPublic trusted root CA's", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-16", "text": "Public trusted root CA's\nIt is recommended that the *nix system where Apache is running always has the latest public root CA (certification authority) files available to authenticate server certificates during the SSL/TLS handshake. Most *nix distributions take care of this through their online update process. If this is not the case, the system administrator is responsible to ensure the latest trusted root CA's are up-to-date. Out of the box, the SugarCRM application contacts the SugarCRM heartbeat and licensing server using a secure connection.\nHSTS header", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-17", "text": "HSTS header\nAs all traffic requires HTTPS for SugarCRM, it is recommended to configure a global HSTS (HTTP Strict Transport Security) header. This is an additional opt-in security enhancement supported by most modern browsers. The HSTS will instruct the browser to always use HTTPS in the future for the given FQDN. More details regarding HSTS can be found here: https://www.owasp.org/index.php/HTTP_Strict_Transport_Security.\nBefore enabling the HSTS header, ensure that no other non-HTTPS website is running for the given FQDN and any subdomains.\nHeader always set Strict-Transport-Security \\\n\"max-age=10886400; includeSubdomains; preload\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-18", "text": "\"max-age=10886400; includeSubdomains; preload\"\nOptionally when your SugarCRM application is publically reachable, you can submit your FQDN on the preload which is maintained by Chrome and included by Firefox, Safari, Internet Explorer 11 and Edge browser. Understand the consequences and requirements to end up on the preload list. Once registered, this cannot be undone easily. Submissions for the HSTS preload list can be found at https://hstspreload.appspot.com.\nCSP header", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-19", "text": "CSP header\nA Content Security Policy header can be added to offer additional protection against XSS (cross-site scripting). Most modern browsers support CSP and will apply the limitation as directed by the CSP header. The CSP header defines the allowed sources through different directives which are allowed regarding JScript, CSS, images, fonts, form actions, plugins, \u00e2\u0080\u00a6 More information can be found at https://www.owasp.org/index.php/Content_Security_Policy.\nThe management of CSP headers can become complex and may depend on different types of customizations which can be deployed on the SugarCRM platform.\u00c2\u00a0\nFor now, CSP headers can be configured directly on the web server. A basic configuration looks like this:\u00c2\u00a0\nHeader always set Content-Security-Policy \\\n\"default-src 'self'; script-src 'self'\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-20", "text": "\"default-src 'self'; script-src 'self'\"\nNote:\u00c2\u00a0This is a syntax example of a CSP header and not a recommended value.\nOlder browsers use the header X-Content-Security-Policy or X-WebKit-CSP instead of the standardized one. The CSP header can also safely be added first in \"report only\" mode before deploying it in production using Content-Security-Policy-Report-Only.\nAdditional security headers\nTo prevent clickjacking an X-Frame-Options header can be added. This header can also be used to iframe the SugarCRM application inside another web site if required. This can be better controlled with the above mentioned CSP header. Both can coexist together but it is encouraged to used the CSP approach.\nHeader always set X-Frame-Options \"SAMEORIGIN\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-21", "text": "Header always set X-Frame-Options \"SAMEORIGIN\"\nHeader always set X-Frame-Options \"ALLOW-FROM https://someothersite.com\"\nTo protect against \"drive-by download\" attacks, it is encouraged to disable Content-Type sniffing. This is particularly targeted at Chrome and IE.\nHeader always set X-Content-Type-Options \"nosniff\"\nEnsure XSS browser protection is enabled by adding the following header. By default, this feature should be enabled in every browser. In case it has been disabled, sending this header will re-enable it.\nHeader always set X-XSS-Protection \"1; mode=block\"\nSecure cookie settings\nEnsure the following settings are applied in php.ini to ensure legacy cookies are properly protected against XSS attacks and are only transmitted over a secure HTTPS connection.\nsession.cookie_httponly = 1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-22", "text": "session.cookie_httponly = 1\nsession.cookie_secure = 1\nAdditionally, the session.cookie_path can be tweaked if other applications are running on the same web server.\nSecurity modules\nAdditional Apache loadable security modules exist which can optionally be installed to better protect your system from malicious requests and/or DDOS attacks. The following modules are available for Apache 2.4:\nmod_security - This module adds WAF (web application firewall) capabilities to your Apache setup. In combination with the OWASP CRS (core rule set) gives you a solid starting point for a WAF implementation.\nmod_evasive - This module helps to prevent (D)DOS attacks\nCovering both modules in details is out of the scope of this Security Response. Refer to the module documentation for additional details. In the future, SugarCRM may publish specific settings and fine-tuning for both modules.\u00c2\u00a0\nAdditional resources", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "614463bb95e3-23", "text": "Additional resources\nGeneric Apache security tipshttp://httpd.apache.org/docs/2.4/misc/security_tips.html\nOnline SSL/TLS testerhttps://www.ssllabs.com/ssltest/analyze.html\nUseful HTTP headershttps://www.owasp.org/index.php/List_of_useful_HTTP_headers\nPublication History\n2015-10-01\nAdding HTTP method restrictions\n2015-09-08\nInitial publication\nA stand-alone copy of this document that omits the distribution URL is an uncontrolled copy and may lack important information or contain factual errors. SugarCRM reserves the right to change or update this document at any time.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Security/Web_Server_Configuration/index.html"} {"id": "a6c6a5913b7a-0", "text": "Data Framework\nThe Sugar application comprises core elements such as modules, fields, vardefs, and other foundational components. The Data Framework pages document how these core elements are modeled and implemented in Sugar.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/index.html"} {"id": "a6c6a5913b7a-1", "text": "TopicsModulesHow modules are defined and used within the systemModelsAn overview of the SugarBean model.VardefsVardefs (Variable Definitions) provide the Sugar application with information about SugarBeans. Vardefs specify information on the individual fields, relationships between beans, and the indexes for a given bean.FieldsHow fields interact with the various aspects of Sugar.RelationshipsRelationships are the basis for linking information within the system. This page explains the various aspects of relationships. For information on custom relationships, please refer to the Custom Relationships documentation.SubpanelsFor Sidecar, Sugar's subpanel layouts have been modified to work as simplified metadata. This page is an overview of the metadata framework for subpanels.DatabaseAll Sugar products support the MySQL and Microsoft SQL Server databases. Sugar Enterprise and Sugar Ultimate also support the DB2 and Oracle databases. In general, Sugar uses only common database functionality, and the application logic is embedded in the", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/index.html"} {"id": "a6c6a5913b7a-2", "text": "databases. In general, Sugar uses only common database functionality, and the application logic is embedded in the PHP code. Sugar does not use or recommend database triggers or stored procedures. This design simplifies coding and testing across different database vendors. The only implementation difference across the various supported databases is column types.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/index.html"} {"id": "a6c6a5913b7a-3", "text": "Last modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/index.html"} {"id": "ae62739d3063-0", "text": "Models\nOverview\nEach module in Sugar is extending the\u00c2\u00a0Sugar Model. This model is determined by the SugarBean, which contains methods to create, read/retrieve, update, and delete records in the database and any subclass of the SugarBean. Many of the common Sugar modules also use the SugarObjects class, which is explained in the next section.\nSugarObject Templates\nSugar objects extend the concept of subclassing a step further and allow you to subclass the vardefs. This includes inheriting of fields, relationships, indexes, and language files. However, unlike subclassing, you are not limited to a single inheritance. For example, if there were a Sugar object for fields used in every module (e.g. id, deleted, or date_modified), you could have the module inherit from both the Basic Sugar object and the Person Sugar object.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/index.html"} {"id": "ae62739d3063-1", "text": "To further illustrate this, let's say the Basic object type has a field 'name' with length 10 and the Company object has a field 'name' with length 20. If you inherit from Basic first and then Company, your field will inherit the Company object's length of 20. However, the module-level setting always overrides any values provided by Sugar objects, so, if the field 'name' in your module has been set to length 60, then the field's length will ultimately be 60.\nThere are six types of SugarObject templates:\nBasic : Contains the basic fields required by all Sugar modules\nPerson : Based on the Contacts, Prospects, and Leads modules\nIssue : Based on the Bugs and Cases modules\nCompany : Based on the Accounts module\nFile : Based on the Documents module\nSale : Based on the Opportunities module\nSugarObject Interfaces", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/index.html"} {"id": "ae62739d3063-2", "text": "Sale : Based on the Opportunities module\nSugarObject Interfaces\nIn addition to the object templates above, \"assignable\" object templates can be\u00c2\u00a0used for modules with records that should contain an Assigned To field. Although every module does not use this, most modules allow assignment of records to users. SugarObject interfaces allow us to add the assignable attribute to these modules.\nSugarObject interfaces and SugarObject templates are very similar to one another, but the main distinction is that templates have a base class you can subclass while interfaces do not. If you look into the file structure, templates include many additional files, including a full metadata directory. This is used primarily for Module Builder.\nFile Structure\n./include/SugarObjects/interfaces\n./include/SugarObjects/templates\nImplementation\nThere are two things you need to do to take advantage of Sugar\u00c2\u00a0objects:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/index.html"} {"id": "ae62739d3063-3", "text": "There are two things you need to do to take advantage of Sugar\u00c2\u00a0objects:\nSubclass the SugarObject class you wish to extend for your class:class MyClass extends Person\n{\n function MyClass()\n {\n parent::Person();\n }\n}\nAdd the following line to the end of the\u00c2\u00a0vardefs.php file:VardefManager::createVardef('Contacts', 'Contact', array('default', 'assignable', 'team_security', 'person'));\nThis snippet tells the VardefManager to create a cache of the Contacts vardefs with the addition of all the default fields, assignable fields, team security fields, and all fields from the person class.\nPerformance Considerations", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/index.html"} {"id": "ae62739d3063-4", "text": "Performance Considerations\nVardefManager caches the generated vardefs into a single file that is loaded at runtime. If that file is not found, Sugar\u00c2\u00a0loads the vardefs.php file, located in your module's directory. The same is true for language files. This caching also includes data for custom fields and any vardef or language extensions that are dropped into the extension framework.\nCache Files\n./cache/modules//vardefs.php\n./cache/modules//languages/en_us.lang.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/index.html"} {"id": "ae62739d3063-5", "text": "./cache/modules//languages/en_us.lang.php\nTopicsSugarBean$bean = BeanFactory::retrieveBean($module, $id);BeanFactoryThe BeanFactory class, located in ./data/BeanFactory.php, is used for loading an instance of a SugarBean. This class should be used any time you are creating or retrieving bean objects. It will automatically handle any classes required for the bean.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/index.html"} {"id": "bf82603a3677-0", "text": "SugarBean\n//Retrieve bean\n$bean = BeanFactory::retrieveBean($module, $id);\n//Set deleted to true\n$bean->mark_deleted($bean->id);\n//Save\n$bean->save();\nOverview\nThe SugarBean class supports all the model operations to and from the database. Any module that interacts with the database utilizes the SugarBean class, which contains methods to create, read/retrieve, update, and delete records in the database (CRUD), as well as fetch related records.\nCRUD Handling\nThe SugarBean handles the most basic functions of the Sugar database, allowing you to create, retrieve, update, and delete data.\u00c2\u00a0\nCreating and Retrieving Records", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-1", "text": "Creating and Retrieving Records\nThe BeanFactory class is used for bean loading. The class should be used whenever\u00c2\u00a0you are creating or retrieving bean objects. It will automatically handle any classes required for the bean. More information on this can be found in the BeanFactory section.\nObtaining the Id of a Recently Saved Bean\nFor new records, a GUID is generated and assigned to the record id field. Saving new or existing records returns a single value to the calling routine, which is the id attribute of the saved record. The id has the following format:\naaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\nYou can retrieve a newly created record's id with the following:\n//Create bean\n$bean = BeanFactory::newBean($module);\n//Populate bean fields\n$bean->name = 'Example Record';\n//Save\n$bean->save();\n//Retrieve the bean id", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-2", "text": "//Save\n$bean->save();\n//Retrieve the bean id\n$record_id = $bean->id;\nSaving a Bean with a Specific ID\nSaving a record with a specific id requires the id and new_with_id attribute of the bean to be set. When doing so, it is important that you use a globally unique identifier. Failing to do so may result in unexpected behavior in the system. An example setting an id is shown below:\n//Create bean\n$bean = BeanFactory::newBean($module);\n//set the new flag\n$bean->new_with_id = true;\n//Set the record id with a static id\n$id = '38c90c70-7788-13a2-668d-513e2b8df5e1';\n$bean->id = $id;\n//or have the system generate an id for you", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-3", "text": "$bean->id = $id;\n//or have the system generate an id for you\n//$id = Sugarcrm\\Sugarcrm\\Util\\Uuid::uuid1()\n//$bean->id = $id;\n//Populate bean fields\n$bean->name = 'Example Record';\n//Save\n$bean->save();\nSetting new_with_id to true prevents the save method from creating a new id value and uses the assigned id attribute. If the id attribute is empty and the new_with_id attribute is set to true, the save will fail. If you would like for the system to generate an id for you, you can use Sugarcrm\\Sugarcrm\\Util\\Uuid::uuid1().\nDistinguishing New from Existing Records", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-4", "text": "Distinguishing New from Existing Records\nTo identify whether or not a record is new or existing, you can check the fetched_rows property. If the $bean has a fetched_row, it was loaded from the database. An example is shown below:\nif (!isset($bean->fetched_row['id'])) {\n //new record\n} else {\n //existing record\n}\nIf you are working with a logic hook such as before_save or after_save, you should check the arguments.isUpdate property to determine this as shown below:\n\nRetrieving a Bean by Unique Field\nSometimes developers have a need to fetch a record based on a unique field other than the id. In previous versions you were able to use the\u00c2\u00a0retrieve_by_string_fields()\u00c2\u00a0method to accomplish\u00c2\u00a0this, however, that has now been deprecated. To search and\u00c2\u00a0fetch records,\u00c2\u00a0you should\u00c2\u00a0use the SugarQuery\u00c2\u00a0builder. An example of this is shown below:\nrequire_once('include/SugarQuery/SugarQuery.php');\n$sugarQuery = new SugarQuery();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-6", "text": "$sugarQuery = new SugarQuery();\n//fetch the bean of the module to query\n$bean = BeanFactory::newBean('');\n//create first query\n$sql = new SugarQuery();\n$sql->select('id');\n$sql->from($bean);\n$sql->Where()->equals('', '');\n$result = $sql->execute();\n$count = count($result);\nif ($count == 0) {\n //no results were found\n} elseif ($count == 1) {\n //one result was found\n $bean = BeanFactory::getBean('', $result[0]['id']);\n} else {\n //multiple results were found\n}\nUpdating a Bean\nYou can update\u00c2\u00a0a bean by fetching a record and then updating the property:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-7", "text": "You can update\u00c2\u00a0a bean by fetching a record and then updating the property:\n//Retrieve bean\n$bean = BeanFactory::retrieveBean($module, $id);\n//Fields to update\n$bean->name = 'Updated Name';\n//Save\n$bean->save();\nNote: Disabling row-level security when accessing a bean should be set to true\u00c2\u00a0only when it is absolutely necessary to bypass security, for example, when updating a Lead record from a custom Entry Point.\u00c2\u00a0An example of accessing the bean while bypassing row security is:\n$bean = BeanFactory::retrieveBean($module, $record_id, array('disable_row_level_security' => true));\nUpdating a Bean Without Changing the Date Modified", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-8", "text": "Updating a Bean Without Changing the Date Modified\nThe SugarBean class contains an attribute called update_date_modified, which is set to true when the class is instantiated and means that the date_modified attribute is updated to the current database date timestamp. Setting\u00c2\u00a0update_date_modified to false would result in the date_modified attribute not being set with the current database date timestamp.\n//Retrieve bean\n$bean = BeanFactory::retrieveBean($module, $id);\n//Set modified flag\n$bean->update_date_modified = false;\n//Fields to update\n$bean->name = 'Updated Name';\n//Save\n$bean->save();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-9", "text": "$bean->name = 'Updated Name';\n//Save\n$bean->save();\nNote: Disabling row-level security when accessing a bean should be set to true\u00c2\u00a0only when it is absolutely necessary to bypass security, for example, when updating a Lead record from a custom Entry Point.\u00c2\u00a0An example of accessing the bean while bypassing row security is:\n$bean = BeanFactory::retrieveBean($module, $record_id, array('disable_row_level_security' => true));\nDeleting a Bean\nDeleting a bean can be done by fetching it then calling the\u00c2\u00a0mark_deleted()\u00c2\u00a0method which makes sure any relationships with related records are removed\u00c2\u00a0as well:\n//Retrieve bean\n$bean = BeanFactory::retrieveBean($module, $id);\n//Set deleted to true\n$bean->mark_deleted($id);\n//Save", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-10", "text": "//Set deleted to true\n$bean->mark_deleted($id);\n//Save\n$bean->save();\nNote: Disabling row-level security when accessing a bean should be set to true\u00c2\u00a0only when it is absolutely necessary to bypass security, for example, when updating a Lead record from a custom Entry Point.\u00c2\u00a0An example of accessing the bean while bypassing row security is:\n$bean = BeanFactory::retrieveBean($module, $record_id, array('disable_row_level_security' => true));\nFetching Relationships\nThis section\u00c2\u00a0explains how the\u00c2\u00a0SugarBean class can be used to fetch related information from the database.\nFetching Related Records\nTo fetch related records, load the relationship using the link:\n//If relationship is loaded\nif ($bean->load_relationship($link)) {\n //Fetch related beans", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-11", "text": "if ($bean->load_relationship($link)) {\n //Fetch related beans\n $relatedBeans = $bean->$link->getBeans();\n}\nAn example of this is to load the contacts related to an account:\n//Load Account\n$bean = BeanFactory::getBean('Accounts', $id);\n//If relationship is loaded\nif ($bean->load_relationship('contacts')) {\n //Fetch related beans\n $relatedBeans = $bean->contacts->getBeans();\n}\nFetching Related Record IDs\nTo fetch only related record IDs, load the relationship using the link:\n//If relationship is loaded\nif ($bean->load_relationship($link)) {\n //Fetch related record IDs\n $relatedBeans = $bean->$link->get();\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-12", "text": "$relatedBeans = $bean->$link->get();\n}\nAn example of this is to load the record IDs of contacts related to an account:\n//Load Account\n$bean = BeanFactory::getBean('Accounts', $id);\n//If relationship is loaded\nif ($bean->load_relationship('contacts')) {\n //Fetch related beans\n $relatedBeans = $bean->contacts->get();\n}\nFetching a Parent Record\nFetching a parent record is similar to fetching child records in that you will still need to load the relationship using the link:\n//If relationship is loaded\nif ($bean->load_relationship($link)) {\n //Fetch related beans\n $relatedBeans = $bean->$link->getBeans();\n $parentBean = false;\n if (!empty($relatedBeans)) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-13", "text": "$parentBean = false;\n if (!empty($relatedBeans)) {\n //order the results\n reset($relatedBeans);\n //first record in the list is the parent\n $parentBean = current($relatedBeans);\n }\n}\nAn example of this is to load a contact and fetch its parent account:\n//Load Contact\n$bean = BeanFactory::getBean('Contacts', $id);\n//If relationship is loaded\nif ($bean->load_relationship('accounts')) {\n //Fetch related beans\n $relatedBeans = $bean->accounts->getBeans();\n $parentBean = false;\n if (!empty($relatedBeans)) {\n //order the results\n reset($relatedBeans);\n //first record in the list is the parent", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "bf82603a3677-14", "text": "reset($relatedBeans);\n //first record in the list is the parent\n $parentBean = current($relatedBeans);\n }\n}\nTopicsCustomizing Core SugarBeansThis article covers how to extend core SugarBean objects to implement custom code. This can be used to alter the stock assignment notification message or to add logic to change the default modules behavior.Implementing Custom SugarBean TemplatesThis article covers how to implement custom SugarBean templates, which can then be extended by custom modules. It also covers vardef templates, which can more portable and used by multiple modules. By default, Sugar comes with a few templates such as Company, Person, Issue, and File templates.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/index.html"} {"id": "c91a5b84b54a-0", "text": "Implementing Custom SugarBean Templates\nOverview\nThis article covers how to implement custom SugarBean templates, which can then be extended by custom modules. It also covers vardef templates, which can more portable and used by multiple modules. By default, Sugar comes with a few templates such as Company, Person, Issue, and File templates.\nCreating a Custom SugarBean Template", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-1", "text": "Creating a Custom SugarBean Template\nThe following example will create a custom Bean template that can be used by custom modules to shrink down the overall size of the Bean model, by only implementing the two fields required by all modules, the id field and the deleted field. In order to do this, we will have to override some core SugarBean methods, as the base SugarBean is statically configured to do things like Save/Delete the model with the date_entered, date_modified, modified_user_id and created_user_id fields. In order to accommodate custom Beans that wish to use those fields, this template will also have properties for configuring those types of fields so that they are populated using the default SugarBean logic.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-2", "text": "To create a template for use by custom modules, you create a class that extends from SugarBean in\u00c2\u00a0./custom/include/SugarObjects/templates//.php. For this example, we will create the \"bare\" template with the following file:\n./custom/include/SugarObjects/templates/bare/BareBean.php\n_modified_date_field !== FALSE){\n $field = $this->_modified_date_field;\n if (isset($this->field_defs[$field]) && $this->field_defs[$field]['type'] == 'datetime'){\n return $field;\n }\n }\n return FALSE;\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-4", "text": "return $field;\n }\n }\n return FALSE;\n }\n /**\n * Override the stock setModifiedDate method\n * - Check that field is in use by this Module\n * - If in use, set the configured field to current time\n * @inheritdoc\n **/\n public function setModifiedDate($date = '')\n {\n global $timedate;\n $field = $this->getModifiedDateField();\n if ($field !== FALSE){\n // This code was duplicated from the stock SugarBean::setModifiedDate\n if ($this->update_date_modified || empty($this->$field)) {\n // This only needs to be calculated if it is going to be used\n if (empty($date)) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-5", "text": "if (empty($date)) {\n $date = $timedate->nowDb();\n }\n $this->$field = $date;\n }\n }\n }\n /**\n * Get the field name where modified user ID is stored, if in use by Module\n * @return string|false\n **/\n public function getModifiedUserField()\n {\n if ($this->_modified_user_field !== FALSE){\n $field = $this->_modified_user_field;\n if (isset($this->field_defs[$field]) && $this->field_defs[$field]['type'] == 'assigned_user_name'){\n return $field;\n }\n }\n return FALSE;\n }\n /**\n * Override the stock setModifiedUser Method", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-6", "text": "}\n /**\n * Override the stock setModifiedUser Method\n * - Check that field is in use by this Module\n * - If in use, set the configured field to user_id\n * @inheritdoc\n * @param User|null $user [description]\n */\n public function setModifiedUser(User $user = null)\n {\n global $current_user;\n $field = $this->getModifiedUserField();\n if ($field !== FALSE){\n // If the update date modified by flag is set then carry out this directive\n if ($this->update_modified_by) {\n // Default the modified user id to the default\n $this->$field = 1;\n // If a user was not presented, default to the current user\n if (empty($user)) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-7", "text": "if (empty($user)) {\n $user = $current_user;\n }\n // If the user is set, use it\n if (!empty($user)) {\n $this->$field = $user->id;\n }\n }\n }\n }\n /**\n * Get the field name where created date is stored, if in use by Module\n * @return string|false\n */\n public function getCreatedDateField()\n {\n if ($this->_created_date_field !== FALSE){\n $field = $this->_created_date_field;\n if (isset($this->field_defs[$field]) && $this->field_defs[$field]['type'] == 'datetime'){\n return $field;\n }\n }\n return FALSE;\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-8", "text": "return $field;\n }\n }\n return FALSE;\n }\n /**\n * Get the field name where created user ID is stored, if in use by Module\n * @return string|false\n */\n public function getCreatedUserField()\n {\n if ($this->_created_user_field !== FALSE){\n $field = $this->_created_user_field;\n if (isset($this->field_defs[$field]) && $this->field_defs[$field]['type'] == 'assigned_user_name'){\n return $field;\n }\n }\n return FALSE;\n }\n /**\n * Override the stock setCreateData method\n * - Code was duplicated from stock, to accommodate not having created date or created user fields", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-9", "text": "* @inheritdoc\n */\n public function setCreateData($isUpdate, User $user = null)\n {\n if (!$isUpdate) {\n global $current_user;\n $field = $this->getCreatedDateField();\n if ($field !== FALSE){\n //Duplicated from SugarBean::setCreateData with modifications for dynamic field name\n if (empty($this->$field)) {\n $this->$field = $this->getDateModified();\n }\n if (empty($this->$field)){\n global $timedate;\n $this->$field = $timedate->nowDb();\n }\n }\n $field = $this->getCreatedUserField();\n if ($field !== FALSE){", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-10", "text": "if ($field !== FALSE){\n //Duplicated from SugarBean::setCreateData with modifications for dynamic field name\n if ($this->set_created_by == true) {\n // created by should always be this user\n // unless it was set outside of the bean\n if ($user) {\n $this->$field = $user->id;\n } else {\n $this->$field = isset($current_user) ? $current_user->id : \"\";\n }\n }\n }\n if ($this->new_with_id == false) {\n $this->id = Sugarcrm\\Sugarcrm\\Util\\Uuid::uuid1();\n }\n }\n }\n /**\n * Get the Date Modified fields value\n * @return mixed|false\n */", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-11", "text": "* Get the Date Modified fields value\n * @return mixed|false\n */\n public function getDateModified()\n {\n if ($this->_modified_date_field !== FALSE){\n $field = $this->_modified_date_field;\n return $this->$field;\n }\n return FALSE;\n }\n /**\n * Get the Date Created Fields value\n * @return mixed|false\n */\n public function getDateCreated()\n {\n if ($this->_created_date_field !== FALSE){\n $field = $this->_created_date_field;\n return $this->$field;\n }\n return FALSE;\n }\n /**\n * @inheritdoc\n */\n public function mark_deleted($id)\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-12", "text": "*/\n public function mark_deleted($id)\n {\n $date_modified = $GLOBALS['timedate']->nowDb();\n if (isset($_SESSION['show_deleted'])) {\n $this->mark_undeleted($id);\n } else {\n // Ensure that Activity Messages do not occur in the context of a Delete action (e.g. unlink)\n // and do so for all nested calls within the Top Level Delete Context\n $opflag = static::enterOperation('delete');\n $aflag = Activity::isEnabled();\n Activity::disable();\n // call the custom business logic\n $custom_logic_arguments['id'] = $id;\n $this->call_custom_logic(\"before_delete\", $custom_logic_arguments);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-13", "text": "$this->deleted = 1;\n if (isset($this->field_defs['team_id'])) {\n if (empty($this->teams)) {\n $this->load_relationship('teams');\n }\n if (!empty($this->teams)) {\n $this->teams->removeTeamSetModule();\n }\n }\n $this->mark_relationships_deleted($id);\n $updateFields = array('deleted' => 1);\n $field = $this->getModifiedDateField();\n if ($field !== FALSE){\n $this->setModifiedDate();\n $updateFields[$field] = $this->$field;\n }\n $field = $this->getModifiedUserField();\n if ($field !== FALSE){", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-14", "text": "if ($field !== FALSE){\n $this->setModifiedUser();\n $updateFields[$field] = $this->$field;\n }\n $this->db->updateParams(\n $this->table_name,\n $this->field_defs,\n $updateFields,\n array('id' => $id)\n );\n if ($this->isFavoritesEnabled()) {\n SugarFavorites::markRecordDeletedInFavorites($id, $date_modified);\n }\n // Take the item off the recently viewed lists\n $tracker = BeanFactory::newBean('Trackers');\n $tracker->makeInvisibleForAll($id);\n SugarRelationship::resaveRelatedBeans();\n // call the custom business logic", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-15", "text": "SugarRelationship::resaveRelatedBeans();\n // call the custom business logic\n $this->call_custom_logic(\"after_delete\", $custom_logic_arguments);\n if(static::leaveOperation('delete', $opflag) && $aflag) {\n Activity::enable();\n }\n }\n }\n /**\n * @inheritdoc\n */\n public function mark_undeleted($id)\n {\n // call the custom business logic\n $custom_logic_arguments['id'] = $id;\n $this->call_custom_logic(\"before_restore\", $custom_logic_arguments);\n $this->deleted = 0;\n $modified_date_field = $this->getModifiedDateField();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-16", "text": "$modified_date_field = $this->getModifiedDateField();\n if ($modified_date_field !== FALSE){\n $this->setModifiedDate();\n }\n $query = \"UPDATE {$this->table_name} SET deleted = ?\".(!$modified_date_field?\"\":\",$modified_date_field = ?\").\" WHERE id = ?\";\n $conn = $this->db->getConnection();\n $params = array($this->deleted);\n if ($modified_date_field){\n $params[] = $this->$modified_date_field;\n }\n $params[] = $id;\n $conn->executeQuery($query, $params);\n // call the custom business logic", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-17", "text": "// call the custom business logic\n $this->call_custom_logic(\"after_restore\", $custom_logic_arguments);\n }\n}\nWith the Bean template in place, we can define the default vardefs for the template by creating the following file:\n./custom/include/SugarObjects/templates/bare/vardefs.php\n false,\n 'favorites' => false,\n 'activity_enabled' => false,\n 'fields' => array(\n 'id' => array(\n 'name' => 'id',\n 'vname' => 'LBL_ID',\n 'type' => 'id',\n 'required' => true,\n 'reportable' => true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-18", "text": "'required' => true,\n 'reportable' => true,\n 'duplicate_on_record_copy' => 'no',\n 'comment' => 'Unique identifier',\n 'mandatory_fetch' => true,\n ),\n 'deleted' => array(\n 'name' => 'deleted',\n 'vname' => 'LBL_DELETED',\n 'type' => 'bool',\n 'default' => '0',\n 'reportable' => false,\n 'duplicate_on_record_copy' => 'no',\n 'comment' => 'Record deletion indicator'\n )\n ),\n 'indices' => array(\n 'id' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-19", "text": "),\n 'indices' => array(\n 'id' => array(\n 'name' => 'idx_' . preg_replace('/[^a-z0-9_\\-]/i', '', strtolower($module)) . '_pk',\n 'type' => 'primary',\n 'fields' => array('id')\n ),\n 'deleted' => array(\n 'name' => 'idx_' . strtolower($table_name) . '_id_del',\n 'type' => 'index',\n 'fields' => array('id', 'deleted')\n )\n ),\n 'duplicate_check' => array(\n 'enabled' => false\n )\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-20", "text": "'enabled' => false\n )\n);\nNote: This vardef template also shrinks the SugarBean template down even further, by defaulting auditing, favorites, and activity stream to false.\nUsing a Custom Bean Template", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-21", "text": "With the custom SugarBean template in place, we can now implement the template on a custom module. Typically if you deployed a module from Module Builder, there would be two classes generated by Sugar, \"custom_Module_sugar\" and \"custom_Module\". The \"_sugar\" generated class extends from the Bean template that was selected in Module Builder, and the primary Bean class is what is utilized in the system and where your development would take place. For the above example template that is created, the assumption is that you are writing the Bean class, rather than using the generated classes by Module Builder, or at the very least removing the intermediary \"_sugar\" class generated by Module Builder and extending from the desired template. If you deployed a module via Module Builder, and are going to switch to a custom template, please note that some of the stock templates contain internal logic for the setup of fields for that template and that would need to be duplicated if you intend to continue using", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-22", "text": "setup of fields for that template and that would need to be duplicated if you intend to continue using those fields. The stock templates, located in\u00c2\u00a0./include/SugarObjects/templates/, are available for your reference to copy over any of the required logic to your custom Bean class. With all that being said, let us take a look at a custom Bean class that extends from our custom template.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-23", "text": "This example will use the \"custom_Module\" module which is a module that will be used for Tagging records. Since the module is just storing tags, a slimmed down Bean works well as we only need a \"name\" field to store those tags. The following class would implement the custom Bean template created above.\n./modules/custom_Module/custom_Module.php\n $table_name,\n 'fields' => array(\n 'name' => array(\n 'name' => 'name',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-25", "text": "'name' => array(\n 'name' => 'name',\n 'vname' => 'LBL_NAME',\n 'type' => 'username',\n 'link' => true,\n 'dbType' => 'varchar',\n 'len' => 255,\n 'unified_search' => true,\n 'full_text_search' => array(),\n 'required' => true,\n 'importable' => 'required',\n 'duplicate_merge' => 'enabled',\n //'duplicate_merge_dom_value' => '3',\n 'merge_filter' => 'selected',\n 'duplicate_on_record_copy' => 'always',\n ),\n ),\n 'relationships' => array (\n ),\n 'optimistic_locking' => false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-26", "text": "),\n 'optimistic_locking' => false,\n 'unified_search' => false,\n);\nVardefManager::createVardef(\n $module,\n $module,\n //Specify the bare template to be used to create the vardefs\n array('bare')\n);\nWith these files implemented, the \"custom_Module\" module would implement the \"bare\" template we created.\nCreating Custom Vardef Templates", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-27", "text": "Creating Custom Vardef Templates\nFor some customizations, you might not need a SugarBean template as you may not be implementing logic that needs to be shared across multiple module's Bean classes. However, you may have field definitions that are common across multiple modules that would be beneficial for implementing as Vardef Templates. To create a vardef template, a file as follows, ./custom/include/SugarObjects/implements//vardefs.php.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-28", "text": "Continuing on with our example custom_Module module from above, we might want to have a creation date on this custom tags module since our 'bare' SugarBean template does not come with one by default. We could easily just add one in the modules vardef file, but for our example purposes, we know that we will use our 'bare' SugarBean template on other customizations, and on some of those we might also want to include a creation date. To implement the vardef template for the creation date field, we create the following:\n./custom/include/SugarObjects/implements/date_entered/vardefs.php\n array(\n 'date_entered' => array(\n 'name' => 'date_entered',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-29", "text": "'name' => 'date_entered',\n 'vname' => 'LBL_DATE_ENTERED',\n 'type' => 'datetime',\n 'group' => 'created_by_name',\n 'comment' => 'Date record created',\n 'enable_range_search' => true,\n 'options' => 'date_range_search_dom',\n 'studio' => array(\n 'portaleditview' => false,\n ),\n 'duplicate_on_record_copy' => 'no',\n 'readonly' => true,\n 'massupdate' => false,\n 'full_text_search' => array(\n 'enabled' => true,\n 'searchable' => false\n ),\n )\n ),\n 'indices' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-30", "text": "),\n )\n ),\n 'indices' => array(\n 'date_entered' => array(\n 'name' => 'idx_' . strtolower($table_name) . '_date_entered',\n 'type' => 'index',\n 'fields' => array('date_entered')\n )\n )\n);\nUsing a Custom Vardef Template\nOnce the vardef template is in place, you can use the template by adding it to the 'uses' array property of your module vardefs. Continuing with our example module custom_Module, we can update the vardefs file as follows:\n./modules/custom_Module/vardefs.php\n $table_name,\n 'fields' => array(\n 'name' => array(\n 'name' => 'name',\n 'vname' => 'LBL_NAME',\n 'type' => 'username',\n 'link' => true,\n 'dbType' => 'varchar',\n 'len' => 255,\n 'unified_search' => true,\n 'full_text_search' => array(),\n 'required' => true,\n 'importable' => 'required',\n 'duplicate_merge' => 'enabled',\n //'duplicate_merge_dom_value' => '3',\n 'merge_filter' => 'selected',\n 'duplicate_on_record_copy' => 'always',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-32", "text": "'duplicate_on_record_copy' => 'always',\n ),\n ),\n 'relationships' => array (\n ),\n //Add the desired vardef templates to this list\n 'uses' => array(\n 'date_entered'\n ),\n 'optimistic_locking' => false,\n 'unified_search' => false,\n);\nVardefManager::createVardef(\n $module,\n $module,\n //Specify the bare template to be used to create the vardefs\n array('bare')\n);\nAfter a Quick Repair and Rebuild, a SQL statement should be generated to update the table of the module with the new date_entered field that was added to the vardefs using the vardef template.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "c91a5b84b54a-33", "text": "Last modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Implementing_Custom_SugarBean_Templates/index.html"} {"id": "02f83923b328-0", "text": "Customizing Core SugarBeans\nOverview\nThis article covers how to extend core SugarBean objects to implement custom code. This can be used to alter the stock assignment notification message or to\u00c2\u00a0add logic to change the\u00c2\u00a0default modules behavior.\nCustomizing a Core Module\nThe best approach to customizing a core SugarBean object is to become familiar with how the core Bean operates and only modify the bean logic where absolutely necessary. After understanding where you wish to make your customization in the module Bean class, you can extend the class in the custom directory.\u00c2\u00a0In order to avoid duplicating code from the core Bean class, it is always best to extend the class rather than duplicate the class to the custom directory.\u00c2\u00a0\nExtending the SugarBean\nFor this example, we will look at modifying the Leads SugarBean object. To extend the core Leads bean, create the following file:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Customizing_Core_SugarBeans/index.html"} {"id": "02f83923b328-1", "text": "./custom/modules/Leads/CustomLead.php\n Repairs, and run a Quick Repair and Rebuild so that the system starts using the custom class.\nThings to Note\nOverriding a core SugarBean class comes with some caveats:\nThe custom class is only used when the product core code uses the\u00c2\u00a0BeanFactory.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Customizing_Core_SugarBeans/index.html"} {"id": "02f83923b328-5", "text": "For most circumstances, Sugar is set up to use BeanFactory, however, legacy code or specific logic that is pairs core modules together may use direct calls to a core SugarBean class, which would then cause the custom class to not be used. In those scenarios,\u00c2\u00a0it is recommended to use a logic look instead.\nExtending the Cases module doesn't affect the email Import process.\nIf the\u00c2\u00a0$objectList\u00c2\u00a0property is not defined for the module, the custom object will be used, however, things like Studio will no longer work correctly.\nFor the example above, we defined the $objectList property for the Leads module to make sure that Studio continued working as expected. Without this definition, if you navigate to Admin > Studio, fields and relationships will not render properly.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/SugarBean/Customizing_Core_SugarBeans/index.html"} {"id": "3c6c24473e60-0", "text": "BeanFactory\nOverview\nThe BeanFactory class, located in ./data/BeanFactory.php, is used for loading an instance of a SugarBean. This class should be used any time you are creating or retrieving bean objects. It will automatically handle any classes required for the bean.\nCreating a SugarBean Object\nnewBean()\nTo create a new, empty SugarBean, use the newBean() method. This method is typically used when creating a new record for a module or to call properties of the module's bean object.\n$bean = BeanFactory::newBean($module);\nnewBeanByName()\nUsed to fetch a bean by its beanList name.\n$bean = BeanFactory::newBeanByName($name);\nRetrieving a SugarBean Object\ngetBean()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/BeanFactory/index.html"} {"id": "3c6c24473e60-1", "text": "Retrieving a SugarBean Object\ngetBean()\nThe getBean() method can be used to retrieve a specific record from the database. If a record id is not passed, a new bean object will be created.\n$bean = BeanFactory::getBean($module, $record_id);\nNote: Disabling row-level security when accessing a bean should be set to true\u00c2\u00a0only when it is absolutely necessary to bypass security, for example when updating a Lead record from a custom Entry Point.\u00c2\u00a0An example of accessing the bean while bypassing row security is:\n$bean = BeanFactory::getBean($module, $record_id, array('disable_row_level_security' => true));\nretrieveBean()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/BeanFactory/index.html"} {"id": "3c6c24473e60-2", "text": "retrieveBean()\nThe retrieveBean() method can also be used to retrieve a specific record from the database. The difference between this method and getBean() is that null will be returned instead of an empty bean object if the retrieve fails.\n$bean = BeanFactory::retrieveBean($module, $record_id);\nNote: Disabling row-level security when accessing a bean should be set to true only when it is absolutely necessary to bypass security, for example, when updating a Lead record from a custom Entry Point.\u00c2\u00a0An example of accessing the bean while bypassing row security is:\n$bean = BeanFactory::retrieveBean($module, $record_id, array('disable_row_level_security' => true));\nRetrieving Module Keys\ngetObjectName()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/BeanFactory/index.html"} {"id": "3c6c24473e60-3", "text": "Retrieving Module Keys\ngetObjectName()\nThe getObjectName() method will return the object name / dictionary key for a given module. This is normally the same as the bean name, but may not be for some modules such as Cases which has a key of 'aCase' and a name of 'Case'.\n$moduleKey = BeanFactory::getObjectName($moduleName);\ngetBeanName()\nThe getBeanName() method will retrieve the bean class name given a module name.\n$moduleClass = BeanFactory::getBeanName($module);\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Models/BeanFactory/index.html"} {"id": "16a5f0ac05e4-0", "text": "Fields\nOverview\nHow fields interact with the various aspects of Sugar.\u00c2\u00a0\nSugarField Widgets\nThe SugarField widgets, located in ./include/SugarFields/Fields/\u00c2\u00a0,\u00c2\u00a0define\u00c2\u00a0the data\u00c2\u00a0formatting and search query structure for the various field types. They also define the rendering of fields for modules running in backward compatibility mode. When creating or overriding\u00c2\u00a0field widgets, developers should place their customization in ./custom/include/SugarFields/Fields/. For information on how Sidecar renders fields, please refer to the fields section in our user interface\u00c2\u00a0documentation.\u00c2\u00a0Creating Custom Fields\nImplementation", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Fields/index.html"} {"id": "16a5f0ac05e4-1", "text": "Implementation\nAll fields for a module are defined within\u00c2\u00a0vardefs. Within this definition, the\u00c2\u00a0type attribute will determine all of the logic applied to the field. For example, the Contacts module\u00c2\u00a0has a\u00c2\u00a0 'Do Not Call' field. In the vardefs, this\u00c2\u00a0field is defined as follows:\n'do_not_call' => array (\n 'name' => 'do_not_call', // the name of the field\n 'vname' => 'LBL_DO_NOT_CALL', // the label for the field name\n 'type' => 'bool', // the fields type\n 'default' => '0', // the fields default value\n 'audited'=>true, // whether the field is audited\n 'duplicate_on_record_copy' => 'always', // whether to duplicate the fields value when being copied", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Fields/index.html"} {"id": "16a5f0ac05e4-2", "text": "'comment' => 'An indicator of whether contact can be called' // admin context of the field\n),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Fields/index.html"} {"id": "16a5f0ac05e4-3", "text": "),\n\u00c2\u00a0The bool\u00c2\u00a0type field is rendered in the UI from the ./clients/base/fields/bool/bool.js field controller which renders\u00c2\u00a0the appropriate handlebars template as defined by the users current view for sidecar enabled modules. When the user saves data, the controller formats the data for the API and passes it to an endpoint. Once the data is received by the\u00c2\u00a0server, The SugarField\u00c2\u00a0definition calls any additional logic in the apiSave function to format the data for saving to the database.\u00c2\u00a0The same concept is applied in the apiFormatField function when retrieving data from the database to be passed back to the user interface through\u00c2\u00a0the API. For modules running in backward compatibility mode, the bool field is rendered using the Smarty .tpl) templates located in ./include/SugarFields/Fields/Bool/.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Fields/index.html"} {"id": "16a5f0ac05e4-4", "text": "While the vardefs\u00c2\u00a0define the default type for a field, this value can be overridden in the metadata of the view rendering the field. The example being that in ./custom/modules/Contacts/clients/base/views/record/record.php, you can modify the\u00c2\u00a0do_not_call field array to point to a custom field type you have created. For more information on creating custom field types, please refer to Creating Custom Fields documentation.\u00c2\u00a0\u00c2\u00a0\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Fields/index.html"} {"id": "ff21c5578934-0", "text": "Vardefs\nOverview\nVardefs (Variable Definitions) provide the Sugar application with information about SugarBeans. Vardefs specify information on the individual fields, relationships between beans, and the indexes for a given bean.\u00c2\u00a0\nEach module that contains a SugarBean file has a vardefs.php file located in it, which specifies the fields for that SugarBean. For example, the vardefs for the Contact bean are located in ./modules/Contacts/vardefs.php.\nDictionary Array\nVardef files create an array called $dictionary, which contains several entries including tables, fields, indices, and relationships.\ntable : The name of the database table (usually, the name of the module) for this bean that contains the fields\naudited : Specifies whether the module has field-level auditing enabled", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-1", "text": "audited : Specifies whether the module has field-level auditing enabled\nduplicate_check\u00c2\u00a0: Determines if duplicate checking is enabled on the module, and what duplicate check strategy will be used if enabled.\u00c2\u00a0\nfields : A list of fields and their attributes\nindices : A list of indexes that should be created in the database\noptimistic_locking : Determines whether the module has optimistic locking enabled\nOptimistic locking prevents loss of data by using the bean's modified date to ensure that it is not being modified simultaneously by more than one person or process.\nunified_search : Determines whether the module can\u00c2\u00a0be searched via Global Search\u00c2\u00a0This setting defaults to false and has no effect if all of the fields in the fields array have the 'unified_search' field attribute set to false.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-2", "text": "unified_search_default_enabled : Determines whether the module should be searched by default for new users via Global Search\nThis setting defaults to true but has no effect if\u00c2\u00a0unified_search is set to false.\nvisibility\u00c2\u00a0: A list of visibility classes enabled on the module\nDuplicate Check Array\nThe duplicate_check\u00c2\u00a0array contains two properties, that control if duplicate checking is enabled on the module, and which duplicate check strategy will be used to check for duplicates.\nThe two properties for the array are as follows:\nName\nType\nDescription\nenabled\nBoolean\nSpecifies whether or not the Bean is utilizing the duplicate check framework\n\nArray", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-3", "text": "\nArray\n is the name of the duplicate check strategy class that is handling the duplicate checking. It is set to an array of Metadata, specific to the strategy defined in\u00c2\u00a0the key. Review the Duplicate Check Framework for further information.\nFields Array\nThe fields array contains one array for each field in the SugarBean. At the top level of this array, the key is the name of the field, and the value is an array of attributes about that field.\nThe list of possible attributes are as follows:\nname : The name of the field\nvname : The language pack ID for the label of this field\ntype : The type of the attribute\nassigned_user_name : A linked user name\nbool : A boolean value\nchar : A character array\ndate : A date value with no time\ndatetime : A date and time\nemail : An email address field", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-4", "text": "datetime : A date and time\nemail : An email address field\nenum : An enumeration (dropdown list from the language pack)\nid : A database GUID\nimage : A photo-type field\nlink : A link through an explicit relationship. This attribute should only be used when working with related fields. It does not make the field render as a link.\nname : A non-database field type that concatenates other field values\nphone : A phone number field to utilize with callto:// links\nrelate : Related bean\nteam_list : A team-based ID\ntext : A text area field\nurl : A hyperlinked field on the detail view\nvarchar : A variable-sized string\ntable : The database table the field comes from.\nThe table attribute is only needed\u00c2\u00a0to join fields from another table outside of the module in focus.\nisnull : Whether the field can contain a null value", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-5", "text": "isnull : Whether the field can contain a null value\nlen : The length of the field (number of characters if a string)\noptions : The name of the enumeration (dropdown list) in the language pack for the field\ndbtype : The database type of the field (if different than the type)\nreportable : Determines whether the field will be available in the Reports and Workflow modules\ndefault :\u00c2\u00a0The default value for this field.\u00c2\u00a0Default values for the record are populated by default on create for the record view (for Sidecar modules) and edit view (for Legacy modules) layout but can be modified by users. The Default Value option is available for all data type fields except HTML, Image, Flex Relate, and Relate.\nmassupdate : Determines whether the field\u00c2\u00a0will show up in the mass-update panel on its module's list view", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-6", "text": "Some field types are restricted from mass update regardless of this setting.\nrname : For relate-type fields, the field from the related variable that contains\u00c2\u00a0the text\nid_name : For relate-type fields, the field from the bean that stores the ID for the related bean\nsource : Set to 'non-db' if the field value does not come from the database\nThe source attribute can be used for calculated values or values retrieved in some other way.\nsort_on : The field to sort by if multiple fields are used in the presentation of field's information\nfields : For concatenated values, an array containing the fields that are concatenated\ndb_concat_fields : For concatenated values, an array containing the fields to concatenate in the database\nunified_search : Determines whether the field\u00c2\u00a0can\u00c2\u00a0be searched via Global Search", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-7", "text": "This has no effect if the dictionary array setting 'unified_search' is not set to true.\nenable_range_search : For date, datetime, and numeric fields, determines if this field should be searchable by range in module searches\ndependency : Allows a field to have a predefined formula to control the field's visibility\nstudio : Controls the visibility of the field in the Studio editor\nIf set to false, then the field will not appear in any studio screens for the module. Otherwise, you may specify an Array of view keys from which the field's visibility should be removed (e.g.\u00c2\u00a0array('listview'=>false) will hide the field in the listview layout screen).\nThe following example illustrates a standard ID field for a bean:\n'id' => array (\n 'name' => 'id',\n 'vname' => 'LBL_ID',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-8", "text": "'vname' => 'LBL_ID',\n 'type' => 'id',\n 'required' => true,\n),\nIndices Array\nThis array contains a list of arrays that are used to create indices in the database. The fields in this array are:\nname : The unique name of the index\ntype : The type of index (primary, unique, or index)\nfields : An ordered array of the fields to index\nsource : Set to 'non-db' if you are creating an index for added application functionality such as duplication checking on imports\nThe following example\u00c2\u00a0creates a primary index called 'userspk' on the 'id' column:\narray(\n 'name' => 'userspk', \n 'type' => 'primary', \n 'fields'=> array('id')\n),\nRelationships Array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-9", "text": "'fields'=> array('id')\n),\nRelationships Array\nThe relationships array specifies relationships between beans. Like the indices array entries, it is a list of names with array values.\nlhs_module : The module on the left-hand side of the relationship\nlhs_table : The table on the left-hand side of the relationship\nlhs_key : The primary key column of the left-hand side of the relationship\nrhs_module : The module on the right-hand side of the relationship\nrhs_table : The table on the right-hand side of the relationship\nrhs_key : The primary key column of the right-hand side of the relationship\nrelationship_type : The type of relationship (e.g. one-to-many,\u00c2\u00a0many-to-many)\nrelationship_role_column : The type of relationship role", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-10", "text": "relationship_role_column : The type of relationship role\nrelationship_role_column_value : Defines the unique identifier for the relationship role\nThe following example creates a relationship between a contact and the contact that they report to. The reports_to_id field maps to the id of the record that belongs to the higher-ranked contact. This is a one-to-many relationship in that a contact may only report to one person, but many people may report to the same contact.\n'contact_direct_reports' => array(\n 'lhs_module' => 'Contacts',\n 'lhs_table' => 'contacts',\n 'lhs_key' => 'id',\n 'rhs_module' => 'Contacts',\n 'rhs_table' => 'contacts',\n 'rhs_key' => 'reports_to_id',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-11", "text": "'rhs_key' => 'reports_to_id',\n 'relationship_type' => 'one-to-many'\n),\nVisibility Array\nThe visibility\u00c2\u00a0array specifies the row level visibility classes that are enabled on the bean. Each entry in the array, is a key-value pair, where the key is the name of the Visibility class and the value is set to boolean True. More information on configuring custom Visibility strategies can be found in the Architecture section under Visibility Framework.\nExtending Vardefs\nMore information about extending and overriding vardefs can be found in the Extensions Framework documentation under Vardefs.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "ff21c5578934-12", "text": "TopicsManually Creating Custom FieldsThe most common way to create custom fields in Sugar is via Studio inside the application. This page describes how to use the ModuleInstaller class or vardef extensions as alternative methods of creating custom fields.Specifying Custom Indexes for Import Duplicate CheckingWhen importing records to Sugar via the Import Wizard, users can select which of the mapped fields they would like to use to perform a duplicate check and thereby avoid creating duplicate records. This article explains how to enable an additional field or set of fields for selection in this step.Working With IndexesSugar provides a simple method for creating custom indexes through the vardef framework. Indexes can be built on one or more fields within a module. Indexes can be saved down to the database level or made available only in the application for functions such as Import Duplicate Checking.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/index.html"} {"id": "25207871d447-0", "text": "Working With Indexes\nOverview\nSugar provides a simple method for creating custom indexes through the vardef framework. Indexes can be built on one or more fields within a module. Indexes can be saved down to the database level or made available only in the application for functions such as Import Duplicate Checking.\nIndex Metadata\nIndexes have the following\u00c2\u00a0metadata options that can be configured per index:\nKey\nValue\nDescription\u00c2\u00a0\nname\nstring\nA Unique identifier to define the index. Best practices recommend indexes start with idx and contain the suffix cstm to avoid conflicting with a stock index.\u00c2\u00a0\nNote : Some databases have restrictions on the length of index names. Please check with your database vendor to avoid any issues.\ntype\nstring\u00c2\u00a0\n\u00c2\u00a0All indexes should use the type of \"index\"\nfields\narray\nA PHP array of the fields for the index to utilize\u00c2\u00a0\nsource\nstring", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-1", "text": "array\nA PHP array of the fields for the index to utilize\u00c2\u00a0\nsource\nstring\nSpecify as \"non-db\" to avoid creating the index in the database\nCreating Indexes\nStock indexes are initially defined in the module's vardefs file under the indices array. For reference, you can find them using the vardef path\u00c2\u00a0of your module. The path will be \u00c2\u00a0./modules//vardefs.php.\nCustom indexes\u00c2\u00a0should \u00c2\u00a0be created using the Extension Framework.\u00c2\u00a0First, create a PHP\u00c2\u00a0file in the extension directory of your\u00c2\u00a0desired module. The path should similar to\u00c2\u00a0./custom/Extension/modules//Ext/Vardefs/.php.\nIn the new file, add the appropriate $dictionary reference to define the custom index:\n']['indices'][] = array(\n\t'name' => '',\n\t'type' => 'index',\n\t'fields' => array(\n\t\t'field1',\n\t\t'field2',\n\t)\n);\nNote : For performance reasons, it is not recommended to create an index on a single field unless the source is set to non-db.\nOnce installed,you will need to navigate\u00c2\u00a0to Admin > Repair > Quick Repair and Rebuild to enable the custom index. You will need to execute any scripts generated by the rebuild process.\nRemoving Indexes\nStock indexes are initially defined in the module's vardefs file under the indices array. For reference, you can find them using the vardef path of your module. The path will be ./modules//vardefs.php.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-3", "text": "Stock indexes should be removed using the Extension Framework. First, create a PHP file in the extension directory of your desired module. The path should similar to ./custom/Extension/modules//Ext/Vardefs/.php.\nIn the new file, loop through the existing 'indices' sub-array of the $dictionary to locate the stock index to remove, and use unset() to remove it from the array.\nExample\nThe following is an example to remove the idx_calls_date_start index from the Call module's vardefs.\nFirst, create ./custom/Extension/modules/Calls/Ext/Vardefs/remove_idx_calls_date_start.php\u00c2\u00a0from the root directory of your Sugar installation on the web server. When creating the file, keep in mind the following requirements:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-4", "text": "The name of the file is not important, as long as it ends with a .php extension.\nThe rest of the directory path is case sensitive so be sure to create the directories as shown.\nIf you are removing the index for a module other than Calls, then substitute the corresponding directory name with that module.\nEnsure that the entire directory path and file have the correct ownership and sufficient permissions for the web server to access the file.\nThe contents of the file should look similar to the following code:\n $index_item) {\n if( $index_item['name'] == $remove_index ) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-5", "text": "if( $index_item['name'] == $remove_index ) {\n unset($dictionary['Call']['indices'][$index_key]);\n }\n}\nNote : Removing the reference to the index from the module's indices array does not actually remove the index from the module's database table. Removing the reference from the indices array ensures that the index is not added back to the module's database table when performing any future Quick Repair and Rebuilds. The database index must be removed directly at the database level. On MySQL, with the current example, this could be done with a query like:\nALTER TABLE calls DROP INDEX idx_calls_date_start;\nOnce installed,you will need to navigate to Admin > Repair > Quick Repair and Rebuild to remove the index from the $dictionary array. You will need to execute any scripts generated by the rebuilding process.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-6", "text": "Creating Indexes for Import Duplicate Checking\nWhen importing records to Sugar via the Import Wizard, users can select which of the mapped fields they\u00c2\u00a0would like to use to perform a duplicate check\u00c2\u00a0and thereby avoid creating duplicate records. The following instructions\u00c2\u00a0explain how to enable an additional field or set of fields for selection in this step.\nExample\nThe following is an example to add the home phone field to the Contact module's duplicate check.\nFirst, create ./custom/Extension/modules/Contacts/Ext/Vardefs/custom_import_index.php\u00c2\u00a0from the root directory of your Sugar installation on the\u00c2\u00a0web server. When creating the file, keep in mind the following requirements:\nThe name of the file is not important, as long as it ends with a .php extension.\nThe rest of the directory path is case sensitive so be sure to create the directories as shown.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-7", "text": "The rest of the directory path is case sensitive so be sure to create the directories as shown.\nIf you are creating the import index for a module other than Contacts, then substitute the corresponding directory name with that module.\nEnsure that the entire directory path and file have the correct ownership and sufficient permissions for the web server to access the file.\nThe contents of the file should look similar to the following code:\n 'idx_home_phone_cstm',\n 'type' => 'index',\n 'fields' => array(\n 0 => 'phone_home',\n ),\n 'source' => 'non-db',\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-8", "text": "),\n 'source' => 'non-db',\n);\nPlease\u00c2\u00a0note that the module name in line 2 of the code is singular (i.e. Contact, not Contacts). If you are unsure of what to enter for the module name, you can verify the name by opening the ./cache/modules//vardefs.php file. The second line of that file will have text like the following:\n$GLOBALS[\"dictionary\"][\"Contact\"] = array (...);\nThe parameter following \"dictionary\" is the same parameter you should use in the file defining the\u00c2\u00a0custom index. To verify duplicates against a combination of fields (i.e. duplicates will only be flagged if the values of multiple fields match those of an existing record), then simply\u00c2\u00a0add the desired fields to the 'fields' array in the code example.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "25207871d447-9", "text": "Finally, navigate\u00c2\u00a0to Admin > Repair > Quick Repair and Rebuild to enable the custom index for duplicate verification when importing records in the\u00c2\u00a0module.\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Working_With_Indexes/index.html"} {"id": "6bbae2fbe511-0", "text": "Manually Creating Custom Fields\nOverview\nThe most common way to create custom fields in Sugar is via Studio inside the application. This page describes how to use the ModuleInstaller class\u00c2\u00a0or vardef extensions as alternative methods of\u00c2\u00a0creating custom fields.\nNote: Sugar Sell Essentials customers do not have the ability to upload custom file packages to Sugar using Module Loader.\nUsing ModuleInstaller to Create Custom Fields\nThere are two ways to create a field using the ModuleInstaller class: via installer package or\u00c2\u00a0programmatically. An example of creating a field from a module-loadable package is explained in the Module Loader documentation,,\u00c2\u00a0Creating an Installable Package that Creates New Fields. The following example shows how to\u00c2\u00a0programmatically add custom fields using the ModuleInstaller class with the install_custom_fields() method:\n 'text_field_example',\n 'label' => 'LBL_TEXT_FIELD_EXAMPLE',\n 'type' => 'varchar',\n 'module' => 'Accounts',\n 'help' => 'Text Field Help Text',\n 'comment' => 'Text Field Comment Text',\n 'default_value' => '',\n 'max_size' => 255,\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'importable' => 'true', // 'true', 'false', 'required'\n 'duplicate_merge' => false, // true or false\n ),\n //DropDown", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-2", "text": "),\n //DropDown\n array(\n 'name' => 'dropdown_field_example',\n 'label' => 'LBL_DROPDOWN_FIELD_EXAMPLE',\n 'type' => 'enum',\n 'module' => 'Accounts',\n 'help' => 'Enum Field Help Text',\n 'comment' => 'Enum Field Comment Text',\n 'ext1' => 'account_type_dom', //maps to options - specify list name\n 'default_value' => 'Analyst', //key of entry in specified list\n 'mass_update' => false, // true or false\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-3", "text": "'audited' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n 'duplicate_merge' => false, // true or false\n ),\n //MultiSelect\n array(\n 'name' => 'multiselect_field_example',\n 'label' => 'LBL_MULTISELECT_FIELD_EXAMPLE',\n 'type' => 'multienum',\n 'module' => 'Accounts',\n 'help' => 'Multi-Enum Field Help Text',\n 'comment' => 'Multi-Enum Field Comment Text',\n 'ext1' => 'account_type_dom', //maps to options - specify list name\n 'default_value' => 'Analyst', //key of entry in specified list", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-4", "text": "'default_value' => 'Analyst', //key of entry in specified list\n 'mass_update' => false, // true or false\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n 'duplicate_merge' => false, // true or false\n ),\n //Checkbox\n array(\n 'name' => 'checkbox_field_example',\n 'label' => 'LBL_CHECKBOX_FIELD_EXAMPLE',\n 'type' => 'bool',\n 'module' => 'Accounts',\n 'default_value' => true, // true or false\n 'help' => 'Bool Field Help Text',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-5", "text": "'help' => 'Bool Field Help Text',\n 'comment' => 'Bool Field Comment',\n 'audited' => false, // true or false\n 'mass_update' => false, // true or false\n 'duplicate_merge' => false, // true or false\n 'reportable' => true, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n //Date\n array(\n 'name' => 'date_field_example',\n 'label' => 'LBL_DATE_FIELD_EXAMPLE',\n 'type' => 'date',\n 'module' => 'Accounts',\n 'default_value' => '',\n 'help' => 'Date Field Help Text',\n 'comment' => 'Date Field Comment',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-6", "text": "'comment' => 'Date Field Comment',\n 'mass_update' => false, // true or false\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'duplicate_merge' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n //DateTime\n array(\n 'name' => 'datetime_field_example',\n 'label' => 'LBL_DATETIME_FIELD_EXAMPLE',\n 'type' => 'datetime',\n 'module' => 'Accounts',\n 'default_value' => '',\n 'help' => 'DateTime Field Help Text',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-7", "text": "'help' => 'DateTime Field Help Text',\n 'comment' => 'DateTime Field Comment',\n 'mass_update' => false, // true or false\n 'enable_range_search' => false, // true or false\n 'required' => false, // true or false\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'duplicate_merge' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n //Encrypt\n array(\n 'name' => 'encrypt_field_example',\n 'label' => 'LBL_ENCRYPT_FIELD_EXAMPLE',\n 'type' => 'encrypt',\n 'module' => 'Accounts',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-8", "text": "'type' => 'encrypt',\n 'module' => 'Accounts',\n 'default_value' => '',\n 'help' => 'Encrypt Field Help Text',\n 'comment' => 'Encrypt Field Comment',\n 'reportable' => true, // true or false\n 'audited' => false, // true or false\n 'duplicate_merge' => false, // true or false\n 'importable' => 'true', // 'true', 'false' or 'required'\n ),\n );\n require_once('ModuleInstall/ModuleInstaller.php');\n $moduleInstaller = new ModuleInstaller();\n $moduleInstaller->install_custom_fields($fields);\nAdd\u00c2\u00a0labels for custom fields by creating a corresponding language extension file:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-9", "text": "Add\u00c2\u00a0labels for custom fields by creating a corresponding language extension file:\n./custom/Extension/modules/Accounts/Ext/Language/en_us..php\n Repair > Quick Repair and Rebuild to make the new field available for users.\nUsing the Vardef Extensions\nYou should try to avoid creating your own custom fields using the vardefs as there are several caveats:\nIf your installation does not already contain custom fields, you must manually create the custom table. Otherwise, the system will not recognize your field's custom vardef. This situation is outlined in the following section.\nYou must\u00c2\u00a0run a Quick Repair and Rebuild and then execute the generated SQL after the vardef is installed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-11", "text": "You must correctly define the properties of a vardef. If you miss any, the field may not work properly.\nYour field name must end with \"_c\" and have the property 'source' set to 'custom_fields'. This is required as you should not modify core tables in Sugar and it is not permitted on\u00c2\u00a0Sugar's cloud service.\nYour vardef must specify the exact indexes of the properties you want to set. For example, use: \u00c2\u00a0$dictionary['']['fields']['example_c']['name'] = 'myfield_c';\u00c2\u00a0instead of $dictionary['']['fields']['example_c'] = array(['name' => 'myfield_c');. This will help prevent the system from losing any properties when loading from the extension framework.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-12", "text": "The initial challenge when creating your own custom vardef is getting the system to recognize the vardef and generate the database field. This\u00c2\u00a0issue\u00c2\u00a0is illustrated with the example below:\n./custom/Extension/modules//Ext/Vardefs/.php\n']['fields']['example_c']['name'] = 'example_c';\n$dictionary['']['fields']['example_c']['vname'] = 'LBL_EXAMPLE_C';\n$dictionary['']['fields']['example_c']['type'] = 'varchar';\n$dictionary['']['fields']['example_c']['enforced'] = '';", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-13", "text": "$dictionary['']['fields']['example_c']['dependency'] = '';\n$dictionary['']['fields']['example_c']['required'] = false;\n$dictionary['']['fields']['example_c']['massupdate'] = '0';\n$dictionary['']['fields']['example_c']['default'] = '';\n$dictionary['']['fields']['example_c']['no_default'] = false;\n$dictionary['']['fields']['example_c']['comments'] = 'Example Varchar Vardef';", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-14", "text": "$dictionary['']['fields']['example_c']['help'] = '';\n$dictionary['']['fields']['example_c']['importable'] = 'true';\n$dictionary['']['fields']['example_c']['duplicate_merge'] = 'disabled';\n$dictionary['']['fields']['example_c']['duplicate_merge_dom_value'] = '0';\n$dictionary['']['fields']['example_c']['audited'] = false;\n$dictionary['']['fields']['example_c']['reportable'] = true;", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-15", "text": "$dictionary['']['fields']['example_c']['unified_search'] = false;\n$dictionary['']['fields']['example_c']['merge_filter'] = 'disabled';\n$dictionary['']['fields']['example_c']['calculated'] = false;\n$dictionary['']['fields']['example_c']['len'] = '255';\n$dictionary['']['fields']['example_c']['size'] = '20';\n$dictionary['']['fields']['example_c']['id'] = 'example_c';", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-16", "text": "$dictionary['']['fields']['example_c']['custom_module'] = '';\n//required to create the field in the _cstm table\n$dictionary['']['fields']['example_c']['source'] = 'custom_fields';\nOnce the vardef is in place, determine whether the custom field's module already contains any other custom fields. If there are not any existing custom fields, create a corresponding record in fields_meta_data that will trigger the comparison process.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-17", "text": "INSERT INTO fields_meta_data (id, name, vname, comments, custom_module, type, len, required, deleted, audited, massupdate, duplicate_merge, reportable, importable) VALUES ('example_c', 'example_c', 'LBL_EXAMPLE_C', 'Example Varchar Vardef', '', 'varchar', 255, 0, 0, 0, 0, 0, 1, 'true');\nFinally, navigate to Admin > Repair > Quick Repair and Rebuild. The system will then rebuild the extensions. After the repair, you will notice a section at the bottom stating that there are differences between the database and vardefs. Execute the scripts generated to create theSave\u00c2\u00a0custom field:\nMissing _cstm Table:\n/*Checking Custom Fields for module : */", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "6bbae2fbe511-18", "text": "/*Checking Custom Fields for module : */\nCREATE TABLE _cstm (id_c char(36) NOT NULL , PRIMARY KEY (id_c)) CHARACTER SET utf8 COLLATE utf8_general_ci;\nMissing Columns:\n/*MISSING IN DATABASE - example_c - ROW*/\nALTER TABLE _cstm add COLUMN example_c varchar(255) NULL ;\n\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Manually_Creating_Custom_Fields/index.html"} {"id": "9f109f6b475f-0", "text": "Specifying Custom Indexes for Import Duplicate Checking\nOverview\nWhen importing records to Sugar via the Import Wizard, users can select which of the mapped fields they\u00c2\u00a0would like to use to perform a duplicate check\u00c2\u00a0and thereby avoid creating duplicate records. This article explains how to enable an additional field or set of fields for selection in this step.\nResolution\nThe import wizard's duplicate check operates based on indices defined for that module. You can create a non-database index to check for a field. It is important that it is non-database as single column indices on your database can hamper overall performance. The following is an example to add the home phone field to the Contact module's duplicate check.\nFirst, create the following file from the root directory of your Sugar installation on the\u00c2\u00a0web server:\n./custom/Extension/modules/Contacts/Ext/Vardefs/custom_import_index.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Specifying_Custom_Indexes_for_Import_Duplicate_Checking/index.html"} {"id": "9f109f6b475f-1", "text": "When creating the file, keep in mind the following requirements:\nThe name of the file is not important, as long as it ends with a .php extension.\nThe rest of the directory path is case sensitive so be sure to create the directories as shown.\nIf you are creating the import index for a module other than Contacts, then substitute the corresponding directory name with that module.\nEnsure that the entire directory path and file have the correct ownership and sufficient permissions for the web server to access the file.\nThe contents of the file should look similar to the following code:\n 'idx_home_phone_cstm',\n 'type' => 'index',\n 'fields' => array(\n 0 => 'phone_home',\n ),\n 'source' => 'non-db',\n);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Specifying_Custom_Indexes_for_Import_Duplicate_Checking/index.html"} {"id": "9f109f6b475f-2", "text": "),\n 'source' => 'non-db',\n);\nPlease\u00c2\u00a0note that the module name in line 2 of the code is singular (i.e. Contact, not Contacts). If you are unsure of what to enter for the module name, you can verify the name by opening the ./cache/modules//vardefs.php file. The second line of that file will have text like the following:\n$GLOBALS[\"dictionary\"][\"Contact\"] = array (\nThe parameter following \"dictionary\" is the same parameter you should use in the file defining the\u00c2\u00a0custom index. To verify duplicates against a combination of fields (i.e. duplicates will only be flagged if the values of multiple fields match those of an existing record), then simply\u00c2\u00a0add the desired fields to the 'fields' array in the code example.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Specifying_Custom_Indexes_for_Import_Duplicate_Checking/index.html"} {"id": "9f109f6b475f-3", "text": "Finally, navigate\u00c2\u00a0to Admin > Repair > Quick Repair and Rebuild to enable the custom index for duplicate verification when importing records in the\u00c2\u00a0module.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Vardefs/Specifying_Custom_Indexes_for_Import_Duplicate_Checking/index.html"} {"id": "a547acda630d-0", "text": "Database\nOverview\nAll Sugar products support the MySQL and Microsoft SQL Server databases. Sugar Enterprise and Sugar Ultimate also support the DB2 and Oracle databases. In general, Sugar uses only common database functionality, and the application logic is embedded in the PHP code. Sugar does not use or recommend database triggers or stored procedures. This design simplifies coding and testing across different database vendors. The only implementation difference across the various supported databases is column types.\u00c2\u00a0\nPrimary Keys, Foreign Keys, and GUIDs\nBy default, Sugar uses globally unique identification values (GUIDs) for primary keys for all database records. Sugar provides a Sugarcrm\\Sugarcrm\\Util\\Uuid::uuid1() utility function for creating these GUIDs in the following format: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee. The primary key's column length is 36 characters.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "a547acda630d-1", "text": "The GUID format and value has no special meaning (relevance) in Sugar other than the ability to match records in the database. Sugar links two records (such as an Accounts record with a Contacts record) with a specified ID in the record type relationship table (e.g. accounts_contacts).\nPrimary keys in Sugar may\u00c2\u00a0contain any unique string such as a GUID algorithm, a key that has some meaning (e.g. bean type first, followed by info), an external key, or auto-incrementing numbers converted to strings. Sugar chose GUIDs over auto-incrementing keys to enable easier data synchronization across databases and avoid primary-key collisions.\nYou can also import data from a previous system with one primary key format and make all new records in Sugar use the GUID primary key format. All keys must\u00c2\u00a0be stored as globally unique strings with no more than 36 characters.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "a547acda630d-2", "text": "Notice\u00c2\u00a0If multiple records between modules contain matching ids, you may experience undesired behaviors within the system.\nTo\u00c2\u00a0implement a new primary key method or to import data with a different primary key format (based on the existing GUID mechanism for new records), keep in mind\u00c2\u00a0the following rules of primary key behavior:\nQuote characters : Sugar expects primary keys to be string types and will format the SQL with quotes. If you change the primary key types to an integer type, SQL errors may occur since Sugar stores all ID values in quotes in the generated SQL. The database may be able to ignore this issue. MySQL running in Safe mode experiences issues, for instance.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "a547acda630d-3", "text": "Case sensitivity : The ID values abc and ABC are treated the same in MySQL but represent different values in Oracle. When migrating data to Sugar, some CRM systems may use case-sensitive strings as their IDs on export. If this is the case, and you are running MySQL, you must\u00c2\u00a0run an algorithm on the data to make sure all of the IDs are unique. One simple algorithm is to MD5 the ID values that they provide. A quick check will let you know if there is a problem. If you imported 80,000 leads and there are only 60,000 in the system, some may have been lost due to non-unique primary keys caused by case insensitivity.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "a547acda630d-4", "text": "Key size\u00c2\u00a0: Sugar only tracks the first 36 characters in the primary key. Any replacement primary key will either require changing all of the ID columns with one of an appropriate size or to make sure you do not run into any truncation or padding issues. MySQL in some versions has had issues with Sugar where the IDs were not matching because it was adding spaces to pad the row out to the full size. MySQL's handling of char and varchar padding has changed in later\u00c2\u00a0versions. To protect against this, make sure the GUIDs are not padded with blanks in the database by removing any leading or trailing space characters.\nIndexes\nIndexes can be defined in the main or custom vardefs.php for a module in an array under the key indices. See below for an example of defining several indices:\n'indices' => array(\n array(\n 'name' => 'idx_modulename_name',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "a547acda630d-5", "text": "array(\n 'name' => 'idx_modulename_name',\n 'type' => 'index',\n 'fields' => array('name'),\n ),\n array(\n 'name' => 'idx_modulename_assigned_deleted',\n 'type' => 'index',\n 'fields' => array('assigned_user_id', 'deleted'),\n ),\n ),\nThe name of the index must start with idx_ and must be unique across the database. Possible values for type include primary for a primary key or index for a normal index. The fields list matches the column names used in the database.\nDoctrine", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "a547acda630d-6", "text": "Doctrine\nIn order to provide robust support for Prepared Statements, which provide more security and better database access performance, Sugar 7.9 has adopted parts of Doctrine's Database Abstraction Layer, especially the QueryBuilder class, for working with prepared statements. The picture below shows how Sugar objects like DBManager and SugarQuery utilize Doctrine to provide this functionality, while still using the same toolset that has existed in Sugar.\n\u00c2\u00a0\nDBManager\nThe DBManager class will use Doctrine QueryBuilder for building INSERT and UPDATE queries.\nSugarQuery\nThe SugarQuery class will use Doctrine QueryBuilder for building SELECT queries.\nSugarBean\nThe SugarBean class will continue to use DBManager class for saving all fields.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "a547acda630d-7", "text": "The SugarBean class will continue to use DBManager class for saving all fields.\nTopicsDBManagerThe DBManager Object provides an interface for working with the database.SugarQuerySugarQuery, located in ./include/SugarQuery/SugarQuery.php, provides an object-oriented approach to working with the database. This allows developers to generate the applicable SQL for a Sugar system without having to know which database backend the instance is using. SugarQuery supports all databases supported by Sugar.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/index.html"} {"id": "970a6d403fd8-0", "text": "SugarQuery\nOverview\nSugarQuery, located in ./include/SugarQuery/SugarQuery.php, provides an object-oriented approach\u00c2\u00a0to working with the database. This allows developers to generate\u00c2\u00a0the\u00c2\u00a0applicable SQL for a Sugar system without having to know which database backend the instance is using. SugarQuery supports all databases supported by Sugar.\nNote: SugarQuery only supports reading data from the database at this time (i.e. SELECT statements).\u00c2\u00a0\nSetup\nTo use SugarQuery, simply create a new SugarQuery object.\n$sugarQuery = new SugarQuery();\nBasic Usage", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-1", "text": "$sugarQuery = new SugarQuery();\nBasic Usage\nUsing the SugarQuery object\u00c2\u00a0to retrieve records or generate SQL queries is very simple. At a minimum you need to set the Module\u00c2\u00a0you are working with, using the from()\u00c2\u00a0method, however, there are helper methods for just about any operation you would need in a SQL query. The methods listed below will outline the major methods\u00c2\u00a0you should consider utilizing on the SugarQuery object in order to achieve your development goals.\nfrom()\nThe from() method is used to set the primary module the SugarQuery object will be querying from. It is also used to set some crucial options for the query, such as whether Team Security should be used or if only non-deleted records should be queried. The following example will set the SugarQuery object to query from the Accounts module.\n$sugarQuery->from(BeanFactory::newBean('Accounts'));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-2", "text": "$sugarQuery->from(BeanFactory::newBean('Accounts'));\nArguments\nName\nType\nRequired\nDescription\n$bean\nSugarBean Object\ntrue\nThe SugarBean object for a\u00c2\u00a0specified module. The SugarBean object does not have to be a blank or new Bean as seen in the example above, but can be a previously instantiated SugarBean object.\n$options\nArray\nfalse\nAn associative array that can specify any\u00c2\u00a0of the following options:\nalias - string -\u00c2\u00a0The alias for the module table in the generated SQL query\nteam_security -\u00c2\u00a0boolean - Whether or not Team Security should be added to the generated SQL\u00c2\u00a0query\u00c2\u00a0\nadd_deleted -\u00c2\u00a0boolean - Whether or not 'deleted' = 0 should be added to Where clause of generated SQL query\nReturns\nSugarQuery Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-3", "text": "Returns\nSugarQuery Object \nAllows for method chaining on the SugarQuery object.\nselect()\nThe example above\u00c2\u00a0demonstrates the most\u00c2\u00a0basic example of retrieving records from a module. The select() method can be used on the SugarQuery object to specify the specific fields you wish to retrieve from the query.\n//Alter the Selected Fields\n$sugarQuery->select(array('id', 'name'));\nArguments\nName\nType\nRequired\nDescription\n$fields\nArray\nfalse\nSets the fields that should be added to the SELECT portion of the SQL query\nReturns\nSugarQuery_Builder_Select Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-4", "text": "Returns\nSugarQuery_Builder_Select Object\nYou cannot chain SugarQuery methods off of the select() method, however, you can use the returned Select object to modify the SELECT portion of the statement. Review the\u00c2\u00a0SugarQuery_Builder_Select object in ./include/SugarQuery/Builder/Select.php for additional information on usage.\nwhere()\nTo add a WHERE clause to the query, use the where() method to generate the Where object, and then use method chaining with the various helper methods to add conditions. To add a\u00c2\u00a0WHERE clause for records with the\u00c2\u00a0name field containing\u00c2\u00a0the letter \"I\", you could add\u00c2\u00a0the following code.\u00c2\u00a0\n//add the where clause\n$sugarQuery->where()->contains('name', 'I');\nArguments\nNone\nReturns\nSugarQuery_Builder_Where Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-5", "text": "Arguments\nNone\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object as shown above.\u00c2\u00a0Review the SugarQuery Conditions documentation for a\u00c2\u00a0full spectrum of where() method usage.\nRelationships\njoin()\nTo add data from a related module to the SugarQuery, use the join() method. Adding to the same SugarQuery code example in this page, the\u00c2\u00a0following code would\u00c2\u00a0add the JOIN from Accounts module tables to Contacts table:\n//add join\n$sugarQuery->join('contacts');\nArguments\nName\nType\nRequired\nDescription\n$link_name\nString\ntrue\nThe name of the relationship\n$options\nArray\nfalse\n\u00c2\u00a0\nAn associative array that can specify any\u00c2\u00a0of the following options:\nalias - string -\u00c2\u00a0The alias for the module table in the generated SQL query", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-6", "text": "alias - string -\u00c2\u00a0The alias for the module table in the generated SQL query\nrelatedJoin -\u00c2\u00a0string\u00c2\u00a0- If joining to a secondary table (related to a related module), such as joining on Opportunities related to Contacts, when querying from Accounts, you can specify either the name of the relationship or the alias you specified for that relationship table.\nReturns\nSugarQuery_Builder_Join Object\nAllows for method chaining on the SugarQuery_Builder_Join Object, to add additional conditions to the WHERE clause of the SQL condition.\u00c2\u00a0\njoinTable()\nIf you were using the joinRaw() method in previous versions of Sugar, this is the replacement method which allows for joining to a\u00c2\u00a0related table in SugarQuery. Adding to the same SugarQuery code example in this page, the\u00c2\u00a0following code would\u00c2\u00a0add the JOIN from Accounts module tables to the\u00c2\u00a0accounts_contacts\u00c2\u00a0table:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-7", "text": "//add join\n$sugarQuery->joinTable('accounts_contacts', array('alias' => 'ac'))->on()\n ->equalsField('accounts.id','ac.account_id')\n ->equals('ac.primary_account',1);\nArguments\nName\nType\nRequired\nDescription\n$table_name\nString\ntrue\nThe name of the database table to join.\u00c2\u00a0\n$options\nArray\nfalse\n\u00c2\u00a0\nAn associative array that can specify any\u00c2\u00a0of the following options:\nalias - string -\u00c2\u00a0The alias for the module table in the generated SQL query\nReturns\nSugarQuery_Builder_Join Object\nAllows for method chaining on the SugarQuery_Builder_Join Object, to add additional conditions to the ON\u00c2\u00a0clause using the on() method.\u00c2\u00a0\nAltering Results", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-8", "text": "Altering Results\nAltering\u00c2\u00a0the result set of a query can help the performance, as well as be crucial to finding the correct data. The following methods provide ways to limit the result set and change the order.\ndistinct()\nTo group the query on a field, you can use the corresponding distinct() method.\n//add group by\n$sugarQuery->distinct(true);\nArguments\nName\nType\nRequired\nDescription\n$value\nBoolean\ntrue\nSet whether or not the DISTINCT statement should be added to the query\nReturns\nCurrent SugarQuery Object\nAllows for method chaining on the SugarQuery Object.\nlimit()\nTo limit the results of the query, you can use the limit() method.\u00c2\u00a0\n//set the limit \n$sugarQuery->limit(10);\nArguments\nName\nType\nRequired\nDescription\n$number\nInteger\ntrue", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-9", "text": "Arguments\nName\nType\nRequired\nDescription\n$number\nInteger\ntrue\nThe max amount of rows that should be returned by the query\nReturns\nCurrent SugarQuery Object\nAllows for method chaining on the SugarQuery Object.\noffset()\nAdding a limit to the query limits the rows returned, however when doing so, you may need to alter the offset of the query to account for pagination or access other portions of the result set. To set an offset, you can use the offset() method.\n//set the offset\n$sugarQuery->offset(5);\nArguments\nName\nType\nRequired\nDescription\n$number\nInteger\ntrue\nThe\u00c2\u00a0offset amount of rows, or starting point, of the result\nReturns\nCurrent SugarQuery Object\nAllows for method chaining on the SugarQuery Object.\norderBy()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-10", "text": "Allows for method chaining on the SugarQuery Object.\norderBy()\nTo order\u00c2\u00a0the query on a field, you can use the corresponding orderBy() method. This method can be called multiple times, to add multiple fields to the order by clause\u00c2\u00a0of the query.\n//add group by\n$sugarQuery->orderBy('account_type');\nArguments\nName\nType\nRequired\nDescription\n$column\nString\ntrue\nThe\u00c2\u00a0field you want the query to be grouped on\n$direction\nString\nfalse\nSets the direction of sorting. Must be 'ASC' or 'DESC'. The default is 'DESC'.\nReturns\nCurrent SugarQuery Object\nAllows for method chaining on the SugarQuery Object.\nExecution", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-11", "text": "Current SugarQuery Object\nAllows for method chaining on the SugarQuery Object.\nExecution\nOnce you have the SugarQuery object setup and configured for your statement, you will want to retrieve the results of the query, or simply get the generated query for the object. The following methods are used for executing the SugarQuery object.\nexecute()\nTo query the database for a result set, you will use the execute() method. The execute() method will retrieve the results and return them as a raw string, db object, json, or an array depending on the $type parameter. By default, results are returned as an array. An example of fetching records from an account is below:\n//fetch the result\n$result = $sugarQuery->execute();\nThe execute() function will return an array of results that you can iterate through as shown below:\nArray\n(\n [0] => Array\n (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-12", "text": "Array\n(\n [0] => Array\n (\n [id] => f39593da-3f88-3059-4f18-524b4d23d07b\n [name] => International Art Inc\n )\n)\nNote:\u00c2\u00a0An empty resultset will return an empty array.\nArguments\nName\nType\nRequired\nDescription\n$type\nString\nfalse\nHow you want the results of the Query returned. Can be one of the following options:\ndb\u00c2\u00a0- Returns the result directly from the DatabaseManager resource\narray\u00c2\u00a0-\u00c2\u00a0Default\u00c2\u00a0- Returns the results as a formatted array\njson - Returns the results encoded as JSON\nReturns\nDefault:\u00c2\u00a0Array.\u00c2\u00a0See above argument details for details on other Return options.\ncompile()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-13", "text": "compile()\nIf you want to log the query being generated or want to output the query without running it during development, the compile() method is what should be used retrieve the Prepared Statement. You can then retrieve the Prepared Statement Object to retrieve the Parameterized SQL and the Parameters. For further information on Prepared Statement usage, see our Database documentation.\n//get the compiled prepared statement\n$preparedStmt = $sugarQuery->compile();\n//Retrieve the Parameterized SQL\n$sql = $preparedStmt->getSQL();\n//Retrieve the parameters as an array\n$parameters = $preparedStmt->getParameters();\nArguments\nNo arguments\nReturns\nObject\nThe compiled SQL Query built by the SugarQuery object.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "970a6d403fd8-14", "text": "No arguments\nReturns\nObject\nThe compiled SQL Query built by the SugarQuery object.\nTopicsSugarQuery ConditionsLearn about the various methods that can be utilized with SugarQuery to add conditional statements to a query.Advanced TechniquesLearn about some of the advanced methods that SugarQuery has to offer, that are not as commonly used.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/index.html"} {"id": "0419c92f8e19-0", "text": "SugarQuery Conditions\nOverview\nLearn about the various methods that can be utilized with SugarQuery to add conditional statements to a query.\u00c2\u00a0\nWhere Clause\nManipulating, the WHERE clause of a SugarQuery object is crucial for getting the correct results. To create a WHERE clause on the query, use the where() method on the SugarQuery object, as outlined in the SugarQuery documentation. Once you have the Where object, you can utilize the following methods on the Where object to add conditional statements.\nequals() | notEquals()\nUsed to equate a field to a given value. Wildcards will not work with this function, as it is looking for an exact match.\n//add equals\n$SugarQuery->where()->equals('name','Test');\n//add Not Equals\n$SugarQuery->where()->notEquals('name','Tester');\nArguments\nName\nType\nRequired\nDescription\n$field", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-1", "text": "Arguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value\nString\ntrue\nThe value the field should be equal to\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\nequalsField() | notEqualsField()\nUsed to equate a field to another field in the result set.\n//add an Equals Field statement\n$SugarQuery->where()->equalsField('industry','account_type');\n//add a Not Equals Field statement\n$SugarQuery->where()->notEqualsField('name','account_type');\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$field\nString\ntrue", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-2", "text": "true\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$field\nString\ntrue\nThe other field you want the first field to be equal to\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\nisEmpty() | isNotEmpty()\nUsed to check if a field is or isn't empty.\n//add an isEmpty statement \n$SugarQuery->where()->isEmpty('industry'); \n//add an isNotEmpty statement \n$SugarQuery->where()->isNotEmpty('name');\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\nisNull() | notNull()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-3", "text": "isNull() | notNull()\nUsed to check if a field is or isn't equal to NULL.\n//add an isNull statement \n$SugarQuery->where()->isNull('industry');\n \n//add a notNull statement \n$SugarQuery->where()->notNull('name');\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\ncontains() | notContains()\nUsed to check if a field has or doesn't have a specified string in its value. Utilizes the LIKE statement, and wildcards on both sides of the provided string.\n//add an isNull statement \n$SugarQuery->where()->contains('name','Test');", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-4", "text": "$SugarQuery->where()->contains('name','Test');\n//add a notNull statement \n$SugarQuery->where()->notContains('industry','Test');\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value\nString\ntrue\nThe string\u00c2\u00a0being searched for in the value of the field\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where\u00c2\u00a0Object to add additional conditions.\u00c2\u00a0\nstarts() | ends()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-5", "text": "starts() | ends()\nSimilar to the above contains() method, these\u00c2\u00a0methods use the LIKE statement in the SQL query and wildcards for searching for a specified string in the field's value. However,\u00c2\u00a0the starts() and ends() methods only wildcard the right side and the left side, respectively. The following example demonstrates searching for records where the Name field starts with A, and ends with E.\n//add an starts and ends statement \n$SugarQuery->where()->starts('name','A')->ends('name','e');\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value\nString\ntrue\nThe string\u00c2\u00a0being searched for in the value of the field\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-6", "text": "Allows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\nin() | notIn()\nUsed to check if a field's value is or isn't one of a set of specified values. The following examples look\u00c2\u00a0for records where the industry field\u00c2\u00a0is in a list of values, and not in a separate list of values.\n$values = array(\n 'Support',\n 'Sales',\n 'Engineering'\n);\n//add in statement\n$SugarQuery->where()->in('industry',$values);\n$values = array(\n 'Marketing',\n 'Accounting'\n);\n//add NotIn Statement\n$SugarQuery->where()->notIn('industry',$values);\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking\u00c2\u00a0\n$values\nArray\ntrue", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-7", "text": "true\nThe\u00c2\u00a0field you are checking\u00c2\u00a0\n$values\nArray\ntrue\nThe array of values which the field is being checked against\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\nbetween()\nUsed primarily for numeric type fields, to check if the value is greater than the minimum number specified\u00c2\u00a0and less than the maximum number specified. The following code would check for records where the employees field is between 50 and 1000.\n//add Between statement\n$SugarQuery->where()->between('employees',50,1000);\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$min\nNumber\ntrue\nThe lowest number the field's value should be\n$max\nNumber\ntrue\nThe highest number the field's value should be\nReturns", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-8", "text": "$max\nNumber\ntrue\nThe highest number the field's value should be\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\nlt() | lte() | gt() | gte()\nThese methods\u00c2\u00a0are primarily for numeric fields, to check if a field's value is less than (<), less than or equal (<=), greater than (>), or greater than or equal (>=) to a specified value.\n//Add Less Than Statement\n$SugarQuery->where()->lt('gross_revenue',1000000);\n//Add Less Than or Equal to Statement\n$SugarQuery->where()->lte('net_revenue','500000');\n//Add Greater Than Statement\n$SugarQuery->where()->gt('gross_revenue',500000);\n//Add Greater Than or Equal to Statement", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-9", "text": "//Add Greater Than or Equal to Statement\n$SugarQuery->where()->gte('net_revenue',100000);\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value\nNumber\ntrue\nThe numeric value for comparison\u00c2\u00a0\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\ndateRange()\nUsed to check if a field's value is between\u00c2\u00a0a preset date range from the current time. See the TimeDate documentation on the available date range keys.\n//add DateRange statement\n$SugarQuery->where()->dateRange('date_modified','last_30_days');\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-10", "text": "String\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value\nString\ntrue\nThe string\u00c2\u00a0specifying the date range key that will be used for comparison. Example\u00c2\u00a0'next_7_days'\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object to add additional conditions.\u00c2\u00a0\ndateBetween()\nTo group the query on a field, you can use the corresponding groupBy() method. This method can be called multiple times, to add multiple fields to the grouping of the query.\n//add group by\n$SugarQuery->where()->dateBetween('date_created',array('2016-01-01','2016-03-01'));\nArguments\nName\nType\nRequired\nDescription\n$field\nString\ntrue\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value\nArray\ntrue", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-11", "text": "true\nThe\u00c2\u00a0field you are checking against\u00c2\u00a0\n$value\nArray\ntrue\nAn array containing the minimum date in the first key, and the maximum date in the second.\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where\u00c2\u00a0Object to add additional conditions.\u00c2\u00a0\nCombinations\nNow that you have reviewed all of the available conditional statements for SugarQuery, you may want to combine them using AND and OR all within the same query. By default when the where() method is called, chained conditional methods will be added with AND to the where clause. You can specify an OR where clause on the main SugarQuery object by using the orWhere() method, which works the same as the where() method, just adds conditional statements with OR instead. The following methods allow for adding internal AND and OR logic to conditional statements on the Where object.\nqueryAnd()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-12", "text": "queryAnd()\nTo start a group of conditional statements that should all\u00c2\u00a0evaluate to True, use the queryAnd() method.\u00c2\u00a0For example, if you want to query for Accounts, where the name contains 'Test' AND description contains 'Test', you might use the following code:\n$SugarQuery = new SugarQuery();\n$SugarQuery->select(array('name'));\n$SugarQuery->from(BeanFactory::newBean('Accounts'));\n//Using queryAnd \n$SugarQuery->where()->queryAnd()->contains('name','Test')->contains('description','Test');\nThe above use of queryAnd() method isn't entirely needed, as the main Where object would be using AND for all conditions anyway, but it does group the two conditions inside of their own parenthesis in the compiled query, as shown below, to demonstrate how it can be used for altering query logic.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-13", "text": "SELECT accounts.name name FROM accounts WHERE accounts.deleted = 0 AND (accounts.name LIKE '%Test%' AND accounts.description LIKE '%Test%')\nqueryOr()\nTo start a group of conditional statements that should evaluate to true, if any condition is true, you can use the queryOr() method. For example, if you want to query for Accounts, where the name contains 'Test' or where the description contains 'Test', you might use the following code:\n$SugarQuery = new SugarQuery(); \n$SugarQuery->select(array('name')); \n$SugarQuery->from(BeanFactory::newBean('Accounts')); \n//Using queryOr \n$SugarQuery->where()->queryOr()->contains('name','Test')->contains('description','Test');", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "0419c92f8e19-14", "text": "This will group the two conditions inside of their own parenthesis in the compiled query.\u00c2\u00a0If either\u00c2\u00a0of the conditions is\u00c2\u00a0True, it will return a record. An example is shown below.\nSELECT accounts.name name FROM accounts WHERE accounts.deleted = 0 AND (accounts.name LIKE '%Test%' OR accounts.description LIKE '%Test%')\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/SugarQuery_Conditions/index.html"} {"id": "552f00edfbe6-0", "text": "Advanced Techniques\nOverview\nLearn about some of the advanced methods that SugarQuery has to offer, that are not as commonly used.\nGet First Record\nGetting the first record in a result set, can be accomplished by using the limit() method. The getOne() method is similar in that it gets the first record, but it also returns the first piece of data for that record.\u00c2\u00a0\ngetOne()\nGet the first piece of data on the first record returned by the generated query. In this example, we want the 'name' from the Account with a given ID.\n$SugarQuery = new SugarQuery();\n$SugarQuery->select(array('name'));\n$SugarQuery->from(BeanFactory::newBean('Accounts'));\n$SugarQuery->where()->equals('id',$id);\n//Get the Name of the account\n$accountName = $SugarQuery->getOne();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-1", "text": "$accountName = $SugarQuery->getOne();\nAggregates\nsetCountQuery()\nCurrently, the only method available for creating an aggregate column, is the setCountQuery() method on the SugarQuery_Builder_Select Object. You can add this method to your select() method chain, to add count(0) as record_count to the SQL SELECT statement.\n$SugarQuery = new SugarQuery();\n$SugarQuery->select(array('name'))->setCountQuery();\n$SugarQuery->from(BeanFactory::newBean('Accounts'));\n$SugarQuery->groupByRaw('accounts.name');\nThe above example will output the following prepared statement when using compile():\nSELECT accounts.name, COUNT(0) AS record_count FROM accounts WHERE accounts.deleted = ? GROUP BY accounts.name, accounts.name\nParameters\narray (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-2", "text": "Parameters\narray (\n [1] => 0\n)\nArguments\nNo arguments\nReturns\nSugarQuery_Builder_Select Object\nAllows for method chaining on the Select\u00c2\u00a0Object.\nJoins\nJoining to tables and joining via SugarBean relationships is outlined in the SugarQuery documentation, however the SugarQuery_Builder_Join Object has a few helpful methods not mentioned there.\njoinName()\nIf you are not using a custom alias for the relationship or table, you may want to retrieve the generated name used by SugarQuery to add a conditions or join to.\n$SugarQuery = new SugarQuery();\n$SugarQuery->from(BeanFactory::getBean('Accounts'));\n$contacts = $SugarQuery->join('contacts')->joinName();\n$SugarQuery->select(array(\"$contacts.full_name\"));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-3", "text": "$SugarQuery->select(array(\"$contacts.full_name\"));\n$SugarQuery->where()->equals('industry', 'Media');\nThe above example will output the following prepared statement when using compile():", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-4", "text": "The above example will output the following prepared statement when using compile():\nSELECT jt0_contacts.salutation rel_full_name_salutation, jt0_contacts.first_name rel_full_name_first_name, jt0_contacts.last_name rel_full_name_last_name FROM accounts INNER JOIN accounts_contacts jt1_accounts_contacts ON (accounts.id = jt1_accounts_contacts.account_id) AND (jt1_accounts_contacts.deleted = ?) INNER JOIN contacts jt0_contacts ON (jt0_contacts.id = jt1_accounts_contacts.contact_id) AND (jt0_contacts.deleted = ?) WHERE (accounts.industry = ?) AND (accounts.deleted = ?)\nParameters:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-5", "text": "Parameters:\narray (\n [1] => 0\n [2] => 0\n [3] => Media\n [4] => 0\n)\n\u00c2\u00a0\nArguments\nNo arguments\nReturns\nstring\nThe name used in Query to identify the joined table\nUnions\nUnions allow joining multiple queries with the same selected fields to be combined during output. You can use Unions in SugarQuery by using the union() method.\nunion()\nTo add a union, you can use the corresponding union() method. The example below will join two SQL queries:\n//Fetch the bean of the module to query\n$bean = BeanFactory::newBean('Accounts');\n//Specify fields to fetch\n$fields = array(\n 'id',\n 'name'\n);\n//Create first query\n$sq1 = new SugarQuery();\n$sq1->select($fields);", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-6", "text": "$sq1 = new SugarQuery();\n$sq1->select($fields);\n$sq1->from($bean, array('team_security' => false));\n$sq1->Where()->in('account_type', array('Customer'));\n//Create second query\n$sq2 = new SugarQuery();\n$sq2->select($fields);\n$sq2->from($bean, array('team_security' => false));\n$sq2->Where()->in('account_type', array('Investor'));\n//Create union\n$sqUnion = new SugarQuery();\n$sqUnion->union($sq1);\n$sqUnion->union($sq2);\n$sqUnion->limit(5);\nThe above example will output the following prepared statement when using compile():", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-7", "text": "The above example will output the following prepared statement when using compile():\nSELECT accounts.id, accounts.name FROM accounts WHERE (accounts.account_type IN (?)) AND (accounts.deleted = ?) UNION ALL SELECT accounts.id, accounts.name FROM accounts WHERE (accounts.account_type IN (?)) AND (accounts.deleted = ?) LIMIT 5\nParameters:\narray (\n [1] => Customer\n [2] => 0\n [3] => Investor\n [4] => 0\n)\nArguments\nName\nType\nRequired\nDescription\n$select\u00c2\u00a0\nSugarQuery\ntrue\nThe SugarQuery Object you wish to add to the UNION query\n$all\nBoolean\nfalse\nWhether to use UNION ALL or just UNION in the query. The default value is TRUE.\nReturns\nSugarQuery_Builder_Union Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-8", "text": "Returns\nSugarQuery_Builder_Union Object\nAllows for method chaining on the Union\u00c2\u00a0Object.\nHaving\nWhen using aggregates in a query, you might want to filter out values based on a condition. SugarQuery provides the having() method for adding HAVING clause to the query.\nhaving()\nTo use the having() method, you have to build a SugarQuery_Builder_Condition Object and set the field, operator, and value that condition is based on.\n$SugarQuery = new SugarQuery();\n$SugarQuery->from(BeanFactory::getBean('Accounts'));\n$SugarQuery->join('contacts', array('alias' => 'industryContacts'));\n$SugarQuery->join('opportunities', array('relatedJoin' => 'industryContacts', 'alias' => 'contactsOpportunities'));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-9", "text": "$SugarQuery->select()->setCountQuery();\n$SugarQuery->where()->equals('contactsOpportunities.sales_stage', 'closed');\n$havingCondition = new SugarQuery_Builder_Condition($SugarQuery);\n$havingCondition->setField('contactsOpportunities.amount')->setOperator('>')->setValues('1000');\n$SugarQuery->having($havingCondition);\nThe above example will output the following prepared statement when using compile():", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-10", "text": "SELECT COUNT(0) AS record_count FROM accounts INNER JOIN accounts_contacts jt0_accounts_contacts ON (accounts.id = jt0_accounts_contacts.account_id) AND (jt0_accounts_contacts.deleted = ?) INNER JOIN contacts industryContacts ON (industryContacts.id = jt0_accounts_contacts.contact_id) AND (industryContacts.deleted = ?) INNER JOIN opportunities_contacts jt1_opportunities_contacts ON jt1_opportunities_contacts.deleted = ? INNER JOIN opportunities contactsOpportunities ON (contactsOpportunities.id = jt1_opportunities_contacts.opportunity_id) AND (contactsOpportunities.deleted = ?) WHERE", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-11", "text": "AND (contactsOpportunities.deleted = ?) WHERE (contactsOpportunities.sales_stage = ?) AND (accounts.deleted = ?) HAVING contactsOpportunities.amount > ?", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-12", "text": "Parameters:\narray (\n [1] => 0\n [2] => 0\n [3] => 0\n [4] => 0\n [5] => closed\n [6] => 0\n [7] => 1000\n)\nArguments\nName\nType\nRequired\nDescription\n$condition\u00c2\u00a0\nSugarQuery_Builder_Condition\ntrue\nThe conditional object used to generate the HAVING clause\nReturns\nSugarQuery_Builder_Having Object\nAllows for method chaining on the Having\u00c2\u00a0Object to add additional conditions.\nRaw Methods\nThe SugarQuery Object has a few helper methods that allow raw SQL statement parts to be passed into. This allows for more complex statements or edge case scenarios where a helper function may not have met the requirements for the query.\u00c2\u00a0\nwhereRaw()", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-13", "text": "whereRaw()\nTo add to the WHERE clause of SugarQuery Object with raw SQL syntax, you can utilize the whereRaw() method. This method will append the specified statement, to the WHERE clause using an AND operator, and will wrap the entire statement in parenthesis. The following is an example use with the output:\n$SugarQuery = new SugarQuery();\n$SugarQuery->select(array('name'));\n$SugarQuery->from(BeanFactory::newBean('Accounts'));\n$SugarQuery->whereRaw(\"name LIKE '%T%'\");\nThe above example will output the following prepared statement when using compile():\nSELECT accounts.name FROM accounts WHERE (name LIKE '%T%') AND (accounts.deleted = ?)\nParameters:\narray (\n [1] => 0\n)\nArguments\nName\nType\nRequired\nDescription\n$sql\nString\ntrue", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-14", "text": ")\nArguments\nName\nType\nRequired\nDescription\n$sql\nString\ntrue\nThe\u00c2\u00a0WHERE clause SQL\u00c2\u00a0to be appended to the where clause on the SugarQuery object. All conditions passed in are wrapped in parenthesis and appended using AND (if other conditions exist on where clause).\nReturns\nSugarQuery_Builder_Where Object\nAllows for method chaining on the Where object.\ngroupByRaw()\nTo add multiple fields to the GROUP BY statement on the SugarQuery Object, it may be easiest to use the groupByRaw() method.\n$SugarQuery = new SugarQuery(); \n$SugarQuery->select(array('account_type', 'industry')); \n$SugarQuery->from(BeanFactory::newBean('Accounts'));\n$SugarQuery->groupByRaw(\"accounts.account_type,accounts.industry\");", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-15", "text": "The above example will output the following prepared statement when using compile():\nSELECT accounts.account_type, accounts.industry FROM accounts WHERE accounts.deleted = ? GROUP BY accounts.account_type,accounts.industry\nParameters:\narray (\n [1] => 0\n)\nArguments\nName\nType\nRequired\nDescription\n$sql\nString\ntrue\nThe GROUP BY statement, without the GROUP BY keyword.\u00c2\u00a0\nReturns\nSugarQuery Object\nAllows for method chaining on the SugarQuery Object.\norderByRaw()\nUsing the oderBy() method only allows for adding a single field to the SugarQuery object at a time. In some cases, you might consider using the orderByRaw() method to add multiple fields or the entire ORDER BY statement to the SugarQuery object.\u00c2\u00a0\n$SugarQuery = new SugarQuery();\n$SugarQuery->select(array('name'));", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-16", "text": "$SugarQuery->select(array('name'));\n$SugarQuery->from(BeanFactory::newBean('Accounts'));\n$SugarQuery->orderByRaw(\"accounts.name DESC, accounts.date_modified\");\nThe above example will output the following prepared statement when using compile():\nSELECT accounts.name FROM accounts WHERE accounts.deleted = ? ORDER BY accounts.name DESC, accounts.date_modified DESC, accounts.id DESC\nParameters:\narray (\n [1] => 0\n)\nArguments\nName\nType\nRequired\nDescription\n$sql\nString\ntrue\nThe ORDER BY statement, without the ORDER BY keyword.\nReturns\nSugarQuery Object\nAllows for method chaining on the SugarQuery Object.\nhavingRaw()\nUsing the havingRaw() method allows for adding a having statement\u00c2\u00a0to the SugarQuery object.\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-17", "text": "$SugarQuery = new SugarQuery();\n$SugarQuery->from(BeanFactory::getBean('Accounts'));\n$SugarQuery->join('contacts', array('alias' => 'industryContacts'));\n$SugarQuery->join('opportunities', array('relatedJoin' => 'industryContacts', 'alias' => 'contactsOpportunities'));\n$SugarQuery->select()->setCountQuery();\n$SugarQuery->where()->equals('contactsOpportunities.sales_stage', 'closed');\n$SugarQuery->havingRaw(\"contactsOpportunities.amount > 1000\");\nThe above example will output the following prepared statement when using compile():", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-18", "text": "SELECT COUNT(0) AS record_count FROM accounts INNER JOIN accounts_contacts jt0_accounts_contacts ON (accounts.id = jt0_accounts_contacts.account_id) AND (jt0_accounts_contacts.deleted = ?) INNER JOIN contacts industryContacts ON (industryContacts.id = jt0_accounts_contacts.contact_id) AND (industryContacts.deleted = ?) INNER JOIN opportunities_contacts jt1_opportunities_contacts ON jt1_opportunities_contacts.deleted = ? INNER JOIN opportunities contactsOpportunities ON (contactsOpportunities.id = jt1_opportunities_contacts.opportunity_id) AND (contactsOpportunities.deleted = ?) WHERE", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-19", "text": "AND (contactsOpportunities.deleted = ?) WHERE (contactsOpportunities.sales_stage = ?) AND (accounts.deleted = ?) HAVING contactsOpportunities.amount > 1000", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "552f00edfbe6-20", "text": "Parameters:\narray (\n [1] => 0\n [2] => 0\n [3] => 0\n [4] => 0\n [5] => closed\n [6] => 0\n)\nArguments\nName\nType\nRequired\nDescription\n$sql\nString\ntrue\nThe HAVING\u00c2\u00a0statement, without the HAVING\u00c2\u00a0keyword.\nReturns\nSugarQuery Object\nAllows for method chaining on the SugarQuery Object.\u00c2\u00a0\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/SugarQuery/Advanced_Techniques/index.html"} {"id": "215dc5710dcf-0", "text": "DBManager\nOverview\nThe DBManager Object provides an interface for working with the database.\nInstantiating the DBManager Object\nThe DBManagerFactory class, located in ./include/database/DBManagerFactory.php,\u00c2\u00a0can help instantiate a DBManager object using the getInstance() method.\n$db = \\DBManagerFactory::getInstance();\nFor best practices, we recommend using the global DBManager Object:\n$GLOBALS['db']\nQuerying The Database\nSugar supports prepared statements. The following sections outline the legacy usage and the newly prepared statement usage.\nSELECT queries\nFor select queries that do not have a dynamic portion of the where clause, you can use the query()\u00c2\u00a0method on the DBManager object. For queries that are accepting data passed into the system in the where clause, the following examples demonstrate how best utilize the new Prepared Statement functionality.\nLegacy:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-1", "text": "Legacy:\n$id = '1234-abcde-fgh45-6789';\n$query = 'SELECT * FROM accounts WHERE id = ' . $GLOBALS['db']->quoted($id);\n$results = $GLOBALS['db']->query($query);\nBest Practice:\nUse the getConnection() method to retrieve a Doctrine Connection Object which handles prepared statements.\n$id = '1234-abcde-fgh45-6789';\n$query = 'SELECT * FROM accounts WHERE id = ?';\n$conn = $GLOBALS['db']->getConnection(); \n$result = $conn->executeQuery($query, [$id]);\nIn the case that query logic is variable or conditionally built then it makes sense to use Doctrine QueryBuilder directly.\nLegacy:\n$query = 'SELECT * FROM accounts'; \nif ($status !== null) {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-2", "text": "$query = 'SELECT * FROM accounts'; \nif ($status !== null) {\n\t$query .= ' WHERE status = ' . $GLOBALS['db']->quoted($status);\n}\n$results = $GLOBALS['db']->query($query);\nBest Practice:\nUse the getConnection() method to retrieve the Doctrine Connection Object, and then use the createQueryBuilder() method on the Connection Object to retrieve the QueryBuilder Object.\n$builder = $GLOBALS['db']->getConnection()->createQueryBuilder();\n$builder->select('*')->from('accounts');\nif ($status !== null) {\n\t$builder->where('status = ' . $builder->createPositionalParameter($status));\n}\n$result = $builder->executeQuery();\nRetrieving Results\nLegacy:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-3", "text": "}\n$result = $builder->executeQuery();\nRetrieving Results\nLegacy:\nAfter using the\u00c2\u00a0query()\u00c2\u00a0method, such as in the Legacy code examples above, you can use the\u00c2\u00a0fetchByAssoc() method to retrieve results. The query() method will submit the query and retrieve the results while the fetchByAssoc() method will iterate through the results:\n$sql = \"SELECT id FROM accounts WHERE deleted = 0\";\n$result = $GLOBALS['db']->query($sql);\nwhile($row = $GLOBALS['db']->fetchByAssoc($result) )\n{\n //Use $row['id'] to grab the id fields value\n $id = $row['id'];\n}\nBest Practice:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-4", "text": "$id = $row['id'];\n}\nBest Practice:\nWhen using Prepared Statements, both the Doctrine Query Builder and the Doctrine Connection Object will return a Doctrine\\DBAL\\Result Object to allow iterating through the results of the query. You can use the fetchNumeric()\u00c2\u00a0,\u00c2\u00a0fetchAssociative() or fetchAllNumeric()\u00c2\u00a0or fetchAllAssociative() methods to retrieve results.\nfetchAllAssociative() Example\nThe fetchAllAssociative() method will return the entire result set as an associative array, with each index containing a row of data.\n$conn = $GLOBALS['db']->getConnection();\n$result = $conn->executeQuery(\"SELECT * FROM accounts\");\nforeach ($result->iterateAssociative() as $row) {\n $name = $row['name'];\n // do something\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-5", "text": "$name = $row['name'];\n // do something\n}\niterateAssociativeIndexed() Example\nThe iterateAssociativeIndexed() method executes the query and iterate over the result with the key representing the first column and the value is an associative array of the rest of the columns and their values:\n$query = 'SELECT id, name FROM accounts';\n$conn = $GLOBALS['db']->getConnection();\nforeach ($conn->iterateAssociativeIndexed($query) as $id => $data) {\n // ...\n}\nRetrieving a Single Result\nTo retrieve a single result from the database, such as a specific record field, you can use the getOne() method for Legacy query usage.\n$sql = \"SELECT name FROM accounts WHERE id = :id\";\n$conn = $GLOBALS['db']->getConnection();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-6", "text": "$conn = $GLOBALS['db']->getConnection();\n$row = $conn->fetchAssociative($sql, ['id' => $id]);\n// alternative\n$sql = \"SELECT name FROM accounts WHERE id = '{$id}'\";\n$name = $GLOBALS['db']->getOne($sql);\nLimiting Results\nTo limit the results of a query, you can add a limit to the SQL string or for legacy query usage you can use the limitQuery() method on the DBManager Object:\nLegacy:\n$sql = \"SELECT id FROM accounts WHERE deleted = 0\";\n$offset = 0;\n$limit = 1;\n$result = $GLOBALS['db']->limitQuery($sql, $offset, $limit);\nwhile($row = $GLOBALS['db']->fetchByAssoc($result) )\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-7", "text": "{\n //Use $row['id'] to grab the id fields value\n $id = $row['id'];\n}\nPrepared Statements:\nWhen using the Doctrine Query Builder, you can limit the results of the query by using the\u00c2\u00a0setMaxResults() method.\n$builder = $GLOBALS['db']->getConnection()->createQueryBuilder();\n$builder->select('*')->from('accounts');\nif ($status !== null) {\n\t$builder->where('status = ' . $builder->createPositionalParameter($status)); \n}\n$builder->setMaxResults(2);\n$result = $builder->executeQuery();\nINSERT queries\nINSERT queries\u00c2\u00a0can be easily performed using DBManager class.\nLegacy:\n$query = 'INSERT INTO table (foo, bar) VALUES (\"foo\", \"bar\")';", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-8", "text": "$GLOBALS['db']->query($query);\nBest Practice:\n$fieldDefs = $GLOBALS['dictionary']['table']['fields'];\n$GLOBALS['db']->insertParams('table', $fieldDefs, ['foo' => 'foo','bar' => 'bar']);\nUPDATE queries\nWhen updating records with known IDs or a set of records with simple filtering criteria, then DBManager can be used:\nLegacy:\n$query = 'UPDATE table SET foo = \"bar\" WHERE id = ' . $GLOBALS['db']->quoted($id);\n$GLOBALS['db']->query($query);\nBest Practice:\n$fieldDefs = $GLOBALS['dictionary']['table']['fields'];", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-9", "text": "$GLOBALS['db']->updateParams('table', $fieldDefs, ['foo' => 'bar',], ['id' => $id]);\nFor more complex criteria\u00c2\u00a0or when column values contain expressions or references to other fields in the table then Doctrine QueryBuilder can be used.\nLegacy:\n$query = 'UPDATE table SET foo = \"bar\" WHERE foo = \"foo\" OR foo IS NULL';\n$GLOBALS['db']->query($query);\nBest Practice:\n$query = 'UPDATE table SET foo = ? WHERE foo = ? OR foo IS NULL';\n$conn = $GLOBALS['db']->getConnection();\n$rowCount = $conn->executeStatement($query, ['bar', 'foo']);\nGenerating SQL Queries from SugarBean\nTo have Sugar automatically generate SQL queries, you can use the following\u00c2\u00a0methods from the bean class.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "215dc5710dcf-10", "text": "Select Queries\nTo create a select query you can use the create_new_list_query() method:\n$bean = BeanFactory::newBean($module);\n$order_by = '';\n$where = '';\n$fields = array(\n 'id',\n 'name',\n);\n$sql = $bean->create_new_list_query($order_by, $where, $fields);\nCount Queries\nYou can also run the generated SQL through the create_list_count_query() method to generate a count query:\n$bean = BeanFactory::newBean('Accounts');\n$sql = \"SELECT * FROM accounts WHERE deleted = 0\";\n$count_sql = $bean->create_list_count_query($sql);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Database/DBManager/index.html"} {"id": "1a48afb368db-0", "text": "Subpanels\nOverview\nFor Sidecar, Sugar's subpanel layouts have been modified to work as simplified metadata.\u00c2\u00a0This page is an\u00c2\u00a0overview of the metadata framework for subpanels.\u00c2\u00a0\nThe reason for this change is that previous versions of Sugar generated the metadata from various sources such as the SubPanelLayout and MetaDataManager classes. This eliminates the need for generating and processing the layouts and allows the metadata to be easily loaded to Sidecar.\nNote:\u00c2\u00a0Modules running in backward compatibility mode do not use the Sidecar subpanel layouts as they use the legacy MVC framework.\nHierarchy Diagram\nWhen loading the Sidecar subpanel layouts, the system processes the layout in the following manner:\nNote: The Sugar application's client type is \"base\". For more information on the various client types, please refer to\u00c2\u00a0the User Interface page.\nSubpanels and Subpanel Layouts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-1", "text": "Subpanels and Subpanel Layouts\nSugar contains both a subpanels (plural) layout and a subpanel (singular) layout. The subpanels layout contains the collection of subpanels,\u00c2\u00a0whereas\u00c2\u00a0the subpanel layout renders the actual subpanel widget.\nAn example of a stock module's subpanels layout is:\n./modules/Bugs/clients/base/layouts/subpanels/subpanels.php\n array (\n array (\n 'layout' => 'subpanel',\n 'label' => 'LBL_DOCUMENTS_SUBPANEL_TITLE',\n 'context' => array (\n 'link' => 'documents',\n ),\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-2", "text": "'link' => 'documents',\n ),\n ),\n array (\n 'layout' => 'subpanel',\n 'label' => 'LBL_CONTACTS_SUBPANEL_TITLE',\n 'context' => array (\n 'link' => 'contacts',\n ),\n ),\n array (\n 'layout' => 'subpanel',\n 'label' => 'LBL_ACCOUNTS_SUBPANEL_TITLE',\n 'context' => array (\n 'link' => 'accounts',\n ),\n ),\n array (\n 'layout' => 'subpanel',\n 'label' => 'LBL_CASES_SUBPANEL_TITLE',\n 'context' => array (\n 'link' => 'cases',\n ),\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-3", "text": "'link' => 'cases',\n ),\n ),\n ),\n 'type' => 'subpanels',\n 'span' => 12,\n);\nYou can see that the layout incorporates the use of the subpanel layout for each module. As most of the subpanel data is similar, this approach allows us to use less duplicate code. The subpanel layout, shown below, shows the three views that make up the subpanel widgets users see.\n./clients/base/layouts/subpanel/subpanel.php\n array (\n array (\n 'view' => 'panel-top',\n )\n array (\n 'view' => 'subpanel-list',\n ),\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-4", "text": "'view' => 'subpanel-list',\n ),\n array (\n 'view' => 'list-bottom',\n ),\n ),\n 'span' => 12,\n 'last_state' => array(\n 'id' => 'subpanel'\n ),\n);\nAdding Subpanel Layouts\nWhen a new relationship is deployed from Studio, the relationship creation process will generate the layouts using the extension framework. You should note that for stock relationships and custom deployed relationships, layouts are generated for both Sidecar and Legacy MVC Subpanel formats. This is done to ensure that any related modules, whether in Sidecar or Backward Compatibility mode, display a related subpanel as expected.\nSidecar Layouts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-5", "text": "Sidecar Layouts\nCustom Sidecar layouts, located in ./custom/Extension/modules//Ext/clients//layouts/subpanels/, are compiled into ./custom/modules//Ext/clients//layouts/subpanels/subpanels.ext.php using the extension framework. When a relationship is saved, layout files are created for both the \"base\" and \"mobile\" client types.\nFor example, deploying a 1:M relationship from Bugs to Leads will generate the following Sidecar files:\n./custom/Extension/modules/Bugs/Ext/clients/base/layouts/subpanels/bugs_leads_1_Bugs.php\n 'subpanel',\n 'label' => 'LBL_BUGS_LEADS_1_FROM_LEADS_TITLE',\n 'context' =>\n array (\n 'link' => 'bugs_leads_1',\n ),\n);\n./custom/Extension/modules/Bugs/Ext/clients/mobile/layouts/subpanels/bugs_leads_1_Bugs.php\n 'subpanel',\n 'label' => 'LBL_BUGS_LEADS_1_FROM_LEADS_TITLE',\n 'context' =>\n array (\n 'link' => 'bugs_leads_1',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-7", "text": "array (\n 'link' => 'bugs_leads_1',\n ),\n);\nNote: The additional legacy MVC layouts generated by a relationships deployment are described below.\nLegacy MVC Subpanel Layouts\nCustom Legacy MVC Subpanel layouts, located in ./custom/Extension/modules//Ext/Layoutdefs/, are compiled into ./custom/modules//Ext/Layoutdefs/layoutdefs.ext.php using the extension framework. You should also note that when a relationship is saved, wireless layouts, located in ./custom/Extension/modules//Ext/WirelessLayoutdefs/, are created and compiled into ./custom/modules//Ext/Layoutdefs/layoutdefs.ext.php.\nAn example of this is when deploying a 1-M relationship from Bugs to Leads, the following layoutdef files are generated:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-8", "text": "./custom/Extension/modules/Bugs/Ext/Layoutdefs/bugs_leads_1_Bugs.php\n 100,\n 'module' => 'Leads',\n 'subpanel_name' => 'default',\n 'sort_order' => 'asc',\n 'sort_by' => 'id',\n 'title_key' => 'LBL_BUGS_LEADS_1_FROM_LEADS_TITLE',\n 'get_subpanel_data' => 'bugs_leads_1',\n 'top_buttons' =>\n array (\n 0 =>\n array (\n 'widget_class' => 'SubPanelTopButtonQuickCreate',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-9", "text": "array (\n 'widget_class' => 'SubPanelTopButtonQuickCreate',\n ),\n 1 =>\n array (\n 'widget_class' => 'SubPanelTopSelectButton',\n 'mode' => 'MultiSelect',\n ),\n ),\n);\n./custom/Extension/modules/Bugs/Ext/WirelessLayoutdefs/bugs_leads_1_Bugs.php\n 100,\n 'module' => 'Leads',\n 'subpanel_name' => 'default',\n 'title_key' => 'LBL_BUGS_LEADS_1_FROM_LEADS_TITLE',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-10", "text": "'get_subpanel_data' => 'bugs_leads_1',\n);\nFields Metadata\nSidecar's subpanel field layouts are initially defined by the subpanel list-view metadata.\nHierarchy Diagram\nThe subpanel list metadata is loaded in the following manner:\nNote: The Sugar application's client type is \"base\". For more information on the various client types, please refer to\u00c2\u00a0the User Interface page.\nSubpanel List Views\nBy default, all modules come with a default set of subpanel fields for when they are rendered as a subpanel. An example of this is can be found in the Bugs module:\n./modules/Bugs/clients/base/views/subpanel-list/subpanel-list.php\n\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-11", "text": "'full_name' =>\n array (\n 'type' => 'fullname',\n 'link' => true,\n 'studio' =>\n array (\n 'listview' => false,\n ),\n 'vname' => 'LBL_NAME',\n 'width' => '10%',\n 'default' => true,\n ),\n 'date_entered' =>\n array (\n 'type' => 'datetime',\n 'studio' =>\n array (\n 'portaleditview' => false,\n ),\n 'readonly' => true,\n 'vname' => 'LBL_DATE_ENTERED',\n 'width' => '10%',\n 'default' => true,\n ),\n 'refered_by' =>\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-12", "text": "),\n 'refered_by' =>\n array (\n 'vname' => 'LBL_LIST_REFERED_BY',\n 'width' => '10%',\n 'default' => true,\n ),\n 'lead_source' =>\n array (\n 'vname' => 'LBL_LIST_LEAD_SOURCE',\n 'width' => '10%',\n 'default' => true,\n ),\n 'phone_work' =>\n array (\n 'vname' => 'LBL_LIST_PHONE',\n 'width' => '10%',\n 'default' => true,\n ),\n 'lead_source_description' =>\n array (\n 'name' => 'lead_source_description',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-13", "text": "array (\n 'name' => 'lead_source_description',\n 'vname' => 'LBL_LIST_LEAD_SOURCE_DESCRIPTION',\n 'width' => '10%',\n 'sortable' => false,\n 'default' => true,\n ),\n 'assigned_user_name' =>\n array (\n 'name' => 'assigned_user_name',\n 'vname' => 'LBL_LIST_ASSIGNED_TO_NAME',\n 'widget_class' => 'SubPanelDetailViewLink',\n 'target_record_key' => 'assigned_user_id',\n 'target_module' => 'Employees',\n 'width' => '10%',\n 'default' => true,\n ),\n 'first_name' =>\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-14", "text": "),\n 'first_name' =>\n array (\n 'usage' => 'query_only',\n ),\n 'last_name' =>\n array (\n 'usage' => 'query_only',\n ),\n 'salutation' =>\n array (\n 'name' => 'salutation',\n 'usage' => 'query_only',\n ),\n);\nTo modify this layout, navigate to Admin > Studio > {Parent Module} > Subpanels > Bugs and make your changes. Once saved, Sugar will generate ./custom/modules/Bugs/clients//views/subpanel-for-/subpanel-for-.php which will be used for rendering the fields you selected.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "1a48afb368db-15", "text": "You should note that, just as Sugar mimics the Sidecar layouts in the legacy MVC framework for modules in backward compatibility, it also mimics the field list in ./modules//metadata/subpanels/default.php and ./custom/modules//metadata/subpanels/default.php. This is done to ensure that any related modules, whether in Sidecar or Backward Compatibility mode, display the same field list as expected.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Subpanels/index.html"} {"id": "67bbc2cd8d8d-0", "text": "Modules\nOverview\nHow modules are defined and used within the system\nModule Definitions\nThe module definitions, defined in ./include/modules.php, determine\u00c2\u00a0how modules are displayed and used throughout the application. Any custom metadata, whether from a plugin or a custom module, should be loaded through the Include\u00c2\u00a0extension.\u00c2\u00a0Prior to 6.3.x, module definitions could be added by creating the file ./include/modules_override.php. This method of creating module definitions is still compatible but is not recommended from a best practices standpoint.\u00c2\u00a0\nHierarchy Diagram\nThe modules metadata are loaded in the following manner:\n$moduleList\nThe $moduleList is an array containing a list of modules in the system. The format of the array is to have a numeric index and a value of the modules unique key.\n$moduleList[] = 'Accounts';\n$beanList", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Modules/index.html"} {"id": "67bbc2cd8d8d-1", "text": "$moduleList[] = 'Accounts';\n$beanList\nThe $beanList variable is an array that stores a list of all active beans (modules) in the application. The format of the array is array('' => '');. The $beanList key is used to lookup values in the $beanFiles variable.\n$beanList['Accounts'] = 'Account';\n$beanFiles\nThe $beanFiles variable is an array used to reference the class files for a bean. The format of the array is array('' => '');. The bean name, stored in singular form, is a reference to the class name of the object, which is looked up from the $beanList 'key'.\n$beanFiles['Account'] = 'modules/Accounts/Account.php';\n$modInvisList", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Modules/index.html"} {"id": "67bbc2cd8d8d-2", "text": "$modInvisList\nThe $modInvisList variable\u00c2\u00a0removes a module from the navigation tab in the MegaMenu, reporting, and it's subpanels under related modules.To enable a hidden module for reporting, you can use\u00c2\u00a0$report_include_modules.\u00c2\u00a0To enable a hidden modules\u00c2\u00a0subpanels on related modules, you can use\u00c2\u00a0$modules_exempt_from_availability_check.\u00c2\u00a0The\u00c2\u00a0\n$modInvisList[] = 'Prospects';\n$modules_exempt_from_availability_check\nThe\u00c2\u00a0$modules_exempt_from_availability_check variable is used in conjunction with\u00c2\u00a0$modInvisList. When a module has been removed from the MegaMenu view with $modInvisList,\u00c2\u00a0this will allow for the display of the modules subpanels under related modules.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Modules/index.html"} {"id": "67bbc2cd8d8d-3", "text": "$modules_exempt_from_availability_check['OAuthKeys'] = 'OAuthKeys';\n$report_include_modules\n\u00c2\u00a0The\u00c2\u00a0$report_include_modules\u00c2\u00a0variable is used in conjunction with\u00c2\u00a0$modInvisList. When a module has been hidden with $modInvisList,\u00c2\u00a0this will allow for the module to be enabled for reporting.\n$report_include_modules['Prospects'] = 'Prospect';\n$adminOnlyList\nThe $adminOnlyList variable is an extra level of security for modules that are can be accessed only by administrators through the Admin page. Specifying all will restrict all actions to be admin only.\n$adminOnlyList['PdfManager'] = array(\n 'all' => 1\n);\n$bwcModules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Modules/index.html"} {"id": "67bbc2cd8d8d-4", "text": "'all' => 1\n);\n$bwcModules\nThe $bwcModules variable determines which modules are in backward compatibility mode. More information on backward compatibility can be found in the Backward Compatibility section.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Modules/index.html"} {"id": "76209d3901ad-0", "text": "Relationships\nOverview\nRelationships are the basis for linking information within the system. This page\u00c2\u00a0explains the various aspects of relationships. For information on custom relationships, please refer to the Custom Relationships documentation.\nDefinitions\nRelationships are initially defined in the module's vardefs file under the relationships array. For reference, you can find them using the vardef path\u00c2\u00a0./modules//vardefs.php.\nDatabase Structure", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/index.html"} {"id": "76209d3901ad-1", "text": "Database Structure\nIn Sugar, most relationships are stored using a joining table. This applies to both one-to-many (1:M) relationships as well as many-to-many (M:M) relationships. An example of this is the relationship between Accounts and Opportunities where there are three tables:\u00c2\u00a0accounts,\u00c2\u00a0accounts_opportunities,\u00c2\u00a0and\u00c2\u00a0opportunities.\u00c2\u00a0You will find that the joining table,\u00c2\u00a0accounts_opportunities,\u00c2\u00a0will contain the fields needed in order to establish the relationship link.\nThe fields on the accounts_opportunities\u00c2\u00a0table are listed below:\nFields\nDescription\nid\nA unique identifier for the relationship row (not typically used)\nopportunity_id\nThe ID for the related opportunity\u00c2\u00a0record. This is\u00c2\u00a0named uniquely based on the relationship\naccount_id", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/index.html"} {"id": "76209d3901ad-2", "text": "account_id\nThe ID for the related account\u00c2\u00a0record. This is named uniquely based on the relationship\ndate_modified\nThe date the row was last modified\ndeleted\nWhether or not the relationship still exists\nRelationship Cache\nAll relationships in Sugar are compiled into the cache directory ./cache/Relationships/relationships.cache.php.\u00c2\u00a0If needed, the relationships cache can be rebuilt by navigating to\u00c2\u00a0Admin > Repair > Rebuild Relationships.\nTopicsCustom RelationshipsThis page needs an overview\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/index.html"} {"id": "f867468fb5f3-0", "text": "Custom Relationships\nOverview\nThis page needs an overview\nCreating Custom Relationships\nRelationships are initially defined in the module's vardefs file under the relationships array. For reference, you can find them using the vardef path as follows:\n./modules//vardefs.php\nCustom relationships are created in a different way using the Extension Framework. The process requires two steps which are explained in the following sections:\nDefining the Relationship MetaData\nDefining the Relationship in the TableDictionary\nDefining the Relationship MetaData\nThe definitions for custom relationships will be found in a path similar to:\n./custom/metadata/MetaData.php\nThis file will contain the $dictionary information needed for the system to generate the relationship. The $dictionary array will contain the following:\nIndex\nType\nDescription\ntrue_relationship_type\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "f867468fb5f3-1", "text": "Index\nType\nDescription\ntrue_relationship_type\nString\nThe relationship's structure (possible values: 'one-to-many' or 'many-to-many')\nfrom_studio\nBoolean\nWhether the relationship was created in Studio\ntable\nString\nThe name of the table that is created in the database to contain the link ids\nfields\nArray\nAn array of fields to be created on the relationship join table\nindices\nArray\nThe list of indexes to be created\nrelationships\nArray\nAn array defining relationships\nrelationships.\nArray\nThe array defining the relationship\nrelationships..lhs_module\nString\nLeft-hand module (should match $beanList index)\nrelationships..lhs_table\nString\nLeft-hand table name\nrelationships..lhs_key\nString\nThe key to use from the table on the left", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "f867468fb5f3-2", "text": "String\nThe key to use from the table on the left\nrelationships..rhs_module\nString\nRight-hand module (should match $beanList index)\nrelationships..rhs_table\nString\nRight-hand table name\nrelationships..rhs_key\nString\nThe key to use from the table on the right\nrelationships..relationship_type\nString\nThe relationship type, typically stored as 'many-to-many'\nrelationships..join_table\nString\nThe join table\nrelationships..join_key_lhs\nString\nLeft table key, should exist in table field definitions above\nrelationships..join_key_rhs\nString\nRight\u00c2\u00a0table key, should exist in table field definitions above\nMetaData Example\nCreating a custom 1:M relationship between Accounts and Contacts will yield the following metadata file:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "f867468fb5f3-3", "text": "Creating a custom 1:M relationship between Accounts and Contacts will yield the following metadata file:\n./custom/metadata/accounts_contacts_1MetaData.php\n 'one-to-many',\n 'from_studio' => true,\n 'relationships' =>\n array (\n 'accounts_contacts_1' =>\n array (\n 'lhs_module' => 'Accounts',\n 'lhs_table' => 'accounts',\n 'lhs_key' => 'id',\n 'rhs_module' => 'Contacts',\n 'rhs_table' => 'contacts',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "f867468fb5f3-4", "text": "'rhs_table' => 'contacts',\n 'rhs_key' => 'id',\n 'relationship_type' => 'many-to-many',\n 'join_table' => 'accounts_contacts_1_c',\n 'join_key_lhs' => 'accounts_contacts_1accounts_ida',\n 'join_key_rhs' => 'accounts_contacts_1contacts_idb',\n ),\n ),\n 'table' => 'accounts_contacts_1_c',\n 'fields' =>\n array (\n 0 =>\n array (\n 'name' => 'id',\n 'type' => 'varchar',\n 'len' => 36,\n ),\n 1 =>\n array (\n 'name' => 'date_modified',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "f867468fb5f3-5", "text": "1 =>\n array (\n 'name' => 'date_modified',\n 'type' => 'datetime',\n ),\n 2 =>\n array (\n 'name' => 'deleted',\n 'type' => 'bool',\n 'len' => '1',\n 'default' => '0',\n 'required' => true,\n ),\n 3 =>\n array (\n 'name' => 'accounts_contacts_1accounts_ida',\n 'type' => 'varchar',\n 'len' => 36,\n ),\n 4 =>\n array (\n 'name' => 'accounts_contacts_1contacts_idb',\n 'type' => 'varchar',\n 'len' => 36,\n ),\n ),\n 'indices' =>", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "f867468fb5f3-6", "text": "),\n ),\n 'indices' =>\n array (\n 0 =>\n array (\n 'name' => 'accounts_contacts_1spk',\n 'type' => 'primary',\n 'fields' =>\n array (\n 0 => 'id',\n ),\n ),\n 1 =>\n array (\n 'name' => 'accounts_contacts_1_ida1',\n 'type' => 'index',\n 'fields' =>\n array (\n 0 => 'accounts_contacts_1accounts_ida',\n ),\n ),\n 2 =>\n array (\n 'name' => 'accounts_contacts_1_alt',\n 'type' => 'alternate_key',\n 'fields' =>\n array (", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "f867468fb5f3-7", "text": "'fields' =>\n array (\n 0 => 'accounts_contacts_1contacts_idb',\n ),\n ),\n ),\n);\nDefining the Relationship in the TableDictionary\nOnce a relationship's metadata has been created, the metadata file will have a reference placed in the TableDictionary:\n./custom/Extension/application/Ext/TableDictionary/.php\nThis file will contain an 'include' reference to the metadata file:\nMetaData.php');\n?>\nTableDictionary Example\nThe custom 1:M relationship between Accounts and Contacts will yield the following TableDictionary file:\n./custom/Extension/application/Ext/TableDictionary/accounts_contacts_1.php\n\nIf you have created the\u00c2\u00a0relationship through Studio, the files above will be automatically created. If you are manually creating the files, run a Quick Repair and Rebuild and run any SQL scripts generated. The Quick Repair and Rebuild will rebuild the file map and relationship cache as well as populate the relationship in the relationships table.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Data_Framework/Relationships/Custom_Relationships/index.html"} {"id": "1752ad426ce1-0", "text": "Integration\nOverview\nHow to integrate with Sugar APIs\nTopicsBest PracticesBest practices when integrating and migrating Sugar.Web ServicesDocumentation on Sugar Web Service APIs.ExternalResourceClientDocumentation on ExternalResourceClient, which replaces cURL.MigrationInformation on migrating data and Sugar instances.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/index.html"} {"id": "bd537fde4923-0", "text": "Web Services\nOverview\nWeb Services allow for communication between different applications and platforms. Sugar currently supports REST and SOAP APIs. The following sections will outline how to interact with the APIs and what versions of the API we recommend for use.\nVersioning\nAPI versioning is the process of creating a new set of API endpoints for new functionality while leaving pre-existing endpoints available for third-party applications and integrations to continue using. This helps to extend the application in an upgrade-safe manner.\nQuick Reference\nWhen working with the Web Service API, you should be using the latest REST API specific to your release. A quick reference of this can be found below:\nRelease1\nREST Version\nREST URL\nSOAP Version2\nSOAP URL\n13.0.x\nv11.20\n/rest/v11_20/\nv4.1\n/service/v4_1/soap.php", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "bd537fde4923-1", "text": "v4.1\n/service/v4_1/soap.php\n12.3.x\nv11.19\n/rest/v11_19/\nv4.1\n/service/v4_1/soap.php\n12.2.x\nv11.18\n/rest/v11_18/\nv4.1\n/service/v4_1/soap.php\n12.1.x\nv11.17\n/rest/v11_17/\nv4.1\n/service/v4_1/soap.php\n12.0.x\nv11.16\n/rest/v11_16/\nv4.1\n/service/v4_1/soap.php\n11.3.x\nv11.15\n/rest/v11_15/\nv4.1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "bd537fde4923-2", "text": "v11.15\n/rest/v11_15/\nv4.1\n/service/v4_1/soap.php\n11.2.x\nv11.14\n/rest/v11_14/\nv4.1\n/service/v4_1/soap.php\n11.1.x\nv11.13\n/rest/v11_13/\nv4.1\n/service/v4_1/soap.php\n11.0.x\nv11.12\n/rest/v11_12/\nv4.1\n/service/v4_1/soap.php\n10.3.x\nv11.11\n/rest/v11_11/\nv4.1\n/service/v4_1/soap.php\n10.2.x\nv11.10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "bd537fde4923-3", "text": "10.2.x\nv11.10\n/rest/v11_10/\nv4.1\n/service/v4_1/soap.php\n10.1.x\nv11.9\n/rest/v11_9/\nv4.1\n/service/v4_1/soap.php\n10.0.x\nv11.8\n/rest/v11_8/\nv4.1\n/service/v4_1/soap.php\n9.3.x\nv11.7\n/rest/v11_7/\nv4.1\n/service/v4_1/soap.php\n9.2.x\nv11.6\n/rest/v11_6/\nv4.1\n/service/v4_1/soap.php\n9.1.x", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "bd537fde4923-4", "text": "/service/v4_1/soap.php\n9.1.x\nv11.5\n/rest/v11_5/\nv4.1\n/service/v4_1/soap.php\n9.0.x\nv11.4\n/rest/v11_4/\nv4.1\n/service/v4_1/soap.php\n8.3.x\nv11.4\n/rest/v11_4/\nv4.1\n/service/v4_1/soap.php\n8.2.x\nv11.3\n/rest/v11_3/\nv4.1\n/service/v4_1/soap.php\n8.1.x\nv11.2\n/rest/v11_2/\nv4.1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "bd537fde4923-5", "text": "v11.2\n/rest/v11_2/\nv4.1\n/service/v4_1/soap.php\n8.0.x\nv11.1\n/rest/v11_1/\nv4.1\n/service/v4_1/soap.php\n7.11.x\nv11\n/rest/v11/\nv4.1\n/service/v4_1/soap.php\n7.10.x\nv11\n/rest/v11/\nv4.1\n/service/v4_1/soap.php\n7.9.x\nv10\n/rest/v10/\nv4.1\n/service/v4_1/soap.php\n7.8.x\nv10\n/rest/v10/\nv4.1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "bd537fde4923-6", "text": "v10\n/rest/v10/\nv4.1\n/service/v4_1/soap.php\n7.7.x\nv10\n/rest/v10/\nv4.1\n/service/v4_1/soap.php\n6.5.x\nv4.1\n/service/v4_1/rest.php\nv4.1\n/service/v4_1/soap.php\n1 Some of the releases in this table may no longer be officially-supported Sugar versions, but we have included them for archival purposes. For more information, please refer to the Supported Versions resource page. 2 As of Sugar 7.0, SOAP support is no longer offered with the new APIs. The legacy APIs will remain accessible in the product, however, any existing integrations should be updated to use the latest REST endpoints.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "bd537fde4923-7", "text": "TopicsREST APIv10 - v11.20 API documentation.Legacy APIv1 - v4.1 API documentation.\n \tLast modified: 2023-04-05 00:07:43", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/index.html"} {"id": "2e68d0eb06bb-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nLegacy API\nOverview\nv1 - v4.1 API\u00c2\u00a0documentation.\nSOAP VS REST\nThere are significant differences between how the legacy REST and SOAP protocols function on an implementation level (e.g. Performance, response size, etc). Deciding which protocol to use is up to the individual developer and is beyond the scope of this guide. Starting in SugarCRM version 6.2.0, there are some deviations between the protocols with the v4 API. There are additional core calls that are only made available through the REST protocol. They are listed below:\nget_module_layout\nget_module_layout_md5\nget_quotes_pdf method\nget_report_pdf method\nsnip_import_emails\nsnip_update_contacts\njob_queue_cycle\njob_queue_next", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/index.html"} {"id": "2e68d0eb06bb-1", "text": "snip_update_contacts\njob_queue_cycle\njob_queue_next\njob_queue_run\noauth_access method\noauth_access_token\noauth_request_token\nREST\nREST stands for 'Representational State Transfer'. This protocol is used by Sugar to exchange information both internally and externally.\nHow do I access the REST service?\nThe legacy REST services in SugarCRM and be found by navigating to:\nhttp://{site url)/service/{version}/rest.php\nWhere 'site url' is the URL of your Sugar instance and 'version' is the latest version of the API specific to your release of Sugar. You can find out more about versioning in the Web Services documentation.\nInput / Output Datatypes\nThe default input / output datatype for REST is JSON / PHP serialize.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/index.html"} {"id": "2e68d0eb06bb-2", "text": "The default input / output datatype for REST is JSON / PHP serialize.\nThese datatype files, SugarRestJSON.php and SugarRestSerialize.php, are in:\n./service/core/REST/\nDefining your own Datatypes\nYou can also define you own datatype. To do this, you need to create a new file such as:\n./service/core/REST/SugarRest.php\nNext, you will need to override generateResponse() and serve() functions. The Serve function decodes or unserializes the appropriate datatype based on the input type; the generateResponse function encodes or serializes it based on the output type.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/index.html"} {"id": "2e68d0eb06bb-3", "text": "See service/test.html for more examples on usage. In this file, the getRequestData function, which generates URL with json, is both the input_type and the response_type. That is, the request data from the JavaScript to the server is JSON and response data from server is also JSON. You can mix and match any datatype as input and output. For example, you can have JSON as the input_type and serialize as the response_type based on your application's requirements.\nREST Failure Response\nIf a call failure should occur, the result will be as shown below:\nName\nType\nDescription\nname\nString\nError message.\nnumber\nInteger\nError number.\ndescription\nString\nDescription of error.\nSOAP\nSOAP stands for 'Simple Object Access Protocol'. SOAP is a simple XML-based protocol that is used to allow applications to exchange information.\nHow do I access the SOAP service?", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/index.html"} {"id": "2e68d0eb06bb-4", "text": "How do I access the SOAP service?\nThe legacy SOAP service in SugarCRM and be found by navigating to:\nhttp://{sugar_url)/service/{version}/soap.php\nWhere 'sugar_url' is the url of your Sugar instance and 'version' is the latest version of the API specific to your release of Sugar. You can find out more about versioning in the section titled 'API: Versioning'. The default WSDL is formatted as rpc/encoded.\nWS-I 1.0 Compliancy\nSugar supports generating a URL that is WS-I compliant. When accessing the soap entry point, you can access the WSDL at:\nhttp://{sugar_url)/service/{version}/soap.php?wsdl", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/index.html"} {"id": "2e68d0eb06bb-5", "text": "By default, the WSDL is formatted as rpc/encoded, however, this can be changed by specifying a 'style' and 'use' url-paramater. An example of this is:\nhttp://{sugar_url)/service/{version}/soap.php?wsdl&style=rpc&use=literal\nURL Parameters\nstyle\nrpc\nuse\nencoded\nliteral\nValidation\nThis WSDL (rpc/literal) was successfully verified against Apache CXF 2.2.\nSOAP Failure Response\nIf a call failure should occur, the result will be as shown below:\nName\nType\nDescription\nfaultcode\nInteger\nFault ID.\nfaultactor\nString\nProvides information about what caused the fault to happen.\nfaultstring\nString\nFault Message.\ndetail\nString\nDescription of fault.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/index.html"} {"id": "2e68d0eb06bb-6", "text": "faultstring\nString\nFault Message.\ndetail\nString\nDescription of fault.\nTopicsWhat is NuSOAP?NuSOAP is a SOAP Toolkit for PHP that doesn't require PHP extensions.MethodsWeb Service Method Calls.REST Release NotesLists changes between the different versions of the REST API.SOAP Release NotesLists changes between the different versions of the SOAP API.SugarHttpClientThe SugarHttpClient class is used to make REST calls.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/index.html"} {"id": "3e00018ef0d9-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nWhat is NuSOAP?\nOverview\nNuSOAP is a SOAP Toolkit for PHP that doesn't require PHP extensions.\nWhere Can I Get It?\nNuSOAP can be downloaded from\u00c2\u00a0http://nusoap.sourceforge.net\nHow Do I Use It?\nAfter you have downloaded NuSOAP, you will need to extract the zip file contents to a storage directory. Once extracted, you will reference \"lib/nusoap.php\" in your PHP SOAP application.\nExample\n array(\n 'user_name' => 'username',\n 'password' => md5('password'),\n ),\n );\n $json = json_encode($parameters);\n $postArgs = array(\n 'method' => 'login',\n 'input_type' => 'JSON',\n 'response_type' => 'JSON',\n 'rest_data' => $json,\n );\n $postArgs = http_build_query($postArgs);\n // Make the REST call, returning the result\n $response = $client->callRest($url, $postArgs);\n if ( $response === false )\n {\n die(\"Request failed.\\n\");\n }\n // Convert the result from JSON format to a PHP array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SugarHttpClient/index.html"} {"id": "bb86442a12a6-2", "text": "}\n // Convert the result from JSON format to a PHP array\n $result = json_decode($response);\n if ( !is_object($result) )\n {\n die(\"Error handling result.\\n\");\n }\n if ( !isset($result->id) )\n {\n die(\"Error: {$result->name} - {$result->description}\\n.\");\n }\n // Get the session id\n $sessionId = $result->id;\n?>\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SugarHttpClient/index.html"} {"id": "ca5abdc4c07a-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nMethods\nWeb Service Method Calls.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/index.html"} {"id": "ca5abdc4c07a-1", "text": "Topicsget_available_modulesRetrieves a list of available modules in the system.get_document_revisionRetrieves a specific document revision.get_entriesRetrieves a list of beans based on specified record IDs.get_entries_countRetrieves a list of beans based on query specifications.get_entryRetrieves a single bean based on record ID.get_entry_listRetrieves a list of beans based on query specifications.get_language_definitionRetrieves the language label strings for the specified modules.get_last_viewedRetrieves a list of recently viewed records by module for the current user.get_modified_relationshipsRetrieves a list of modified relationships between a specific date range. Helps facilitate sync operations for users.get_module_fieldsRetrieves the list of field vardefs for a specific module.get_module_fields_md5Retrieves the", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/index.html"} {"id": "ca5abdc4c07a-2", "text": "for a specific module.get_module_fields_md5Retrieves the MD5 hash of the vardefs for the specified modules.get_module_layoutRetrieves the layout metadata for a given module given a specific type and view.get_module_layout_md5Retrieves the MD5 hash value for a layout given a specific module, type and view.get_note_attachmentRetrieves an attachment associated with a specific note record.get_quotes_pdfGenerates a quote PDF for a specific quote.get_relationshipsRetrieves a specific relationship link for a specified record.get_report_entriesRetrieves a list of report entries based on specified record IDs.get_report_pdfGenerates a PDF for a specific report.get_server_infoRetrieves info about the SugarCRM instance.get_upcoming_activitiesRetrieves a list of upcoming activities for the current", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/index.html"} {"id": "ca5abdc4c07a-3", "text": "instance.get_upcoming_activitiesRetrieves a list of upcoming activities for the current user.get_user_idRetrieves the id of the user currently logged in.get_user_team_idRetrieves the ID of the default team of the user who is logged into the current session.job_queue_cycleRuns through the scheduler cleanup process and cycles the scheduler jobs.job_queue_nextRetrieves the next job from the job queue and marks it as 'In Progress'.job_queue_runRuns the specified job.loginLogs a user into the SugarCRM application.logoutLogs a user out of the SugarCRM application.oauth_accessRetrieves the OAuth access token.seamless_loginVerifies that a session is authenticated.search_by_moduleSearches modules for a string and returns matched records.set_campaign_mergeHandles campaign log entry", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/index.html"} {"id": "ca5abdc4c07a-4", "text": "modules for a string and returns matched records.set_campaign_mergeHandles campaign log entry creation for mail-merge activity given a specified campaign.set_document_revisionCreates a new document revision for a specific document record.set_entriesCreate or update a list of records.set_entryCreates or updates a specific record.set_note_attachmentCreates an attachment and associated it to a specific note record.set_relationshipSets relationships between two records. You can relate multiple records to a single record using this.set_relationshipsSets multiple relationships between mulitiple record sets.snip_import_emailsUsed to imports an email record from the SNIP archiving service.snip_update_contactsRetrieves new contact emails since a timestamp for the current user.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/index.html"} {"id": "ca5abdc4c07a-5", "text": "Last modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/index.html"} {"id": "568be5adaccd-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nset_entry\nOverview\nCreates or updates a specific record.\nAvailable APIs\nSOAP\nREST\nDefinition\nset_entry(session, module_name, name_value_list)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nname_value_list\nname_value_list | Array\nThe name/value list of the record attributes.\nResult\nName\nType\nDescription\nresult\nnew_set_entry_result | Array\nThe call result.\nresult.id\nString\nThe ID of the record that was created/updated.\nChange Log\nVersion\nChange\nv2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_entry/index.html"} {"id": "568be5adaccd-1", "text": "Change Log\nVersion\nChange\nv2\nReturn type was changed from set_entry_result to new_set_entry_result.\nConsiderations\nTo update an existing record, you will need to specify 'id' in the name_value_list parameter.\nTo create a new record with a specific ID, you will need to set 'new_with_id' in the name_value_list parameter.\nExamples\nPHP\n$set_entry_parameters = array(\n //session id\n \"session\" => $session_id,\n //The name of the module from which to retrieve records.\n \"module_name\" => \"Accounts\",\n //Record attributes\n \"name_value_list\" => array(\n //to update a record\n /*\n array(\n \"name\" => \"id\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_entry/index.html"} {"id": "568be5adaccd-2", "text": "/*\n array(\n \"name\" => \"id\",\n \"value\" => \"da0b107d-cfbc-cb08-4f90-50b7b9cb9ad7\"\n ),\n */\n //to create a new record with a specific ID\n /*\n array(\n \"name\" => \"new_with_id\",\n \"value\" => true\n ),\n */\n array(\n \"name\" => \"name\",\n \"value\" => \"Example Account\"\n ),\n ),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_entry/index.html"} {"id": "ea46524c2068-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_document_revision\nOverview\nRetrieves a specific document revision.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_document_revision(session, i)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\ni\nString\nThe ID of the document revision.\nResult\nName\nType\nDescription\nresult\nnew_return_document_revision| Array\nThe call result.\nresult.document_revision\nArray\nThe details of the document revision.\nresult.document_revision.id\nString\nThe document ID.\nresult.document_revision.document_name\nString\nThe document name.\nresult.document_revision.revision\nString\nThe document revision number\nresult.document_revision.filename\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_document_revision/index.html"} {"id": "ea46524c2068-1", "text": "String\nThe document revision number\nresult.document_revision.filename\nString\nThe filename of the file.\nresult.document_revision.file\nString\nThe binary contents of the file.\nChange Log\nVersion\nChange\nv2\nReturn type was changed from return_document_revision to new_return_document_revision.\nExamples\nPHP\n$get_document_revision_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The attachment details\n \"i\" => '723b7dcb-27b3-e53d-b348-50bd283f8e48',\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_document_revision/index.html"} {"id": "e2a0afbf7277-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_note_attachment\nOverview\nRetrieves an attachment associated with a specific note record.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_note_attachment(session, id)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nid\nString\nThe ID of the note record to associate the attachment to.\nResult\nName\nType\nDescription\nresult\nnew_return_note_attachment | Array\nThe call result.\nresult.note_attachment\nArray\nThe details of the file attachment.\nresult.note_attachment.id\nString\nThe ID of the note record / attachment.\nresult.note_attachment.filename\nString\nThe filename of the attachment.\nresult.note_attachment.file\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_note_attachment/index.html"} {"id": "e2a0afbf7277-1", "text": "String\nThe filename of the attachment.\nresult.note_attachment.file\nString\nThe binary contents of the file.\nresult.note_attachment.related_module_id\nString\nThe related parent ID.\nresult.note_attachment.related_module_name\nString\nThe related parent module.\nChange Log\nVersion\nChange\nv2\nReturn type was changed from return_note_attachment to new_return_note_attachment.\nExamples\nPHP\n$get_note_attachment_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The ID of the note containing the attachment.\n 'id' => \"9057784d-de17-4f28-c5f9-50bd0f260a43\",\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_note_attachment/index.html"} {"id": "1815ad168f61-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_entry\nOverview\nRetrieves a single bean based on record ID.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_entry(session, module_name, id, select_fields, link_name_to_fields_array, track_view)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nid\nString\nThe ID of the record to retrieve.\nselect_fields\nselect_fields | Array\nThe list of fields to be returned in the results. Specifying an empty array will return all fields.\nlink_name_to_fields_array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry/index.html"} {"id": "1815ad168f61-1", "text": "link_name_to_fields_array\nlink_names_to_fields_array | Array\nA list of link names and the fields to be returned for each link.\ntrack_view\nBoolean\nFlag the record as a recently viewed item.\nResult\nName\nType\nDescription\nresult\nget_entry_result_version2 | Array\nThe call result.\nresult.entry_list\nArray\nThe record's name-value pair for the simple datatypes excluding the link field data. If you do not have access to the object, entry_list[].name_value_list will notify you.\nresult.relationship_list\nArray\nThe records link field data.\nChange Log\nVersion\nChange\nv3_1\nAdded track_view parameter.\nv2\nAdded link_name_to_fields_array parameter.\nv2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry/index.html"} {"id": "1815ad168f61-2", "text": "v2\nAdded link_name_to_fields_array parameter.\nv2\nReturn type was changed from get_entry_result to get_entry_result_version2.\nExamples\nPHP\n$get_entry_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => \"Contacts\",\n //The ID of the record to retrieve.\n 'id' => \"18df70e4-1422-8bff-6f5f-50aa571fe4e5\",\n //The list of fields to be returned in the results\n 'select_fields' => array(\n 'id',\n 'first_name',\n 'last_name',\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry/index.html"} {"id": "1815ad168f61-3", "text": "'first_name',\n 'last_name',\n ),\n //A list of link names and the fields to be returned for each link name\n 'link_name_to_fields_array' => array(\n array(\n 'name' => 'email_addresses',\n 'value' => array(\n 'email_address',\n 'opt_out',\n 'primary_address'\n ),\n ),\n ),\n //Flag the record as a recently viewed item\n 'track_view' => true,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry/index.html"} {"id": "c8ed3720cb2d-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\njob_queue_run\nOverview\nRuns the specified job.\nAvailable APIs\nREST\nDefinition\njob_queue_run(session, jobid, clientid)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\njobid\nString\nThe ID of the job to run.\nclientid\nString\nThe client id calling the application. This parameter is of your choosing for the calling application.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.results\nBoolean\nThe result of the job run.\nresult.message\nString\nThis is only returned if a failure occurs.\nChange Log\nVersion\nChange\nv4\nAdded job_queue_run method.\nExamples\nPHP", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/job_queue_run/index.html"} {"id": "c8ed3720cb2d-1", "text": "Change\nv4\nAdded job_queue_run method.\nExamples\nPHP\n$job_queue_run_parameters = array(\n //Session id\n 'session' => $session_id,\n //The ID of the job to run.\n 'jobid' => 'd141efd3-d2c7-8a9c-9c02-50c11b491f16',\n //The ID of the calling application.\n 'clientid' => 'MyAppID',\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/job_queue_run/index.html"} {"id": "23e4b231d8ae-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_last_viewed\nOverview\nRetrieves a list of recently viewed records by module for the current user.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_last_viewed(session, module_names)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_names\nmodule_names | Array\nThe list of modules to retrieve last viewed records for.\nResult\nName\nType\nDescription\nresult\nlast_viewed_list | Array\nThe call result. Contains a list of reciently viewed records.\nresult[].id\nInteger\nThe result ID.\nresult[].item_id\nString\nThe reciently viewed record ID.\nresult[].item_summary\nString\nThe name of the reciently viewed record.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_last_viewed/index.html"} {"id": "23e4b231d8ae-1", "text": "result[].item_summary\nString\nThe name of the reciently viewed record.\nresult[].module_name\nString\nThe name of the module.\nresult[].monitor_id\nString\nThe monitor ID from the tracker table.\nresult[].date_modified\nString\nThe date the record was viewed.\nChange Log\nVersion\nChange\nExamples\nPHP\n$get_last_viewed_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The name of the modules to retrieve last viewed for\n 'module_names' => array(\n 'Contacts',\n 'Accounts'\n ),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_last_viewed/index.html"} {"id": "8c739af790c6-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_modified_relationships\nOverview\nRetrieves a list of modified relationships between a specific date range. Helps facilitate sync operations for users.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_modified_relationships(session, module_name, related_module, from_date, to_date, offset, max_results, deleted, module_user_id, select_fields, relationship_name, deletion_date)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe module key to retrieve relationships against.\nrelated_module\nString\nThe related module key to retrieve records off of. This parameter should always be 'Users'.\nfrom_date\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_modified_relationships/index.html"} {"id": "8c739af790c6-1", "text": "from_date\nString\nStart date in YYYY-MM-DD HH:MM:SS format for the date range.\nto_date\nString\nEnd date in YYYY-MM-DD HH:MM:SS format for the date range.\noffset\nInteger\nThe offset to begin returning records from.\nmax_results\nInteger\nThe max_results to return.\ndeleted\nInteger\nWhether or not to include deleted records. Set to 1 to find deleted records.\nmodule_user_id\nString\n*This parameter is no longer used and is only present for backward compatibility purposes.\nselect_fields\nselect_fields\nList of fields to select and return as name/value pairs.\nrelationship_name\nString\nThe name of the relationship name to search on.\ndeletion_date\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_modified_relationships/index.html"} {"id": "8c739af790c6-2", "text": "The name of the relationship name to search on.\ndeletion_date\nString\nDate value in YYYY-MM-DD HH:MM:SS format for filtering on deleted records whose date_modified falls within range.\nResult\nName\nType\nDescription\nresult\nmodified_relationship_result | Array\nThe call result.\nresult.result_count\nInteger\nThe result count.\nresult.next_offset\nInteger\nThe next offset to retrieve from.\nresult.entry_list\nArray\nList of found records.\nresult.error\nArray\nError Message.\nresult.error.number\nInteger\nThe error number.\nresult.error.name\nString\nThe name of the error.\nresult.error.description\nString\nThe description of the error.\nChange Log\nVersion\nChange\nv4_1\nAdded get_modified_relationships method.\nConsiderations", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_modified_relationships/index.html"} {"id": "8c739af790c6-3", "text": "Change\nv4_1\nAdded get_modified_relationships method.\nConsiderations\nThe module_name parameter should always be 'Users'.\nExamples\nPHP\n$get_modified_relationships_parameters = array(\n //Session id\n 'session' => $session_id,\n //The module key to retrieve relationships against.\n //This parameter should always be 'Users'.\n 'module_name' => 'Users',\n //The related module key to retrieve records off of.\n 'related_module' => 'Meetings',\n //Start date in YYYY-MM-DD HH:MM:SS format for the date range.\n 'from_date' => '2000-01-01 01:01:01',\n //End date in YYYY-MM-DD HH:MM:SS format for the date range", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_modified_relationships/index.html"} {"id": "8c739af790c6-4", "text": "'to_date' => '2013-01-01 01:01:01',\n //The offset to begin returning records from.\n 'offset' => 0,\n //The max_results to return.\n 'max_results' => 5,\n //Whether or not to include deleted records. Set to 1 to find deleted records.\n 'deleted' => 0,\n //This parameter is not used.\n 'module_user_id' => '',\n //List of fields to select and return as name/value pairs.\n 'select_fields' => array(),\n //The name of the relationship name to search on.\n 'relationhip_name' => 'meetings_users',\n //Date value in YYYY-MM-DD HH:MM:SS format for filtering on deleted records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_modified_relationships/index.html"} {"id": "8c739af790c6-5", "text": "'deletion_date' => '2012-01-01 01:01:01'\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_modified_relationships/index.html"} {"id": "7c6a3f56ea37-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nset_note_attachment\nOverview\nCreates an attachment and associated it to a specific note record.\nAvailable APIs\nSOAP\nREST\nDefinition\nset_note_attachment(session, note)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nnote\nnew_note_attachment | Array\nThe file attachment details\nnote.id\nString\nThe ID of the note record to associate the attachment to.\nnote.filename\nString\nThe file name of the file attachment.\nnote.file\nString\nThe binary contents of the file.\nResult\nName\nType\nDescription\nresult\nnew_set_entry_result | Array\nThe call result.\nresult.id\nString\nThe ID of the note record / attachment\nChange Log\nVersion\nChange", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_note_attachment/index.html"} {"id": "7c6a3f56ea37-1", "text": "String\nThe ID of the note record / attachment\nChange Log\nVersion\nChange\nv2\nReturn type was changed from set_entry_result to new_set_entry_result.\nv2\nParameter note type change from note_attachment to new_note_attachment.\nExamples\nPHP\n$file_contents = file_get_contents(\"/path/to/example_file.php\");\n$set_note_attachment_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The attachment details\n \"note\" => array(\n //The ID of the note containing the attachment.\n 'id' => $note_id,\n //The file name of the attachment.\n 'filename' => 'example_file.php',\n //The binary contents of the file.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_note_attachment/index.html"} {"id": "7c6a3f56ea37-2", "text": "//The binary contents of the file.\n 'file' => base64_encode($file_contents),\n ),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_note_attachment/index.html"} {"id": "24944d5d07db-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_upcoming_activities\nOverview\nRetrieves a list of upcoming activities for the current user.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_upcoming_activities(session)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nResult\nName\nType\nDescription\nresult\nupcoming_activities_list | Array\nThe call result. Contains a list of upcoming activity records.\nresult[].id\nInteger\nThe record ID.\nresult[].module\nString\nThe activity module.\nresult[].date_due\nString\nThe date the activity is due.\nresult[].summary\nString\nThe summary of the activity.\nChange Log\nVersion\nChange\nExamples\nPHP", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_upcoming_activities/index.html"} {"id": "24944d5d07db-1", "text": "The summary of the activity.\nChange Log\nVersion\nChange\nExamples\nPHP\n$get_upcoming_activities_parameters = array(\n //Session id\n \"session\" => $session_id,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_upcoming_activities/index.html"} {"id": "0864cff20b63-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_report_pdf\nOverview\nGenerates a PDF for a specific report.\nAvailable APIs\nREST\nDefinition\nget_report_pdf(session, report_id)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nreport_id\nString\nThe ID of the report record to generate the PDF for.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.file_contents\nString\nThe binary contents of the PDF file.\nChange Log\nVersion\nChange\nv3_1\nAdded get_report_pdf method.\nExamples\nPHP\n$get_report_pdf_parameters = array(\n //Session id\n 'session' => $session_id,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_report_pdf/index.html"} {"id": "0864cff20b63-1", "text": "//Session id\n 'session' => $session_id,\n //The report to generate the pdf for.\n 'report_id' => '68ca4de9-7486-72e1-1a56-50aa5757aaab',\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_report_pdf/index.html"} {"id": "891784b01c05-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nset_entries\nOverview\nCreate or update a list of records.\nAvailable APIs\nSOAP\nREST\nDefinition\nset_entries(session, module_name, name_value_lists)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nname_value_lists\nname_value_lists | Array\nThe an array of name/value lists containing the record attributes.\nResult\nName\nType\nDescription\nresult\nnew_set_entries_result | Array\nThe call result.\nresult.ids\nArray\nThe list of record IDs that were created or updated\nChange Log\nVersion", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_entries/index.html"} {"id": "891784b01c05-1", "text": "Array\nThe list of record IDs that were created or updated\nChange Log\nVersion\nChange\nv2\nReturn type was changed from set_entry_result to new_set_entries_result.\nConsiderations\nTo update an existing record, you will need to specify 'id' for the name_value_list item in the name_value_lists parameter.\nTo create a new record with a specific ID, you will need to set 'new_with_id' in the name_value_list item in the name_value_lists parameter.\nExamples\nPHP\n$set_entries_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The name of the module from which to retrieve records.\n \"module_name\" => \"Accounts\",\n //Record attributes\n \"name_value_lists\" => array(\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_entries/index.html"} {"id": "891784b01c05-2", "text": "\"name_value_lists\" => array(\n array(\n //to update a record\n /*\n array(\n \"name\" => \"id\",\n \"value\" => \"da0b107d-cfbc-cb08-4f90-50b7b9cb9ad7\"\n ),\n */\n //to create a new record with a specific ID\n /*\n array(\n \"name\" => \"new_with_id\",\n \"value\" => 1\n ),\n */\n array(\n \"name\" => \"name\",\n \"value\" => \"Example Account 1\"\n ),\n ),\n array(\n //to update a record\n /*\n array(\n \"name\" => \"id\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_entries/index.html"} {"id": "891784b01c05-3", "text": "/*\n array(\n \"name\" => \"id\",\n \"value\" => \"da0b107d-cfbc-cb08-4f90-50b7b9cb9ad7\"\n ),\n */\n //to create a new record with a specific ID\n /*\n array(\n \"name\" => \"new_with_id\",\n \"value\" => 1\n ),\n */\n array(\n \"name\" => \"name\",\n \"value\" => \"Example Account 2\"\n ),\n ),\n )\n,);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_entries/index.html"} {"id": "22c207c1d2c5-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_user_id\nOverview\nRetrieves the id of the user currently logged in.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_user_id(session)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nResult\nName\nType\nDescription\nid\nString\nThe users ID.\nChange Log\nVersion\nChange\nExamples\nPHP\n$get_user_id_parameters = array(\n //Session id\n \"session\" => $session_id,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_user_id/index.html"} {"id": "d5aaa7973941-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nlogin\nOverview\nLogs a user into the SugarCRM application.\nAvailable APIs\nSOAP\nREST\nDefinition\nlogin(user_auth, application_name, name_value_list)\nParameters\nName\nType\nDescription\nuser_auth\nuser_auth | Array\nContains the parameters to authenticate a user.\nuser_auth.user_name\nString\nThe user name of your user\nuser_auth.password\nString\nThe MD5 hash of the users password.\napplication name\nString\nThe name of the application logging in.\nname_value_list\nname_value_list | Array\nSets the name_value pair. The parameter is used to set values for the 'language' and 'notifyonsave' user settings.\nname_value_list.language\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/login/index.html"} {"id": "d5aaa7973941-1", "text": "name_value_list.language\nString\nThe language for the user.\nname_value_list.notifyonsave\nBoolean\nAlerts users on new record creations when set to true.\nResult\nName\nType\nDescription\nresult\nentry_value | Array\nThe call result\nresult.id\nString\nThis is the session id required to make other method calls.\nresult.module_name\nString\nReturns the 'Users' module.\nresult.name_value_list\nArray\nAuthenticated user properties.\nresult.name_value_list.user_id\nString\nID of the authenitcated user.\nresult.name_value_list.user_name\nString\nUsername of the authenticated user.\nresult.name_value_list.user_language\nString\nDefault language of the authenticated user.\nresult.name_value_list.user_currency_id\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/login/index.html"} {"id": "d5aaa7973941-2", "text": "result.name_value_list.user_currency_id\nString\nDefault currency ID of the authenticated user.\nresult.name_value_list.user_is_admin\nString\nAdmin status of the authenticated user.\nresult.name_value_list.user_default_team_id\nString\nDefault team of the authenticated user.\nresult.name_value_list.user_default_dateformat\nString\nDefault date format for the authenticated user.\nresult.name_value_list.user_default_timeformat\nString\nDefault time format for the authenticated user.\nresult.name_value_list.user_number_seperator\nString\nNumber seperator for the authenticated user.\nresult.name_value_list.user_decimal_seperator\nString\nDecimal sperator for the authenticated user.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/login/index.html"} {"id": "d5aaa7973941-3", "text": "String\nDecimal sperator for the authenticated user.\nresult.name_value_list.mobile_max_list_entries\nString\nMax list entires for the authenticated user.\nresult.name_value_list.mobile_max_subpanel_entries\nString\nMax subpanel entries for the authenticated user.\nresult.name_value_list.user_currency_name\nString\nDefault currency name for the authenticated user.\nChange Log\nVersion\nChange\nv3_1\nAdded additional return values to name_value_list. The list now also includes user_number_seperator, user_decimal_seperator, mobile_max_list_entries, mobile_max_subpanel_entries.\nv3", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/login/index.html"} {"id": "d5aaa7973941-4", "text": "v3\nAdded additional return values to name_value_list. The list now also includes user_is_admin, user_default_team_id, user_default_dateformat, user_default_timeformat.\nv2\nAdded name_value_list to response. Returns user_id, user_name, user_language, user_currency_id, user_currency_name.\nv2\nAdded module_name to response.\nv2\nRemoved error from response.\nv2\nAdded name_value_list parameter\nv2\nReturn type was changed from set_entry_result to entry_value.\nExamples\nPHP\n$login_parameters = array(\n //user authentication\n \"user_auth\" => array(\n \"user_name\" => $username,\n \"password\" => md5($password),\n ),\n //application name", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/login/index.html"} {"id": "d5aaa7973941-5", "text": "\"password\" => md5($password),\n ),\n //application name\n \"application_name\" => \"My Application\",\n //name value list for 'language' and 'notifyonsave'\n \"name_value_list\" => array(\n array(\n 'name' => 'language',\n 'value' => 'en_us',\n ),\n array(\n 'name' => 'notifyonsave',\n 'value' => true\n ),\n ),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/login/index.html"} {"id": "0405b4aae138-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nlogout\nOverview\nLogs a user out of the SugarCRM application.\nAvailable APIs\nSOAP\nREST\nDefinition\nlogout(session)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous call to login.\nResult\nName\nType\nDescription\nnull\nvoid\nNo return value.\nChange Log\nVersion\nChange\nv2\nReturn type was changed from error_value to void.\nExample\nPHP\n$logout_parameters = array(\n //session id to expire\n \"session\" => $session_id,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/logout/index.html"} {"id": "2f663f036d98-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nsnip_update_contacts\nOverview\nRetrieves new contact emails since a timestamp for the current user.\nAvailable APIs\nREST\nDefinition\nsnip_update_contacts(session, report_id)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nreport_id\nString\nThe ID of the report record to generate the PDF for.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.results\nBoolean\nThe new emails.\nresult.count\nInteger\nThe count of results.\nresult.message\nString\nThe return message.\nChange Log\nVersion\nChange\nv4\nAdded snip_update_contacts method.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/snip_update_contacts/index.html"} {"id": "5be661d7daef-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_user_team_id\nOverview\nRetrieves the ID of the default team of the user who is logged into the current session.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_user_team_id(session)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nResult\nName\nType\nDescription\ndefault_team_id\nInteger\nThe ID of the current users default ream\nChange Log\nVersion\nChange\nv2\nAdded get_user_team_id method.\nExamples\nPHP\n$get_user_team_id_parameters = array(\n //Session id\n \"session\" => $session_id,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_user_team_id/index.html"} {"id": "c7c540043a6e-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_quotes_pdf\nOverview\nGenerates a quote PDF for a specific quote.\nAvailable APIs\nREST\nDefinition\nget_quotes_pdf(session, quote_id, pdf_format)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nquote_id\nString\nThe ID of the quote record to generate the PDF for.\npdf_format\nString\nThe pdf type requested. 'Standard' is an example.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.file_contents\nString\nThe binary contents of the PDF file.\nChange Log\nVersion\nChange\nv3_1\nAdded get_quotes_pdf method.\nExamples\nPHP", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_quotes_pdf/index.html"} {"id": "c7c540043a6e-1", "text": "v3_1\nAdded get_quotes_pdf method.\nExamples\nPHP\n$get_quotes_pdf_parameters = array(\n //Session id\n 'session' => $session_id,\n //The quote to generate the pdf for\n 'quote_id' => '490cc844-f83a-9b74-9888-50aa575b517c',\n //The pdf type\n 'pdf_format' => 'Standard',\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_quotes_pdf/index.html"} {"id": "2b20f98e5fef-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_server_info\nOverview\nRetrieves info about the SugarCRM instance.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_server_info()\nParameters\nName\nType\nDescription\nnull\nnull\nNo parameters available.\nResult\nName\nType\nDescription\nresult\nget_server_info_result | Array\nThe call result.\nresult.flavor\nString\nThe flavor of the instance.\nresult.version\nString\nThe version of the instance.\nresult.gmt_time\nString\nThe GMT time of the server.\nChange Log\nVersion\nChange\nv2\nMethod get_server_info was added to replace get_server_time, get_server_version and get_sugar_flavor.\nv2\nMethod get_server_time was removed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_server_info/index.html"} {"id": "2b20f98e5fef-1", "text": "v2\nMethod get_server_time was removed.\nv2\nMethod get_server_version was removed.\nv2\nMethod get_sugar_flavor was removed.\nExamples\nPHP\n //this method does not have any parameters\n $get_server_info_parameters = array();\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_server_info/index.html"} {"id": "72cce97dbcad-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nsnip_import_emails\nOverview\nUsed to imports an email record from the SNIP archiving service.\nAvailable APIs\nREST\nDefinition\nsnip_import_emails(session, email)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nemail\nArray\nThe contents of the email being imported.\nemail.message\nArray\nContains the email attributes.\nemail.message.message_id\nString\nThe ID of the email message.\nemail.message.subject\nString\nEmail subject.\nemail.message.attachments\nArray\nThe list of attachments to be imported\nemail.message.from_name\nString\nFrom sender name.\nemail.message.description\nString\nPlain text content body.\nemail.message.description_html", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/snip_import_emails/index.html"} {"id": "72cce97dbcad-1", "text": "String\nPlain text content body.\nemail.message.description_html\nString\nHTML email content body.\nemail.message.to_addrs\nString\nEmail addresses the email was sent to.\nemail.message.cc_addrs\nString\nEmail addresses the email was CCed to.\nemail.message.bcc_addrs\nString\nEmail addresses the email was BCCed to.\nemail.message.date_sent\nString\nDate the email was sent.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.results\nBoolean\nThe success of the import.\nresult.count\nInteger\nThe count of records imported.\nresult.message\nString\nThe return message.\nChange Log\nVersion\nChange\nv4\nAdded snip_import_emails method.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/snip_import_emails/index.html"} {"id": "e697af00fd30-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nset_relationships\nOverview\nSets multiple relationships between mulitiple record sets.\nAvailable APIs\nSOAP\nREST\nDefinition\nset_relationships(session, module_names, module_ids, link_field_names, related_ids, name_value_lists, delete_array)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_names\nselect_fields | Array\nThe list of modules from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nmodule_ids\nselect_fields | Array\nThe list of IDs for the specified module records.\nlink_field_names\nselect_fields | Array\nThe list of link names for the related modules.\nrelated_ids", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationships/index.html"} {"id": "e697af00fd30-1", "text": "The list of link names for the related modules.\nrelated_ids\nnew_set_relationhip_ids | Array\nThe list of related record IDs you are relating.\nname_value_lists\nname_value_lists | Array\nAn array of arrays specifying relationship fields to populate. An example of this is contact_role between Opportunities and Contacts.\ndelete_array\ndeleted_array | Array\nAn array determining whether the relationships are being created or deleted. 0:create, 1:delete\nResult\nName\nType\nDescription\nresult\nnew_set_relationship_list_result | Array\nThe call result.\nresult.created\nInteger\nThe number of relationships created.\nresult.failed\nInteger\nDetermines whether or not the relationship failed. This is normally thrown when the parameters module_name or link_field_name are incorrect.\nresult.deleted\nInteger\nThe number of relationships deleted.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationships/index.html"} {"id": "e697af00fd30-2", "text": "result.deleted\nInteger\nThe number of relationships deleted.\nChange Log\nVersion\nChange\nv2\nRemoved set_relationship_value parameter.\nv2\nAdded module_names parameter.\nv2\nAdded module_ids parameter.\nv2\nAdded link_field_names parameter.\nv2\nAdded related_ids parameter.\nv2\nAdded name_value_lists parameter.\nv2\nAdded delete_array parameter.\nv2\nReturn type was changed from set_relationship_list_result to new_set_relationship_list_result.\nExamples\nPHP\n$set_relationships_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the modules from which to relate records.\n 'module_names' => array(\n 'Opportunities',\n 'Accounts',\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationships/index.html"} {"id": "e697af00fd30-3", "text": "'Opportunities',\n 'Accounts',\n ),\n //The IDs of the specified module beans.\n 'module_ids' => array(\n '15e79b92-5025-827f-0784-50aa578270d8', //Opportunity ID\n '27035f04-f6ec-492d-b89e-50aa57f5247f' //Account ID\n ),\n //The relationship names of the linked fields from which to relate records.\n 'link_field_names' => array(\n 'contacts', //Contacts link field to Opportunities\n 'leads' //Leads link field to Accounts\n ),\n //The lists of record ids to relate\n 'related_ids' => array(\n //Contact IDs\n array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationships/index.html"} {"id": "e697af00fd30-4", "text": "'related_ids' => array(\n //Contact IDs\n array(\n '19b8799e-64ae-9502-588c-50aa575454c9'\n ),\n //Lead IDs\n array(\n '16d8d519-5f56-0984-2092-50aa576a7333',\n '15ae07eb-63f0-dbac-6e4c-50aa57c5a609'\n ),\n ),\n //Sets the value for relationship based fields\n 'name_value_lists' => array(\n //Opportunity-Contact relationship fields\n array(\n array(\n 'name' => 'contact_role',\n 'value' => 'Other'\n ),\n ),\n //Account-Lead relationship fields\n array(),\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationships/index.html"} {"id": "e697af00fd30-5", "text": "),\n //Account-Lead relationship fields\n array(),\n ),\n //Whether or not to delete the relationships. 0:create, 1:delete\n 'delete_array'=> array(\n 0, //Opportunity-Contact\n 0 //Account-Lead\n ),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationships/index.html"} {"id": "dc4ee6395c6c-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_language_definition\nOverview\nRetrieves the language label strings for the specified modules.\nAvailable APIs\nREST\nDefinition\nget_available_modules(session, modules, md5)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodules\nArray\nThe list of modules to retrieve language definitions for.\nmd5\nBoolean\nSetting this to true will return an MD5 hash of the modules labels strings instead of the label strings themselves.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result. Contains a list of modules.\nresult[]\nArray or String\nThe list of language definitions or MD5 hashes. This is dependent on the 'md5' parameter.\nChange Log\nVersion\nChange\nv3_1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_language_definition/index.html"} {"id": "dc4ee6395c6c-1", "text": "Change Log\nVersion\nChange\nv3_1\nAdded get_language_definition method.\nExamples\nPHP\n$get_language_definition_parameters = array(\n //Session id\n 'session' => $session_id,\n //The list of modules\n 'modules' => array(\n 'Accounts'\n ),\n //Whether to return the results as an MD5 hash\n 'md5' => false,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_language_definition/index.html"} {"id": "4a00c2446895-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_relationships\nOverview\nRetrieves a specific relationship link for a specified record.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_relationships(session, module_name, module_id, link_field_name, related_module_query, related_fields, related_module_link_name_to_fields_array, deleted, order_by, offset, limit)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nmodule_id\nString\nThe ID of the specified module record.\nlink_field_name\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_relationships/index.html"} {"id": "4a00c2446895-1", "text": "String\nThe ID of the specified module record.\nlink_field_name\nString\nThe name of the link field for the related module.\nrelated_module_query\nString\nThe list of related record IDs you are relating\nrelated_fields\nselect_fields | Array\nAn array specifying relationship fields to populate. An example of this is contact_role between Opportunities and Contacts.\nrelated_module_link_name_to_fields_array\nlink_names_to_fields_array | Array\nFor every related record returned, specify link field names to field information.\ndeleted\nInteger\norder_by\nString\nThe SQL ORDER BY clause without the phrase \"order by\".\noffset\nInteger\nThe record offset from which to start.\nlimit\nInteger\nThe maximum number of results to return.\nResult\nName\nType\nDescription\nresult\nget_entry_result_version2 | Array\nThe call result.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_relationships/index.html"} {"id": "4a00c2446895-2", "text": "Description\nresult\nget_entry_result_version2 | Array\nThe call result.\nresult.entry_list\nArray\nThe record's name-value pair for the simple datatypes excluding the link field data. If you do not have access to the object, entry_list[].name_value_list will notify you.\nresult.relationship_list\nArray\nThe records link field data.\nChange Log\nVersion\nChange\nv3\nAdded order_by parameter.\nv2\nRemoved related_module parameter.\nv2\nAdded link_field_name parameter.\nv2\nAdded related_fields parameter.\nv2\nAdded related_module_link_name_to_fields_array parameter.\nv2\nReturn type was changed from get_relationships_result to get_entry_result_version2.\nExamples\nPHP\n$get_relationships_parameters = array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_relationships/index.html"} {"id": "4a00c2446895-3", "text": "Examples\nPHP\n$get_relationships_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records.\n 'module_name' => 'Accounts',\n //The ID of the specified module bean.\n 'module_id' => '9f0c0ceb-c512-7103-9456-50aa5787c3f6',\n //The relationship name of the linked field from which to return records.\n 'link_field_name' => 'opportunities',\n //The portion of the WHERE clause from the SQL statement used to find the related items.\n 'related_module_query' => \" opportunities.name IS NOT NULL \",\n //The related fields to be returned.\n 'related_fields' => array(\n 'id',", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_relationships/index.html"} {"id": "4a00c2446895-4", "text": "'related_fields' => array(\n 'id',\n 'name'\n ),\n //For every related bean returned,\n //specify link field names to field information.\n 'related_module_link_name_to_fields_array' => array(\n array(\n 'name' => 'contacts',\n 'value' => array(\n 'id',\n 'first_name',\n 'last_name',\n ),\n ),\n ),\n //To exclude deleted records\n 'deleted'=> 0,\n //order by\n 'order_by' => ' opportunities.name ',\n //offset\n 'offset' => 0,\n //limit\n 'limit' => 200,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_relationships/index.html"} {"id": "b3f5590e82c2-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_module_layout_md5\nOverview\nRetrieves the MD5 hash value for a layout given a specific module, type and view.\nAvailable APIs\nREST\nDefinition\nget_module_layout_md5(session, modules, types, views, acl_check)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodules\nArray\nThe list of modules to retrieve layouts for.\ntypes\nArray\nThe types of views requested. Current supported types are 'default' (for application) and 'wireless'.\nviews\nArray\nThe views requested. Current supported types are 'edit', 'detail', 'list', and 'subpanel'.\nacl_check\nBoolean\nWhether or not to check for ACL access.\nResult\nName\nType\nDescription\nresult", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_layout_md5/index.html"} {"id": "b3f5590e82c2-1", "text": "Whether or not to check for ACL access.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result. Contains a list of modules.\nresult[][$type]\nArray\nThe list of types requested.\nresult[][$view]\nString\nThe list of MD5 layout view hashes requested.\nChange Log\nVersion\nChange\nv3_1\nAdded acl_check parameter.\nv3\nAdded get_module_layout_md5 method.\nExamples\nPHP\n$get_module_layout_md5_parameters = array(\n //Session id\n 'session' => $session_id,\n //The list of modules\n 'modules' => array(\n 'Accounts'\n ),\n //The types of views requested\n 'types' => array(\n 'default',\n ),\n //The views requested", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_layout_md5/index.html"} {"id": "b3f5590e82c2-2", "text": "'default',\n ),\n //The views requested\n 'views' => array(\n 'edit'\n ),\n //Whether or not to check for ACL access\n 'acl_check' => false,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_layout_md5/index.html"} {"id": "b26d8bbcb7c0-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nset_relationship\nOverview\nSets relationships between two records. You can relate multiple records to a single record using this.\nAvailable APIs\nSOAP\nREST\nDefinition\nset_relationship(session, module_name, module_id, link_field_name, related_ids, name_value_list, delete)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nmodule_id\nString\nThe ID of the specified module record.\nlink_field_name\nString\nThe name of the link field for the related module.\nrelated_ids\nselect_fields | Array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationship/index.html"} {"id": "b26d8bbcb7c0-1", "text": "related_ids\nselect_fields | Array\nThe list of related record IDs you are relating\nname_value_list\nname_value_list | Array\nAn array specifying relationship fields to populate. An example of this is contact_role between Opportunities and Contacts.\ndelete\nInteger\nDetermines whether the relationship is being created or deleted. 0:create, 1:delete\nResult\nName\nType\nDescription\nresult\nnew_set_relationship_list_result | Array\nThe call result\nresult.created\nInteger\nThe number of relationships created.\nresult.failed\nInteger\nDetermines whether or not the relationship failed. This is normally thrown when the parameters module_name or link_field_name are incorrect.\nresult.deleted\nInteger\nThe number of relationships deleted.\nChange Log\nVersion\nChange\nv2\nRemoved set_relationship_value parameter.\nv2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationship/index.html"} {"id": "b26d8bbcb7c0-2", "text": "Version\nChange\nv2\nRemoved set_relationship_value parameter.\nv2\nAdded module_name parameter.\nv2\nAdded module_id parameter.\nv2\nAdded link_field_name parameter.\nv2\nAdded related_ids parameter.\nv2\nAdded name_value_list parameter.\nv2\nAdded delete parameter.\nv2\nReturn type was changed from error_value to new_set_relationship_list_result.\nExamples\nPHP\n$set_relationship_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module.\n 'module_name' => 'Opportunities',\n //The ID of the specified module bean.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationship/index.html"} {"id": "b26d8bbcb7c0-3", "text": "//The ID of the specified module bean.\n 'module_id' => '15e79b92-5025-827f-0784-50aa578270d8',\n //The relationship name of the linked field from which to relate records.\n 'link_field_name' => 'contacts',\n //The list of record ids to relate\n 'related_ids' => array(\n '19b8799e-64ae-9502-588c-50aa575454c9',\n ),\n //Sets the value for relationship based fields\n 'name_value_list' => array(\n array(\n 'name' => 'contact_role',\n 'value' => 'Other'\n )\n ),\n //Whether or not to delete the relationship. 0:create, 1:delete", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationship/index.html"} {"id": "b26d8bbcb7c0-4", "text": "//Whether or not to delete the relationship. 0:create, 1:delete\n 'delete'=> 0,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_relationship/index.html"} {"id": "9ad235fc276a-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_entries_count\nOverview\nRetrieves a list of beans based on query specifications.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_entries_count(session, module_name, query, deleted)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nquery\nString\nThe SQL WHERE clause without the word \"where\".\ndeleted\nInteger\nIf deleted records should be included in the results.\nResult\nName\nType\nDescription\nresult\nget_entries_count_result | Array\nThe call result.\nresult.result_count\nInteger", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entries_count/index.html"} {"id": "9ad235fc276a-1", "text": "The call result.\nresult.result_count\nInteger\nThe count of total records.\nChange Log\nVersion\nChange\nExamples\nPHP\n$get_entries_count_parameters = array(\n //Session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => 'Accounts',\n //The SQL WHERE clause without the word \"where\".\n 'query' => \" accounts.name like '%example text%' \",\n //If deleted records should be included in results.\n 'deleted' => false\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entries_count/index.html"} {"id": "22303d2b4c28-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_available_modules\nOverview\nRetrieves a list of available modules in the system.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_available_modules(session, filter)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nfilter\nString\nString to filter the modules with. Possible values are 'default', 'mobile', 'all'.\nResult\nName\nType\nDescription\nresult\nnew_module_fields | Array\nThe call result.\nresult.modules\nArray\nThe list of avaialble modules.\nresult.modules[].module_key\nString\nThe modules key.\nresult.modules[].module_label\nString\nThe display label for the module.\nresult.modules[].favorite_enabled\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_available_modules/index.html"} {"id": "22303d2b4c28-1", "text": "The display label for the module.\nresult.modules[].favorite_enabled\nString\nWhether favorites are enabled for the module.\nresult.modules[].acls\nArray\nThe ACL list for the module\nChange Log\nVersion\nChange\nv3\nAdded filter parameter. Accepts the values 'default', 'mobile', 'all'.\nExamples\nPHP\n$get_available_modules_parameters = array(\n //Session id\n \"session\" => $session_id,\n //Module filter. Possible values are 'default', 'mobile', 'all'.\n \"filter\" => 'all',\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_available_modules/index.html"} {"id": "ce8220ce8ac5-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\njob_queue_cycle\nOverview\nRuns through the scheduler cleanup process and cycles the scheduler jobs.\nAvailable APIs\nREST\nDefinition\njob_queue_cycle(session, clientid)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nclientid\nString\nThe client id calling the application. This parameter is of your choosing for the calling application.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.results\nString\nThe cycle result. Returns 'ok' on success.\nChange Log\nVersion\nChange\nv4\nAdded job_queue_cycle method.\nExamples\nPHP\n$job_queue_cycle_parameters = array(\n //Session id\n 'session' => $session_id,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/job_queue_cycle/index.html"} {"id": "ce8220ce8ac5-1", "text": "//Session id\n 'session' => $session_id,\n //The ID of the calling application.\n 'clientid' => 'MyAppID',\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/job_queue_cycle/index.html"} {"id": "ed226117dbd6-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nsearch_by_module\nOverview\nSearches modules for a string and returns matched records.\nAvailable APIs\nSOAP\nREST\nDefinition\nsearch_by_module(session, search_string, modules, offset, max_results, assigned_user_id, select_fields, unified_search_only, favorites)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nsearch_string\nString\nThe string to search for.\nmodules\nInteger\nThe list of modules to query.\noffset\nInteger\nThe record offset from which to start.\nmax_results\nInteger\nThe maximum number of records to return.\nassigned_user_id\nString\nFilters records by the assigned user ID. Leave this empty if no filter should be applied.\nselect_fields", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/search_by_module/index.html"} {"id": "ed226117dbd6-1", "text": "select_fields\nselect_fields | Array\nAn array of fields to return. If empty the default return fields will be from the active listviewdefs.\nunified_search_only\nBoolean\nIf the search is only against modules participating in the unified search.\nfavorites\nBoolean\nIf only records marked as favorites should be returned.\nResult\nName\nType\nDescription\nresult\nreturn_search_result | Array\nCall result.\nresult.entry_list\nArray\nThe count of records in paged result.\nresult.entry_list[].name\nString\nThe .name of the module\nresult.entry_list[].records\nArray\nA list of name_value lists for each record matched.\nChange Log\nVersion\nChange\nv3_1\nAdded unified_search_only parameter.\nExamples\nPHP\n$search_by_module_parameters = array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/search_by_module/index.html"} {"id": "ed226117dbd6-2", "text": "Examples\nPHP\n$search_by_module_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The string to search for.\n 'search_string' => 'example text',\n //The list of modules to query.\n 'modules' => array(\n 'Accounts',\n ),\n //The record offset from which to start.\n 'offset' => 0,\n //The maximum number of records to return.\n 'max_results' => 100,\n //Filters records by the assigned user ID.\n //Leave this empty if no filter should be applied.\n 'assigned_user_id' => '',\n //An array of fields to return.\n //If empty the default return fields will be from the active listviewdefs.\n 'select_fields' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/search_by_module/index.html"} {"id": "ed226117dbd6-3", "text": "'select_fields' => array(\n 'id',\n 'name',\n ),\n //If the search is only search modules participating in the unified search.\n 'unified_search_only' => false,\n //If only records marked as favorites should be returned.\n 'favorites' => false\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/search_by_module/index.html"} {"id": "228a095b519c-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\noauth_access\nOverview\nRetrieves the OAuth access token.\nAvailable APIs\nREST\nDefinition\noauth_access()\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.id\nString\nThe OAuth access token.\nChange Log\nVersion\nChange\nv4\nAdded oauth_access method.\nExamples\nPHP\n$oauth_access_parameters = array(\n //Session id\n 'session' => $session_id,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/oauth_access/index.html"} {"id": "73ff05886680-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_module_fields_md5\nOverview\nRetrieves the MD5 hash of the vardefs for the specified modules.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_module_fields_md5(session, module_names)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_names\nselect_fields | Array\nThe list of modules to retrieve MD5 hashes for.\nResult\nName\nType\nDescription\nresult\nmd5_results | Array\nThe call result. Contains a list of module field hashes. Order is based on the module_names parameter.\nChange Log\nVersion\nChange\nExamples\nPHP\n$get_module_fields_md5_parameters = array(\n //Session id", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_fields_md5/index.html"} {"id": "73ff05886680-1", "text": "//Session id\n \"session\" => $session_id,\n //The name of the modules to retrieve field hashes for\n 'module_names' => array(\n 'Contacts',\n 'Accounts'\n ),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_fields_md5/index.html"} {"id": "0bf8f249bce4-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nset_document_revision\nOverview\nCreates a new document revision for a specific document record.\nAvailable APIs\nSOAP\nREST\nDefinition\nset_document_revision(session, note)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nnote\ndocument_revision | Array\nThe file attachment details\nnote.id\nString\nThe ID of the note record to associate the attachment to.\nnote.file\nString\nThe binary contents of the file.\nnote.filename\nString\nThe file name of the file attachment.\nnote.revision\nString\nThe revision number\nResult\nName\nType\nDescription\nresult\nnew_set_entry_result | array\nThe results from the call.\nresult.id\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_document_revision/index.html"} {"id": "0bf8f249bce4-1", "text": "The results from the call.\nresult.id\nString\nThe ID of the document revision.\nChange Log\nVersion\nChange\nv2\nReturn type was changed from set_entry_result to new_set_entry_result.\nExamples\nPHP\n$file_contents = file_get_contents(\"/path/to/example_document.txt\");\n$set_document_revision_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The attachment details\n \"note\" => array(\n //The ID of the parent document.\n 'id' => $document_id,\n //The binary contents of the file.\n 'file' => base64_encode($file_contents),\n //The name of the file\n 'filename' => 'example_document.txt',\n //The revision number", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_document_revision/index.html"} {"id": "0bf8f249bce4-2", "text": "'filename' => 'example_document.txt',\n //The revision number\n 'revision' => '1',\n ),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_document_revision/index.html"} {"id": "a95c6b3f7469-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nset_campaign_merge\nOverview\nHandles campaign log entry creation for mail-merge activity given a specified campaign.\nAvailable APIs\nSOAP\nREST\nDefinition\nset_campaign_merge(session, targets, campaign_id)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous call to login.\ntargets\nselect_fields | Array\nA string array of IDs identifying the targets used in the merge. The IDs used in this parameter come from the column 'prospect_lists_prospects.id'.\ncampaign_id\nString\nThe campaign ID used for the mail merge.\nResult\nName\nType\nDescription\nnull\nvoid\nNo return value.\nChange Log\nVersion\nChange\nv2\nReturn type was changed from error_value to void.\nExample", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_campaign_merge/index.html"} {"id": "a95c6b3f7469-1", "text": "Change\nv2\nReturn type was changed from error_value to void.\nExample\nPHP\n$set_campaign_merge_parameters = array(\n //Session id\n \"session\" => $session_id,\n //A string array of IDs identifying the targets used in the merge.\n //The IDs used in this parameter come from the column 'prospect_lists_prospects.id'.\n \"targets\" => array(\n '403787cc-ab19-bec8-3ef4-50bd4896c9b3',\n 'c5341c8d-4b0a-2b56-7108-50bd48b91213'\n ),\n //The campaign ID used for the mail merge.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_campaign_merge/index.html"} {"id": "a95c6b3f7469-2", "text": "),\n //The campaign ID used for the mail merge.\n \"campaign_id\" => '781d4471-fb48-8dd2-ae62-50bd475950b2'\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/set_campaign_merge/index.html"} {"id": "a875d67be674-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\njob_queue_next\nOverview\nRetrieves the next job from the job queue and marks it as 'In Progress'.\nAvailable APIs\nREST\nDefinition\njob_queue_next(session, clientid)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nclientid\nString\nThe client id calling the application. This parameter is of your choosing for the calling application.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result.\nresult.results\nString\nThe next job ID.\nChange Log\nVersion\nChange\nv4\nAdded job_queue_next method.\nExamples\nPHP\n$job_queue_next_parameters = array(\n //Session id\n 'session' => $session_id,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/job_queue_next/index.html"} {"id": "a875d67be674-1", "text": "//Session id\n 'session' => $session_id,\n //The ID of the calling application.\n 'clientid' => 'MyAppID',\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/job_queue_next/index.html"} {"id": "65452af8d115-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_module_fields\nOverview\nRetrieves the list of field vardefs for a specific module.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_module_fields(session, module_name, fields)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nfields\nselect_fields | Array\nThe list of fields to retrieve. An empty parameter will return all.\nResult\nName\nType\nDescription\nresult\nnew_module_fields | Array\nThe call result.\nresult.module_name\nString\nThe name of the module.\nresult.table_name\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_fields/index.html"} {"id": "65452af8d115-1", "text": "String\nThe name of the module.\nresult.table_name\nString\nThe name of the modules primary table.\nresult.module_fields\nArray\nThe vardefs for each individual field.\nChange Log\nVersion\nChange\nv2\nAdded fields parameter.\nv2\nReturn type was changed from module_fields to new_module_fields.\nExamples\nPHP\n$get_module_fields_parameters = array(\n //Session id\n \"session\" => $session_id,\n //The name of the module from which to retrieve fields\n 'module_name' => \"Contacts\",\n //List of specific fields\n 'fields' => array(),\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_fields/index.html"} {"id": "c829d4d71aaa-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_entries\nOverview\nRetrieves a list of beans based on specified record IDs.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_entries(session, module_name, ids, select_fields, link_name_to_fields_array, track_view)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nids\nString\nThe list of record IDs to retrieve.\nselect_fields\nselect_fields | Array\nThe list of fields to be returned in the results. Specifying an empty array will return all fields.\nlink_name_to_fields_array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entries/index.html"} {"id": "c829d4d71aaa-1", "text": "link_name_to_fields_array\nlink_names_to_fields_array | Array\nA list of link names and the fields to be returned for each link.\ntrack_view\nBoolean\nFlag the record as a recently viewed item.\nResult\nName\nType\nDescription\nresult\nget_entry_result_version2 | Array\nThe call result.\nresult.entry_list\nArray\nThe record's name-value pair for the simple datatypes excluding the link field data. If you do not have access to the object, entry_list[].name_value_list will notify you.\nresult.relationship_list\nArray\nThe records link field data.\nChange Log\nVersion\nChange\nv3_1\nAdded track_view parameter.\nv2\nAdded link_name_to_fields_array parameter.\nv2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entries/index.html"} {"id": "c829d4d71aaa-2", "text": "v2\nAdded link_name_to_fields_array parameter.\nv2\nReturn type was changed from get_entry_result to get_entry_result_version2.\nExamples\nPHP\n$get_entries_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => 'Accounts',\n //An array of record IDs\n 'ids' => array(\n '14b0c0ca-3ea2-0ee8-f3be-50aa57c11ee7',\n ),\n //The list of fields to be returned in the results\n 'select_fields' => array(\n 'name',\n 'billing_address_state',\n 'billing_address_country'\n ),", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entries/index.html"} {"id": "c829d4d71aaa-3", "text": "'billing_address_country'\n ),\n //A list of link names and the fields to be returned for each link name\n 'link_name_to_fields_array' => array(\n array(\n 'name' => 'email_addresses',\n 'value' => array(\n 'email_address',\n 'opt_out',\n 'primary_address'\n ),\n ),\n ),\n //Flag the record as a recently viewed item\n 'track_view' => true,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entries/index.html"} {"id": "6d374c01117b-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nseamless_login\nOverview\nVerifies that a session is authenticated.\nAvailable APIs\nSOAP\nREST\nDefinition\nseamless_login(session)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nResult\nName\nType\nDescription\nresult\nInteger\nReturns 1 if the session is authenticated. Otherwise 0 will be returned.\nChange Log\nVersion\nChange\nConsiderations\nIf you are attempting to log a user into SugarCRM seamlessly, you can do this by passing the validated session_id in the url.\nAn example is shown below:\nhttp://{site_url}/index.php?module=Home&action=index&MSID={session_id}\nExamples\nPHP\n$seamless_login_parameters = array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/seamless_login/index.html"} {"id": "6d374c01117b-1", "text": "Examples\nPHP\n$seamless_login_parameters = array(\n //Session id\n \"session\" => $session_id,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/seamless_login/index.html"} {"id": "f313e99557f3-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_module_layout\nOverview\nRetrieves the layout metadata for a given module given a specific type and view.\nAvailable APIs\nREST\nDefinition\nget_module_layout(session, modules, types, views, acl_check, md5)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodules\nArray\nThe list of modules to retrieve layouts for.\ntypes\nArray\nThe types of views requested. Current supported types are 'default' (for application) and 'wireless'.\nviews\nArray\nThe views requested. Current supported types are 'edit', 'detail', 'list', and 'subpanel'.\nacl_check\nBoolean\nWhether or not to check for ACL access.\nmd5\nBoolean", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_layout/index.html"} {"id": "f313e99557f3-1", "text": "Boolean\nWhether or not to check for ACL access.\nmd5\nBoolean\nSetting this to true will return an MD5 hash of the modules layouts instead of the layouts themselves.\nResult\nName\nType\nDescription\nresult\nArray\nThe call result. Contains a list of modules.\nresult[][$type]\nArray\nThe list of types requested.\nresult[][$view]\nArray or String\nThe list of layout views requested or MD5 hashes. This is dependent on the 'md5' parameter.\nChange Log\nVersion\nChange\nv3_1\nAdded acl_check parameter.\nv3\nAdded get_module_layout method.\nExamples\nPHP\n$get_module_layout_parameters = array(\n //Session id\n 'session' => $session_id,\n //The list of modules\n 'modules' => array(\n 'Accounts'", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_layout/index.html"} {"id": "f313e99557f3-2", "text": "'modules' => array(\n 'Accounts'\n ),\n //The types of views requested\n 'types' => array(\n 'default',\n ),\n //The views requested\n 'views' => array(\n 'edit'\n ),\n //Whether or not to check for ACL access\n 'acl_check' => false,\n //Whether to return the results as an MD5 hash\n 'md5' => true,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_module_layout/index.html"} {"id": "63e34c7a7082-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_entry_list\nOverview\nRetrieves a list of beans based on query specifications.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_entry_list(session, module_name, query, order_by, offset, select_fields, link_name_to_fields_array, max_results, deleted, favorites)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nmodule_name\nString\nThe name of the module from which to retrieve records. Note: This is the modules key which may not be the same as the modules display name.\nquery\nString\nThe SQL WHERE clause without the word \"where\". You should remember to specify the table name for the fields to avoid any ambiguous column errors.\norder_by\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry_list/index.html"} {"id": "63e34c7a7082-1", "text": "order_by\nString\nThe SQL ORDER BY clause without the phrase \"order by\".\noffset\nInteger\nThe record offset from which to start.\nselect_fields\nselect_fields | Array\nThe list of fields to be returned in the results. Specifying an empty array will return all fields.\nlink_name_to_fields_array\nlink_names_to_fields_array | Array\nA list of link names and the fields to be returned for each link.\nmax_results\nInteger\nThe maximum number of results to return.\ndeleted\nInteger\nIf deleted records should be included in the results.\nfavorites\nBoolean\nIf only records marked as favorites should be returned.\nResult\nName\nType\nDescription\nresult\nget_entry_result_version2 | Array\nThe call result.\nresult.result_count\nInteger\nThe total number of records returned in the call.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry_list/index.html"} {"id": "63e34c7a7082-2", "text": "result.result_count\nInteger\nThe total number of records returned in the call.\nresult.total_count\nInteger\nThe total number of records.\nresultnext_offset\nInteger\nThe next offset to retrieve records.\nresult.entry_list\nArray\nThe record's name-value pair for the simple datatypes excluding the link field data. If you do not have access to the object, entry_list[].name_value_list will notify you.\nresult.relationship_list\nArray\nThe records link field data.\nChange Log\nVersion\nChange\nv3_1\nAdded favorites parameter.\nv2\nAdded link_name_to_fields_array parameter.\nv2\nReturn type was changed from get_entry_list_result to get_entry_list_result_version2.\nExamples\nPHP\n$get_entry_list_parameters = array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry_list/index.html"} {"id": "63e34c7a7082-3", "text": "Examples\nPHP\n$get_entry_list_parameters = array(\n //session id\n 'session' => $session_id,\n //The name of the module from which to retrieve records\n 'module_name' => 'Leads',\n //The SQL WHERE clause without the word \"where\".\n 'query' => \"\",\n //The SQL ORDER BY clause without the phrase \"order by\".\n 'order_by' => \"\",\n //The record offset from which to start.\n 'offset' => 0,\n //A list of fields to include in the results.\n 'select_fields' => array(\n 'id',\n 'name',\n 'title',\n ),\n //A list of link names and the fields to be returned for each link name.\n 'link_name_to_fields_array' => array(", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry_list/index.html"} {"id": "63e34c7a7082-4", "text": "'link_name_to_fields_array' => array(\n array(\n 'name' => 'email_addresses',\n 'value' => array(\n 'email_address',\n 'opt_out',\n 'primary_address'\n ),\n ),\n ),\n //The maximum number of results to return.\n 'max_results' => 2,\n //If deleted records should be included in results.\n 'deleted' => 0,\n //If only records marked as favorites should be returned.\n 'favorites' => false,\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_entry_list/index.html"} {"id": "afe1cb88f57b-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nget_report_entries\nOverview\nRetrieves a list of report entries based on specified record IDs.\nAvailable APIs\nSOAP\nREST\nDefinition\nget_report_entries(session, ids, select_fields)\nParameters\nName\nType\nDescription\nsession\nString\nSession ID returned by a previous login call.\nids\nselect_fields | Array\nAn array of record IDs to retrieve.\nselect_fields\nselect_fields | Array\nThe list of fields to be included in the results.\nResult\nName\nType\nDescription\nresult\nget_entry_result_for_reports | Array\nThe call result.\nresult.field_list\nArray\nThe list of selected fields.\nresult.field_list[].name\nString\nThe name of the report.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_report_entries/index.html"} {"id": "afe1cb88f57b-1", "text": "result.field_list[].name\nString\nThe name of the report.\nresult.field_list[].type\nString\nThe type of the report.\nresult.field_list[].label\nString\nThe label of the report.\nresult.field_list[].required\nBoolean\nresult.field_list[].options\nArray\nresult.entry_list\nArray\nThe list of report results\nresult.entry_list[].id\nString\nThe result ID. This is not the record ID.\nresult.entry_list[].module_name\nString\nThe name of the module. Normally contains the value 'Reports'.\nresult.entry_list[].name_value_list\nArray\nThe name value list of the report results.\nChange Log\nVersion\nChange\nv2\nMethod get_report_entries was added.\nConsiderations\nThis method is not available in CE.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_report_entries/index.html"} {"id": "afe1cb88f57b-2", "text": "Considerations\nThis method is not available in CE.\nExamples\nPHP\n$get_report_entries_parameters = array(\n //Session id\n 'session' => $session_id,\n //An array of record IDs to retrieve.\n 'ids' => array(\n '63f1b905-d206-14cb-cb95-50aa5734815f'\n ),\n //The list of fields to be included in the results.\n 'select_fields' => array()\n);\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/Methods/get_report_entries/index.html"} {"id": "198371c2ca92-0", "text": "This API has been succeeded by a new version. It is recommended to upgrade to the latest API.\nSOAP Release Notes\nOverview\nLists changes between the different versions of the SOAP API.\nRelease Notes\nv4_1\nget_modified_relationships method was added.\nget_relationships had the parameter $limit added.\nget_relationships had the parameter $offset added.\nv4\nsearch_by_module had the parameter $favorites added.\nv3_1\nget_entries had the parameter $track_view added.\nget_entry had the parameter $track_view added.\nget_entry_list had the parameter $favorites added.\nsearch_by_module had the parameter $unified_search_only added.\nv3\nget_available_modules had the parameter $filter added.\nget_last_viewed method was added.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-1", "text": "get_last_viewed method was added.\nget_module_fields_md5 method was added.\nget_relationships had the parameter $order_by added.\nget_upcoming_activities method was added.\nsearch_by_module had the parameter $assigned_user_id added.\nsearch_by_module had the parameter $select_fields added.\nv2_1\nget_entry_list method logic was modified.\nget_report_entries method logic was modified.\nv2\ncontact_by_email method was removed.\ncreate_account method was removed.\ncreate_case method was removed.\ncreate_contact method was removed.\ncreate_lead method was removed.\ncreate_opportunity method was removed.\ncreate_session method was removed.\nend_session method was removed.\nget_attendee_list method was removed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-2", "text": "end_session method was removed.\nget_attendee_list method was removed.\nget_contact_relationships method was removed.\nget_disc_client_file_list method was removed.\nget_document_revision return type was changed from return_document_revision to new_return_document_revision.\nget_encoded_file method was removed.\nget_encoded_portal_zip_file method was removed.\nget_encoded_zip_file method was removed.\nget_entries had the parameter $link_name_to_fields_array added.\nget_entries return type was changed from get_entry_result to get_entry_result_version2.\nget_entry had the parameter $link_name_to_fields_array added.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-3", "text": "get_entry had the parameter $link_name_to_fields_array added.\nget_entry return type was changed from get_entry_result to get_entry_result_version2.\nget_entry_list had the parameter $link_name_to_fields_array added.\nget_entry_list return type was changed from get_entry_list_result to get_entry_list_result_version2.\nget_gmt_time method was removed.\nget_mailmerge_document method was removed.\nget_mailmerge_document2 method was removed.\nget_modified_entries method was removed.\nget_module_fields had the parameter $fields added.\nget_module_fields return type was changed from module_fields to new_module_fields.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-4", "text": "get_note_attachment return type was changed from return_note_attachment to new_return_note_attachment.\nget_quick_sync_data method was removed.\nget_related_notes method was removed.\nget_relationships had the parameter $link_field_name added.\nget_relationships had the parameter $related_fields added.\nget_relationships had the parameter $related_module removed.\nget_relationships had the parameter $related_module_link_name_to_fields_array added.\nget_relationships return type was changed from get_relationships_result to get_entry_result_version2.\nget_report_entries method was added.\nget_required_upgrades method was removed.\nget_server_info method was added.\nget_server_time method was removed.\nget_server_version method was removed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-5", "text": "get_server_time method was removed.\nget_server_version method was removed.\nget_sugar_flavor method was removed.\nget_system_status method was removed.\nget_unique_system_id method was removed.\nis_loopback method was removed.\nis_user_admin method was removed.\nlogin had the parameter $name_value_list added.\nlogin return type was changed from set_entry_result to entry_value.\nlogout return type was changed from error_value to void.\noffline_client_available method was removed.\nrelate_note_to_module method was removed.\nsearch method was removed.\nsearch_by_module had the parameter $password removed.\nsearch_by_module had the parameter $session added.\nsearch_by_module had the parameter $user_name removed.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-6", "text": "search_by_module had the parameter $user_name removed.\nsearch_by_module return type was changed from get_entry_list_result to return_search_result.\nset_campaign_merge return type was changed from error_value to void.\nset_document_revision return type was changed from set_entry_result to new_set_entry_result.\nset_entries return type was changed from set_entries_result to new_set_entries_result.\nset_entries_details method was removed.\nset_entry return type was changed from set_entry_result to new_set_entry_result.\nset_note_attachment had the parameter $note type change from note_attachment to new_note_attachment.\nset_note_attachment return type was changed from set_entry_result to new_set_entry_result.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-7", "text": "set_relationship had the parameter $delete added.\nset_relationship had the parameter $link_field_name added.\nset_relationship had the parameter $module_id added.\nset_relationship had the parameter $module_name added.\nset_relationship had the parameter $name_value_list added.\nset_relationship had the parameter $related_ids added.\nset_relationship had the parameter $set_relationship_value removed.\nset_relationship return type was changed from error_value to new_set_relationship_list_result.\nset_relationships had the parameter $delete_array added.\nset_relationships had the parameter $link_field_names added.\nset_relationships had the parameter $module_ids added.\nset_relationships had the parameter $module_names added.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "198371c2ca92-8", "text": "set_relationships had the parameter $module_names added.\nset_relationships had the parameter $name_value_lists added.\nset_relationships had the parameter $related_ids added.\nset_relationships had the parameter $set_relationship_list removed.\nset_relationships return type was changed from set_relationship_list_result to new_set_relationship_list_result.\nsudo_user method was removed.\nsync_get_entries method was removed.\nsync_get_modified_relationships method was removed.\nsync_get_relationships method was removed.\nsync_set_entries method was removed.\nsync_set_relationships method was removed.\ntrack_email method was removed.\nupdate_portal_user method was removed.\nuser_list method was removed.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/Legacy_API/SOAP_Release_Notes/index.html"} {"id": "6c6581913828-0", "text": "REST API\nOverview\nv10 - v11.20 API documentation.\nWhat Is REST?\nREST stands for 'Representational State Transfer'. As of 7.x, REST is a core component of Sugar that defines how all information is exchanged within the application. The v10+ API is separate from the v1 - v4_1 REST APIs in that it has been rebuilt with the latest REST standards. Most functionality in the system, whether fetching or posting data, is interacting with the API in some way.\nGetting Started\nHow to Access the REST Service\nThe base endpoint for the REST service can be found at\u00c2\u00a0https:///rest/v{version}/.\nNote: version refers to the version of the API\u00c2\u00a0you are accessing.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-1", "text": "Note: version refers to the version of the API\u00c2\u00a0you are accessing.\nFor your reference, the help documentation for all versioned endpoints can be found by navigating to\u00c2\u00a0https:///rest/v{version}/help. Once you have identified your instance's base endpoint, we can begin by authenticating.\nAuthentication\nSugar uses two-legged OAuth2 for authentication. You simply need to do a POST to\u00c2\u00a0/rest//oauth2/token\u00c2\u00a0with the following parameters:\ngrant_type\nString\nType of request. Available grant types are \"password\" and \"refresh_token\".\nclient_id\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-2", "text": "client_id\nString\nThe client_id of \"sugar\" will automatically create an OAuth Key in the system and can be used for \"password\" authentication. The client_id of \"support_portal\" will create an OAuth Key if the portal system is enabled and will allow for portal authentication. Other client_id's can be created by the administrator in the OAuthKeys section in the Administration section and can be used in the future for additional grant types, if the client secret is filled in, it will be checked to validate the use of the client id.\nclient_secret\nString\nThe client's secret key.\nusername\nString\nThe username of the user authenticating to the system.\npassword\nString\nThe plaintext password the user authenticating to the system.\nplatform\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-3", "text": "String\nThe plaintext password the user authenticating to the system.\nplatform\nString\nDefaults to \"base\" allows you to have custom meta-data per platform. If using a value other than \"base\", you should make sure it is registered using the Platform extension\u00c2\u00a0or configure an API platform\u00c2\u00a0in Administration panel.\nFirst, we are going to log in using a\u00c2\u00a0grant_type\u00c2\u00a0of \"password\" and a\u00c2\u00a0platform\u00c2\u00a0of \"custom\". Normally, when logging into Sugar, users log in with a\u00c2\u00a0platform\u00c2\u00a0type of \"base\". We are using \"custom\" to avoid any potential\u00c2\u00a0login conflicts.\ncurl -X POST -H Cache-Control:no-cache -H \"Content-Type: application/json\" -d '{ \n \"grant_type\":\"password\", \n \"client_id\":\"sugar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-4", "text": "\"client_id\":\"sugar\", \n \"client_secret\":\"\", \n \"username\":\"\", \n \"password\":\"\", \n \"platform\":\"custom\" \n}' https://rest//oauth2/token\nOnce you get the response you will need to hold onto the\u00c2\u00a0access_token\u00c2\u00a0and the\u00c2\u00a0refresh_token. Anytime the\u00c2\u00a0access_token\u00c2\u00a0is invalidated, you will want to make another request to the token endpoint with a\u00c2\u00a0grant_type\u00c2\u00a0of \"refresh_token\". Store just the\u00c2\u00a0refresh_token\u00c2\u00a0in long-term storage \u00e2\u0080\u0093 not the username and password. The response from the server will be as follows:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-5", "text": "{\n \"access_token\": \"5ee48ec7-023e-ecff-5184-530bd0358868\",\n \"expires_in\": 3600,\n \"token_type\": \"bearer\",\n \"scope\": null,\n \"refresh_token\": \"5f197357-0167-f7a6-7912-530bd03275b6\",\n \"refresh_expires_in\": 1209600,\n \"download_token\": \"5f531625-e301-e3ea-1b11-530bd098be41\"\n}\nAvoiding Login Conflicts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-6", "text": "}\nAvoiding Login Conflicts\nLogin conflicts often occur when building integrations or running data migrations with the\u00c2\u00a0platform\u00c2\u00a0of \"base\" or any other client type that is in use. This is due to the fact that Sugar uses the same REST API to power all the various clients such as Sugar, Portal, Mobile, and even the Outlook Plugin. Due to this, you need to let the API know you aren't conflicting with another client that may be in use. The way to accomplish this is the\u00c2\u00a0/rest//oauth2/token\u00c2\u00a0call by changing the\u00c2\u00a0platform\u00c2\u00a0parameter to something other than \"base\", \"mobile\", or \"portal\". It is best to name it something that describes and identifies your current integration.\nInput / Output Data Types\nThe default input / output datatype for REST is JSON.\nDate Handling", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-7", "text": "The default input / output datatype for REST is JSON.\nDate Handling\nDate and date time inputs should be formatted following the ISO 8601 format. If the time zone is not included in a request, Sugar will assume the time zone of the user making the request.\nFilter on a specific date:\n{\n \"date_start\": \"2015-08-12\"\n}\nFilter on a date keyword using $dateRange:\n{\n \"date_start\": {\n \"$dateRange\": \"today\"\n }\n}\nFilter on date range using manual time zones:\n{\n \"date_start\": {\n \"$dateBetween\": [\n \"2015-09-10T00:00:00+10:00\",\n \"2015-09-10T23:59:59+10:00\"\n ]\n }\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "6c6581913828-8", "text": "]\n }\n}\nTopicsEndpointsThe following sections contain the in-app help documentation for the REST endpoints.Extending EndpointsHow to add your own custom endpoints to the REST API.API ExceptionsSugar comes with some predefined API Exceptions, located in ./include/api/, that can be called from API endpoints. These exceptions return a specific HTTP code and a message.\n \tLast modified: 2023-04-05 00:08:11", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/index.html"} {"id": "34a3edbfe6a1-0", "text": "API Exceptions\nOverview\nSugar comes with some predefined API Exceptions, located in ./include/api/, that can be called from API endpoints. These exceptions return a specific HTTP code and a message.\nStock Exceptions\nException Class\nHTTP Code\nError Label\nLanguage Label Key\nLanguage Label Value\nSugarApiExceptionError\n500\u00c2\u00a0\nfatal_error\u00c2\u00a0\nEXCEPTION_FATAL_ERROR\u00c2\u00a0\nYour request failed to complete. A fatal error occurred. Check logs for more details.\nSugarApiExceptionIncorrectVersion\n301\nincorrect_version\nEXCEPTION_INCORRECT_VERSION\u00c2\u00a0\nThe version of the API you are using is not correct for the current request.\nSugarApiExceptionNeedLogin\n401\nneed_login\nEXCEPTION_NEED_LOGIN\u00c2\u00a0\nYou need to be logged in to perform this action.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-1", "text": "You need to be logged in to perform this action.\nSugarApiExceptionInvalidGrant\n401\ninvalid_grant\nEXCEPTION_INVALID_TOKEN\u00c2\u00a0\nYour authentication token is invalid.\nSugarApiExceptionNotAuthorized\n403\nnot_authorized\nEXCEPTION_NOT_AUTHORIZED\nYou are not authorized to perform this action. Contact your administrator if you need access.\nSugarApiExceptionPortalUserInactive\n403\ninactive_portal_user\nEXCEPTION_INACTIVE_PORTAL_USER\u00c2\u00a0\nYou cannot access Portal because your portal account is inactive. Please contact customer support if you need access.\nSugarApiExceptionPortalNotConfigured\n403\nportal_not_configured\nEXCEPTION_PORTAL_NOT_CONFIGURED\u00c2", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-2", "text": "EXCEPTION_PORTAL_NOT_CONFIGURED\u00c2\u00a0\nPortal is not configured properly. Contact your Portal Administrator for assistance.\nSugarApiExceptionNoMethod\n404\nno_method\nEXCEPTION_NO_METHOD\u00c2\u00a0\nYour request was not supported. Could not find the HTTP method of your request for this path.\nSugarApiExceptionNotFound\n404\nnot_found\nEXCEPTION_NOT_FOUND\u00c2\u00a0\nYour requested resource was not found. Could not find a handler for the path specified in the request.\nSugarApiExceptionEditConflict\n409\nedit_conflict\nEXCEPTION_EDIT_CONFLICT\u00c2\u00a0\nEdit conflict, please reload the record data.\nSugarApiExceptionInvalidHash\n412\nmetadata_out_of_date\nEXCEPTION_METADATA_OUT_OF_DATE", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-3", "text": "EXCEPTION_METADATA_OUT_OF_DATE\nYour metadata or user hash did not match the server. Please resync your metadata.\nSugarApiExceptionRequestTooLarge\n413\nrequest_too_large\nEXCEPTION_REQUEST_TOO_LARGE\nYour request is too large to process.\nSugarApiExceptionMissingParameter\n422\nmissing_parameter\nEXCEPTION_MISSING_PARAMTER\nA required parameter in your request was missing.\nSugarApiExceptionInvalidParameter\n422\ninvalid_parameter\nEXCEPTION_INVALID_PARAMETER\nA parameter in your request was invalid.\nSugarApiExceptionRequestMethodFailure\n424\nrequest_failure\nEXCEPTION_REQUEST_FAILURE\nYour request failed to complete.\nSugarApiExceptionClientOutdated\n433\nclient_outdated", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-4", "text": "SugarApiExceptionClientOutdated\n433\nclient_outdated\nEXCEPTION_CLIENT_OUTDATED\nYour software is out of date, please update your client before attempting to connect again.\nSugarApiExceptionConnectorResponse\n502\nbad_gateway\nEXCEPTION_CONNECTOR_RESPONSE\nA connector or an integration request resulted in a failed response.\nSugarApiExceptionMaintenance\n503\nmaintenance\nEXCEPTION_MAINTENANCE\nSugarCRM is in maintenance mode. Only admins can login. Please contact your administrator for details.\nSugarApiExceptionServiceUnavailable\n503\nservice_unavailable\nEXCEPTION_SERVICE_UNAVAILABLE\nThe server cannot process your request because it is busy or unavailable at this time.\nSugarApiExceptionSearchUnavailable\n400\nsearch_unavailable", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-5", "text": "SugarApiExceptionSearchUnavailable\n400\nsearch_unavailable\nEXCEPTION_SEARCH_UNAVAILABLE\nSearch engine is temporarily unavailable.\nSugarApiExceptionSearchRuntime\n400\nsearch_runtime\nEXCEPTION_SEARCH_RUNTIME\u00c2\u00a0\nA search engine runtime error occurred. Please contact your System Administrator.\nUsing Exceptions\nWhen\u00c2\u00a0extending endpoints in Sugar,\u00c2\u00a0the\u00c2\u00a0stock API exceptions\u00c2\u00a0can be used to return errors and messages. The exception classes accept a single parameter on creation for the message value to return. This parameter can accept\u00c2\u00a0language label keys or plain text. If no parameter is passed exception, the error will default to the exception's default language label key. To call a stock API exception from custom code add the following snippet :\n//throwing an api exception using the stock message \nthrow new SugarApiExceptionError();", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-6", "text": "throw new SugarApiExceptionError();\n//throwing an api exception using a custom language label key\nthrow new SugarApiExceptionError('EXCEPTION_CSTM_LABEL_KEY');\n//throwing an api exception with text\nthrow new SugarApiExceptionError('There has been an error.');\nThis will return an http response code of 500 with the following response data:\n{\n \"error\": \"fatal_error\",\n \"error_message\": \"There has been an error.\"\n}\nCustom Exceptions\nSugar gives you the ability to create custom API exceptions by creating a new class in ./custom/include/api/ that extends the stock\u00c2\u00a0SugarApiException class. When extending the class you can provide the following properties in your custom\u00c2\u00a0code:\n$httpCode\nThe http response code to send back in the header. Defaults to 400 if not specified.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-7", "text": "The http response code to send back in the header. Defaults to 400 if not specified.\n$errorLabel\nThe string value returned in the 'error' key response.\n$messageLabel\nThe label to return as a default\u00c2\u00a0response if a message is not provided.\nExample\nThe following example will demonstrate how to create a custom exception.\n./custom/include/api/.php\n.php\n.php';\n//throwing custom api exception using the default message \nthrow new cstmSugarApiExceptionError();\n//throwing custom api exception using a custom language label key\nthrow new cstmSugarApiExceptionError('EXCEPTION_CSTM_LABEL_KEY');\n//throwing custom api exception with text\nthrow new cstmSugarApiExceptionError('There has been an error.');", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "34a3edbfe6a1-9", "text": "throw new cstmSugarApiExceptionError('There has been an error.');\nYou will then need to navigate to Admin > Repair > Quick Repair and Rebuild before using your exception.\nThe exception error will return a response of:\u00c2\u00a0\n{\n \"error\": \"my_error\",\n \"error_message\": \"There has been an error.\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/API_Exceptions/index.html"} {"id": "90580c61aff5-0", "text": "Endpoints\nThe following sections contain the in-app help documentation for the REST endpoints.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-1", "text": "Topics/Accounts/:record/link/:link_name/filter GETLists related filtered records./Activities GETActivities on the home page/Activities/filter GETActivities on the home page/Administration/aws GET[ADMIN] Gets Amazon Web Services configs from Sugar Serve./Administration/aws POST[ADMIN] Set Amazon Web Services configs in Sugar Serve./Administration/config/:category GET[ADMIN] Get Configuration Settings for a Category./Administration/config/:category POST[ADMIN] Set Configuration Settings for a Category./Administration/elasticsearch/indices GET[ADMIN] Elasticsearch index statistics/Administration/elasticsearch/mapping GET[ADMIN] Elasticsearch mapping/Administration/elasticsearch/queue GET[ADMIN] Elasticsearch queue statistics/Administration/elasticsearch/refresh/enable POST[ADMIN] Elasticsearch enable", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-2", "text": "POST[ADMIN] Elasticsearch enable refresh_interval/Administration/elasticsearch/refresh/status GET[ADMIN] Elasticsearch index refresh interval status/Administration/elasticsearch/refresh/trigger POST[ADMIN] Elasticsearch trigger explicit index refresh on all indices/Administration/elasticsearch/replicas/enable POST[ADMIN] Elasticsearch enable replicas/Administration/elasticsearch/replicas/status GET[ADMIN] Elasticsearch index replica status/Administration/elasticsearch/routing GET[ADMIN] Elasticsearch index routing/Administration/idm/migration/disable POST[ADMIN] Disable Idm migrations/Administration/idm/migration/enable POST[ADMIN] Enable Idm migrations/Administration/idm/users GETLists filtered user records./Administration/license/limits GET[ADMIN] Get License Limits./Administration/packages", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-3", "text": "GET[ADMIN] Get License Limits./Administration/packages GET[ADMIN] PackageManager list packages./Administration/packages POST[ADMIN] PackageManager upload package./Administration/packages/:file_install/install GET[ADMIN] PackageManager install a package./Administration/packages/:id/disable GET[ADMIN] PackageManager disable a package./Administration/packages/:id/enable GET[ADMIN] PackageManager enable a package./Administration/packages/:id/uninstall GET[ADMIN] PackageManager uninstall a package./Administration/packages/installed GET[ADMIN] PackageManager lists installed packages./Administration/packages/staged GET[ADMIN] PackageManager lists staged packages./Administration/packages/:unFile DELETE[ADMIN] PackageManager delete a package./Administration/portalmodules GET[ADMIN] Gets an array of modules currently enabled for Sugar", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-4", "text": "GET[ADMIN] Gets an array of modules currently enabled for Sugar Portal./Administration/search/fields GET[ADMIN] Search field configuration/Administration/search/reindex POST[ADMIN] Search schedule reindex/Administration/search/status GET[ADMIN] Search status/Administration/settings/auth GET[ADMIN] Fetch auth settings./Administration/settings/idmMode DELETE[ADMIN] Turn IDM-mode off./Administration/settings/idmMode POST[ADMIN] Turn IDM-mode on./Calendar/invitee_search GETTemporary API - Do Not Use! This endpoint will be removed in an upcoming release. Use /search endpoint instead./Calls POSTCreate a single event or a series of event records./Calls/:record DELETEDeletes either a single event record or a series of event records/Calls/:record PUTUpdate a calendar event", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-5", "text": "event record or a series of event records/Calls/:record PUTUpdate a calendar event record of the specified type./Cases/clients/portal PUT[ADMIN] Set a case as 'Requested For Close'/CommentLog/:record GETRetrieves a record./ConsoleConfiguration/config POSTSaves configuration changes in the database./ConsoleConfiguration/default-metadata GETGets the request metadata in JSON format./Contact/:record/Cases GETGet a contact's related cases, filtered by an expression, which are accessible to a contact with portal visibility./Contacts/:record/freebusy GETGet a contact's FreeBusy schedule/Currencies GETReturns a collection of Currency models/Dashboards/Activities GETList current user's filtered Activity Stream dashboards./Dashboards GETList current user's filtered Home dashboards./Dashboards POSTCreate a new Home dashboard./Dashboards/:id/restore-metadata", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-6", "text": "POSTCreate a new Home dashboard./Dashboards/:id/restore-metadata PUTRestores the metadata for a module's dashboard to the default metadata./Dashboards/ GETList current user's filtered dashboards./Dashboards/ POSTCreate a new dashboard./DataArchiver/:id/run POST[ADMIN] Performs the archiving process./Documents/:record/file/:field POSTAttaches a file to a field on a record./Documents/:record/file/:field PUTThis endpoint takes a file or image and saves it to a record that already contains an attachment in the specified field. The PUT method is very similar to the POST method but differs slightly in how the request is constructed. PUT requests should send the file data as the body of the request. Optionally, a filename query parameter can be sent with the request to assign a name. Additionally, the PUT/EmailAddresses POSTCreate", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-7", "text": "sent with the request to assign a name. Additionally, the PUT/EmailAddresses POSTCreate a new email address./EmailAddresses/:record PUTUpdate an existing email address./Emails GETLists filtered emails./Emails POSTCreate a new Emails record./Emails/count GETLists filtered emails./Emails/filter GETLists filtered emails./Emails/filter POSTLists filtered records./Emails/filter/count GETLists filtered records./Emails/filter/count POSTLists filtered records./Emails/:record GETRetrieves an Emails record./Emails/:record PUTUpdate an existing Emails record./Emails/:record/link POSTCreates a relationship to a pre-existing email./Emails/:record/link/:link_name/add_record_list/:remote_id POSTCreates relationships to a pre-existing email from a record", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-8", "text": "POSTCreates relationships to a pre-existing email from a record list./Emails/:record/link/:link_name/:remote_id DELETEDeletes an existing relationship between an email and another record./Emails/:record/link/:link_name/:remote_id POSTCreates a relationship to a pre-existing email./EmbeddedFiles/:record/file/:field GETRetrieves an attached file for a specific field on a record./EmbeddedFiles/:record/file/:field POSTAttaches a file to a field on a record./EmbeddedFiles/:record/file/:field PUTThis endpoint takes a file or image and saves it to a record that already contains an attachment in the specified field. The PUT method is very similar to the POST method but differs slightly in how the request is constructed. PUT requests should send the file data as the body of the request. Optionally,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-9", "text": "constructed. PUT requests should send the file data as the body of the request. Optionally, a filename query parameter can be sent with the request to assign a name. Additionally, the PUT/Employees GETLists filtered records./ExpressionEngine/:record/related GETRetrieve a Forecasting Information In SugarChart Format/ExpressionEngine/:record/related POSTRetrieve a Forecasting Information In SugarChart Format/Filters GETLists filtered records./ForecastManagerWorksheets GETReturns a collection of ForecastManagerWorksheet models/ForecastManagerWorksheets/assignQuota POSTAssign Quotas to All Reporting Users for a given timeperiod/ForecastManagerWorksheets/export GETReturns a record set in CSV format along with HTTP headers to indicate content type./ForecastManagerWorksheets/filter GETReturns a collection of ForecastManagerWorksheet models/ForecastManagerWorksheets/filter POSTReturns a collection of", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-10", "text": "ForecastManagerWorksheet models/ForecastManagerWorksheets/filter POSTReturns a collection of ForecastManagerWorksheet models/ForecastManagerWorksheets/:timeperiod_id GETReturns a collection of ForecastManagerWorksheet models/ForecastManagerWorksheets/:timeperiod_id/:user_id GETReturns a collection of ForecastManagerWorksheet models/ForecastWorksheets GETReturns a collection of ForecastWorksheet models/ForecastWorksheets/export GETReturns a record set in CSV format along with HTTP headers to indicate content type./ForecastWorksheets/filter GETReturns a collection of ForecastWorksheet models/ForecastWorksheets/filter POSTReturns a collection of ForecastWorksheet models/ForecastWorksheets/:record PUTSaves a collection of ForecastWorksheet models/ForecastWorksheets/:timeperiod_id GETReturns a collection of ForecastWorksheet", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-11", "text": "GETReturns a collection of ForecastWorksheet models/ForecastWorksheets/:timeperiod_id/:user_id GETReturns a collection of ForecastWorksheet models/Forecasts GETUpdates a record of a specified type as a favorite for the current user./Forecasts/config POSTCreates and/or updates the config settings for the Forecasts module/Forecasts/config PUTCreates and/or updates the config settings for the Forecasts module/Forecasts/enum/selectedTimePeriod GETForecastsApi Timeperiod filter info/Forecasts/init GETThis endpoint is used to return initialization data for the Forecasts module./Forecasts/reportees/:user_id GETForecastsApi Reportees/Forecasts/:timeperiod_id/progressManager/:user_id GETProjected Manager Data/Forecasts/:timeperiod_id/progressRep/:user_id GETThis endpoint is used to return the", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-12", "text": "GETThis endpoint is used to return the json Data not already in client view for the Forecasts rep projected panel./Forecasts/:timeperiod_id/quotas/direct/:user_id GETForecastsQuotasApi - Get/Forecasts/:timeperiod_id/quotas/rollup/:user_id GETForecastsQuotasApi - Get/Forecasts/:timeperiod_id/:user_id/chart/:display_manager GETRetrieve a Forecasting Information In SugarChart Format/Forecasts/user/:user_id GETThis endpoint is used to return a user's id, user_name, full_name, first_name, last_name, and is_manager param given a user's id./Genericsearch GETThis endpoint searches the content of the given modules using the provider specified by the \"generic_search\" configuration variable. If the variable is absent, the default provider is", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-13", "text": "by the \"generic_search\" configuration variable. If the variable is absent, the default provider is \"Elastic\"./Genericsearch POSTThis endpoint searches the content of the given modules using the provider specified by the \"generic_search\" configuration variable. If the variable is absent, the default provider is \"Elastic\"./integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value DELETERemoves a relationship based on lhs_sync_key_field_name and rhs_sync_key_field_name. If both the LHS and RHS records can be found with the respective fields, and those records are related, then remove the relationship of the RHS record to the LHS", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-14", "text": "and those records are related, then remove the relationship of the RHS record to the LHS record./integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value POSTCreates a relationship based on lhs_sync_key_field_name and rhs_sync_key_field_name. If both the LHS and RHS records can be found with the respective fields, then relate the RHS record to the LHS record./integrate//:record_id/:sync_key_field_name/:sync_key_field_value PATCHSets a sync key value for a", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-15", "text": "PATCHSets a sync key value for a record./integrate//:record_id/:sync_key_field_name/:sync_key_field_value PUTSets a sync key value for a record. Note that the PATCH method is recommended over the PUT method./integrate//:sync_key_field_name/:sync_key_field_value DELETEDeletes the record with the given sync_key_field_name./integrate//:sync_key_field_name/:sync_key_field_value GETRetrieves the record with the given sync_key_field_name./integrate//:sync_key_field_name/:sync_key_field_value PATCHUpserts based on sync_key_field_name. If a record can be found with", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-16", "text": "based on sync_key_field_name. If a record can be found with sync_key_field_name, then update. If the record does not exist, then create it./integrate//:sync_key_field_name/:sync_key_field_value PUTUpserts based on sync_key_field_name. If a record can be found with sync_key_field_name, then update. If the record does not exist, then create it. Note that the PATCH method is recommended over the PUT method./KBContents GETLists filtered records./KBContents/config POSTCreates and/or updates the config settings for the KBContents module/KBContents/config PUTCreates and/or updates the config settings for the KBContents module/KBContents/duplicateCheck POSTRuns a duplicate check against specified", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-17", "text": "module/KBContents/duplicateCheck POSTRuns a duplicate check against specified data./KBContents/filter GETLists filtered records./KBContents/:record/link POSTCreates relationships to a pre-existing record./KBContents/:record/notuseful PUTVote for Knowledge Base article./KBContents/:record/useful PUTVote for Knowledge Base article./Leads POSTCreate Lead with optional post-save actions/Leads/:leadId/convert POSTConvert Lead to a Contact and optionally link it to a new or existing instance of the modules specified/Leads/:record/freebusy GETGet a lead's FreeBusy schedule/Leads/register POSTCreates new Leads./Mail POSTCreate an email and send or save as draft./Mail/address/validate POSTValidate one or more email addresses./Mail/archive POSTArchives an", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-18", "text": "POSTValidate one or more email addresses./Mail/archive POSTArchives an email./Mail/attachment POSTUpload an email attachment/Mail/attachment/cache DELETEClears the user's attachment cache directory/Mail/attachment/:file_guid DELETEDelete an updated email attachment (where :file_guid is the guid value returned from the /Mail/attachment API)/Mail/recipients/find GETFinds recipients that match the search term./Mail/recipients/lookup POSTAccepts an array of one or more recipients and tries to resolve unsupplied arguments to provide more comprehensive/Meetings POSTCreate a single event or a series of event records./Meetings/:record DELETEDeletes either a single event record or a series of event records/Meetings/:record PUTUpdate a calendar event record of the specified type./Meetings/:record/external GETRetrieves info about", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-19", "text": "event record of the specified type./Meetings/:record/external GETRetrieves info about launching an external meeting/Notifications GETLists filtered records./Opportunities/config POSTOpportunity Config Save/Opportunities/enum/:field GETRetrieves the enum values for a specific field./Opportunities/:record PUTUpdate a record of the specified type./OutboundEmailConfiguration/list GETLists the current user's outbound email configurations for sending email./OutboundEmail POSTCreate a new OutboundEmail configuration to use to send emails over SMTP./OutboundEmail/:record PUTUpdate an OutboundEmail configuration./PdfManager GETLists filtered records./PdfManager/generate GETPdfManager Generate Endpoint Help/ProductTemplates/tree GETThis endpoint is designed to return a paged recordset of one level of product templates and product categories in/ProductTemplates/tree POSTThis endpoint is designed", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-20", "text": "one level of product templates and product categories in/ProductTemplates/tree POSTThis endpoint is designed to return a paged recordset of one level of product templates and product categories in/Quotes/config GETQuote Config GET Help/Quotes/config POSTQuote Config POST Help/Quotes/:record/opportunity POSTQuote Convert to Opportunity/Reports/:record/chart GETAn API to get chart data for a saved report./Reports/:record/record_count GETAn API to get total number of filtered records from a saved report./Reports/:record/records GETAn API to deliver filtered records from a saved report./Reports/:record/:type GETAn API to run a saved report and export the result./RevenueLineItems/multi-quote POSTConvert Multiple Revenue Line Item to a quote./RevenueLineItems/:record/quote POSTConvert a Revenue Line Item to a quote./Tags/:record PUTUpdate a record of the", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-21", "text": "a Revenue Line Item to a quote./Tags/:record PUTUpdate a record of the specified type./Teams/:record/link POSTCreates relationships to a pre-existing record./Teams/:record/link/:link_name/:remote_id DELETEDeletes an existing relationship between two records./Teams/:record/link/:link_name/:remote_id POSTCreates a relationship to a pre-existing record./TimePeriods GETLists filtered records./TimePeriods/current GETGet the get the current timeperiod/TimePeriods/:date GETReturn a Timeperiod by a given date/TimePeriods/filter GETLists filtered records./Users GETLists filtered records./Users/:record DELETEDelete a User and return its ID/Users/:record/freebusy GETGet a user's FreeBusy schedule/Users/:record/link", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-22", "text": "GETGet a user's FreeBusy schedule/Users/:record/link POSTCreates relationships to a pre-existing record./Users/:record/link/:link_name/:remote_id DELETEDeletes an existing relationship between two records./Users/:record/link/:link_name/:remote_id POSTCreates a relationship to a pre-existing record./VCardDownload GETDownloads a vCard./bulk POSTRun API calls in bulk./collection/:collection_name GETLists records from multiple modules at a time./connectors GETGets general info about connectors./connector/twitter/currentUser GETResponds with twitter timeline if connector is set up in administration/connector/twitter/:twitterId GETResponds with twitter timeline if connector is set up in administration/css GETRuns LessPHP for a platform and a theme and outputs an array of css files. If not found the css", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-23", "text": "a platform and a theme and outputs an array of css files. If not found the css files/css/preview GETRuns LessPHP for a platform and a theme and outputs the compiled CSS. It only allows to preview the theme because/globalsearch GETThis endpoint exposes the global search capability using solely the Elasticsearch backend as an alternative to the/globalsearch POSTThis endpoint exposes the global search capability using solely the Elasticsearch backend as an alternative to the/help GETFetches the help documentation/help/exceptions GETFetches the documentation on which exceptions are thrown by the API, their/lang/labels/dropdown PUTUpdate display labels of dropdown items for dropdowns under different languages./lang/labels/module PUTUpdate display labels of fields for modules under different languages./logger POSTLogs a message to the Sugar Log/login/content GETReturns information to facilitate receiving marketing content from", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-24", "text": "a message to the Sugar Log/login/content GETReturns information to facilitate receiving marketing content from SugarCRM./login/marketingContentUrl GETReturns the SugarCRM marketing content URL that is managed by the marketing team./me GETReturns the current user object./me PUTReturns the current user object./me/following GETReturns all of the current users followed records/me/password POSTCreate a new record of a specified type./me/password PUTCreate a new record of a specified type./me/preference/:preference_name DELETEDeletes a specific preference for the current user./me/preference/:preference_name GETReturns a specific preference for the current user./me/preference/:preference_name POSTCreates a preference for the current user./me/preference/:preference_name PUTUpdates a specific preference for the current user./me/preferences GETReturns all the current", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-25", "text": "a specific preference for the current user./me/preferences GETReturns all the current user's stored preferences./me/preferences PUTMass updates preferences for the user./metadata//:segment GET[ADMIN] Gets the desired segment for a given module.//Activities GETActivities on a module's list view//Activities/filter GETActivities on a module's list view//MassUpdate DELETEAn API to mass delete records.//MassUpdate PUTAn API to mass update records./ GETLists filtered records./ POSTCreate a new record of a specified type.//append/:target POSTAppend new node to target node as last child.//audit/export GETReturns a list of data changes for a specific module.//config GETRetrieves the config settings for", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-26", "text": "data changes for a specific module.//config GETRetrieves the config settings for a given module.//config POSTRetrieves the config settings for a given module.//config PUTRetrieves the config settings for a given module.//count GETLists filtered records.//customfield POSTCreate a new custom field for a specified module.//customfield/:field DELETEDelete a custom field for a specified module.//duplicateCheck POSTRuns a duplicate check against specified data.//enum/:field GETRetrieves the enum values for a specific field.//export/:record_list_id GETReturns a record set in CSV format along with HTTP headers to indicate content type.//favorites GETOpportunity Favorites Help//favorites", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-27", "text": "GETOpportunity Favorites Help//favorites POSTOpportunity Favorites Help//file/vcard_import POSTImports a person record from a vcard.//filter GETLists filtered records.//filter POSTLists filtered records.//filter/count GETLists filtered records.//filter/count POSTLists filtered records.//globalsearch GETThis endpoint exposes the global search capability using solely the Elasticsearch backend as an alternative to the//globalsearch POSTThis endpoint exposes the global search capability using solely the Elasticsearch backend as an alternative to the//insertafter/:target POSTInsert new node after target node.//insertbefore/:target POSTInsert new node before target", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-28", "text": "node after target node.//insertbefore/:target POSTInsert new node before target node.//:lhs_sync_key_field_value/link_by_sync_keys/:link_name/:rhs_sync_key_field_value DELETERemoves a relationship based on sync_key. If both the LHS and RHS records can be found with the respective fields, and those records are related, then remove the relationship of the RHS record to the LHS record.//:lhs_sync_key_field_value/link_by_sync_keys/:link_name/:rhs_sync_key_field_value POSTCreates a relationship based on sync_key. If both the LHS and RHS records can be found with the respective fields, then relate the RHS record to the LHS", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-29", "text": "records can be found with the respective fields, then relate the RHS record to the LHS record.//prepend/:target POSTAppend new node to target node as first child.//recent-product GETOpportunity Recent Product Help//recent-product POSTOpportunity Recent Product Help//:record DELETEDelete a record of a specified type.//:record GETRetrieves a record.//:record PUTUpdate a record of the specified type.//record_list POSTAn API to create and save lists of records.//record_list/:record_list_id DELETEAn API to delete lists of records//record_list/:record_list_id GETAn API to return record list data//:record/audit GETReturns data changes for a", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-30", "text": "return record list data//:record/audit GETReturns data changes for a specific record.//:record/children GETRetrieves all children of selected record.//:record/collection/:collection_name GETLists related records from multiple links at a time.//:record/collection/:collection_name/count GETCounts related records from multiple links at a time.//:record/favorite DELETERemoves a record of a specified type as a favorite for the current user.//:record/favorite PUTUpdates a record of a specified type as a favorite for the current user.//:record/file GETLists all populated fields of type \"file\" or of type \"image\" for a record.//:record/file/:field DELETERemoves an attachment from a field for a record and", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-31", "text": "DELETERemoves an attachment from a field for a record and subsequently removes the file from the file system.//:record/file/:field GETRetrieves an attached file for a specific field on a record.//:record/file/:field POSTAttaches a file to a field on a record.//:record/file/:field PUTThis endpoint takes a file or image and saves it to a record that already contains an attachment in the specified field. The PUT method is very similar to the POST method but differs slightly in how the request is constructed. PUT requests should send the file data as the body of the request. Optionally, a filename query parameter can be sent with the request to assign a name. Additionally, the PUT//:record/link POSTCreates relationships to a pre-existing record.//:record/link/activities", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-32", "text": "relationships to a pre-existing record.//:record/link/activities GETActivities on a module's list view//:record/link/activities/filter GETActivities on a module's list view//:record/link/history GETLists history filtered records.//:record/link/:link_name GETLists related filtered records.//:record/link/:link_name POSTCreates a related record.//:record/link/:link_name/add_record_list/:remote_id POSTCreates relationships to pre-existing record from a record list.//:record/link/:link_name/count GETLists related filtered records.//:record/link/:link_name/filter GETLists related filtered", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-33", "text": "GETLists related filtered records.//:record/link/:link_name/filter/count GETLists related filtered records.//:record/link/:link_name/filter/leancount GETLists related filtered records.//:record/link/:link_name/leancount GETLists related filtered records.//:record/link/:link_name/:remote_id DELETEDeletes an existing relationship between two records.//:record/link/:link_name/:remote_id GETRetrieves a related record with relationship role information.//:record/link/:link_name/:remote_id POSTCreates a relationship to a pre-existing record.//:record/link/:link_name/:remote_id PUTUpdates relationship specific information on an existing", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-34", "text": "PUTUpdates relationship specific information on an existing relationship.//:record/link/related_activities GETReturns related activity records for a specified record.//:record/moveafter/:target PUTMove existing node after target node.//:record/movebefore/:target PUTMove existing node before target node.//:record/movefirst/:target PUTMove existing node as first child of target node.//:record/movelast/:target PUTMove existing node as last child of target node.//:record/next GETRetrieves next sibling of selected record.//:record/parent GETRetrieves parent node for selected record.//:record/path GETRetrieves all parents of selected record.//:record/pii GETReturns personally identifiable information (pii) fields with", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-35", "text": "GETReturns personally identifiable information (pii) fields with current data and source of data capture for a specific record.//:record/prev GETRetrieves previous sibling of selected record.//:record/subscribe POSTThis endpoint creates a subscription record in the Subscriptions table, from a specified record and module. It allows the user to be subscribed to activity stream messages for the record being subscribed to, or \"followed\".//:record/unfavorite PUTRemoves a record of a specified type as a favorite for the current user.//:record/unsubscribe DELETEThis endpoint deletes a subscription record in the Subscriptions table, from a specified record and module. It allows the user to be unsubscribe from activity stream messages for the record being subscribed to, or \"followed\".//:record/vcard GETDownloads a", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-36", "text": "or \"followed\".//:record/vcard GETDownloads a vCard.//:root/tree GETRetrieves full tree for selected root record.//sync_key/:sync_key_field_value DELETEDeletes the record with the given sync_key.//sync_key/:sync_key_field_value GETRetrieves the record with the given sync_key.//sync_key/:sync_key_field_value PATCHUpserts based on sync_key. If a record can be found with sync_key, then update. If the record does not exist, then create it.//sync_key/:sync_key_field_value PUTUpserts based on sync_key. If a record can be found with sync_key, then update. If the record does not", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-37", "text": "If a record can be found with sync_key, then update. If the record does not exist, then create it. Note that the PATCH method is recommended over the PUT method.//temp/file/:field POSTSaves an image to a temporary folder.//temp/file/:field/:temp_id GETReads a temporary image and deletes it./mostactiveusers GETFetches the most active users for meetings, calls, inbound emails, and outbound emails./oauth2/bwc/login POSTATTENTION: FOR INTERNAL USAGE ONLY/oauth2/logout POSTExpires the token portion of the OAuth 2.0 specification./oauth2/sudo/:user_name POSTGet an access token as another user. The current user must be an admin in order to access this endpoint. This method is useful for integrations in order to be able to access the", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-38", "text": "to access this endpoint. This method is useful for integrations in order to be able to access the system with the same permission restrictions as a specified user. The calling user does not lose their existing token, this one is granted in addition./oauth2/token POSTRetrieves the token portion of the OAuth 2.0 specification./password/request GETSends an email request to reset a users password./ping GETResponds with \"pong\" if the access_token is valid./ping/whattimeisit GETResponds with the current time in server format./pmse_Business_Rules GETLists filtered records./pmse_Business_Rules/file/businessrules_import POSTImports a Process Business Rules definition from a .pbr file/pmse_Business_Rules/:record/brules GETExports a .pbr file with a Process Business Rules definition/pmse_Emails_Templates GETLists filtered", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-39", "text": "file with a Process Business Rules definition/pmse_Emails_Templates GETLists filtered records./pmse_Emails_Templates/file/emailtemplates_import POSTImports a Process Email Templates definition from a .pet file/pmse_Emails_Templates/:/find_modules GETGet the related module list for a module/pmse_Emails_Templates/:record/etemplate GETExports a .pet file with a Process Email Templates definition/pmse_Emails_Templates/variables/find GETGet the variable list for a module/pmse_Inbox/AdhocReassign PUTDeprecated endpoint./pmse_Inbox/AdhocReassign/:data/:flowId GETDeprecated endpoint./pmse_Inbox/ReassignForm PUTDeprecated", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-40", "text": "GETDeprecated endpoint./pmse_Inbox/ReassignForm PUTDeprecated endpoint./pmse_Inbox/ReassignForm/:data/:flowId GETDeprecated endpoint./pmse_Inbox GETReturns a list of Processes by user using filters/pmse_Inbox/cancelCases PUTCall methods to cancel a process/pmse_Inbox/case/:id/:idflow GETRetrieve information of the process record/pmse_Inbox/casesList GETReturns a list with the processes for Process Management/pmse_Inbox/changeCaseUser/:cas_id GETDeprecated endpoint./pmse_Inbox/clearLog/:typelog PUTClear the PMSE.log file log/pmse_Inbox/delete_notes/:id DELETEDeletes a process note/pmse_Inbox/engine_claim PUTClaims the processes", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-41", "text": "a process note/pmse_Inbox/engine_claim PUTClaims the processes to the current user/pmse_Inbox/engine_route PUTEvaluates the response of the user form Show Process [Approve, Reject, Route]/pmse_Inbox/filter GETReturns a list of Processes by user/pmse_Inbox/getLog GETReturn the text of the PMSE.log file/pmse_Inbox/historyLog/:filter GETGets the history log for a process/pmse_Inbox/note_list/:cas_id GETReturns the notes list for a process/pmse_Inbox/reactivateFlows PUTDeprecated endpoint./pmse_Inbox/reassignFlows PUTCall methods to reassign processes/pmse_Inbox/reassignFlows/:record GETRetrieve information to reassign", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-42", "text": "GETRetrieve information to reassign processes/pmse_Inbox/:record/file/:field GETReturns the process status image file/pmse_Inbox/save_notes POSTCreates a new note for a process/pmse_Inbox/settings GETRetrieve settings for the PA engine/pmse_Inbox/settings PUTUpdate settings for the SugarBPMTM engine/pmse_Inbox/unattendedCases GETRetrieves the processes to show on Unattended Process view/pmse_Inbox/userListByTeam/:id GETDeprecated endpoint./pmse_Project/ActivityDefinition/:record GETRetrieves the definition data for an activity/pmse_Project/ActivityDefinition/:record PUTUpdates the definition data for an activity/pmse_Project/CrmData/:data/:filter GETRetrieves information about Fields, Modules, Users, Roles,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-43", "text": "GETRetrieves information about Fields, Modules, Users, Roles, etc./pmse_Project/CrmData/:record/:filter PUTUpdates information about Fields, Modules, Users, Roles, etc./pmse_Project/EventDefinition/:record GETRetrieves the definition data for an event/pmse_Project/EventDefinition/:record PUTUpdates the definition data for an event/pmse_Project/GatewayDefinition/:record GETRetrieves the definition data for a gateway/pmse_Project/GatewayDefinition/:record PUTUpdates the definition data for a gateway/pmse_Project GETLists filtered records./pmse_Project/file/project_import POSTImports a Process Definition from a .bpm file/pmse_Project/project/:record GETRetrieves the schema data to be used by the Process Definition", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-44", "text": "GETRetrieves the schema data to be used by the Process Definition designer/pmse_Project/project/:record PUTUpdates the schema data from the Process Definition designer/pmse_Project/:record/dproject GETExports a .bpm file with a Process Definition/pmse_Project/:record/verify GETVerifies whether the Process Definition has any pending processes/pmse_Project/validateCrmData/:data/:filter GETValidates information about Fields, Modules, Users, Roles, etc./recent GETReturns all of the current users recently viewed records./rssfeed GETConsumes an RSS feed as a proxy and returns the feed up to a certain number of entries./search GETList records in a module. Searching, filtering and ordering can be applied to only fetch the records you are interested in. Additionally the set of returned fields can be restricted to speed up processing and reduce download times./theme", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-45", "text": "Additionally the set of returned fields can be restricted to speed up processing and reduce download times./theme GETFetches the customizable variables of a theme./theme POSTUpdates the variables.less (less file containing customizable vars in the theme folder) with the set of variables passed as arguments.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "90580c61aff5-46", "text": "Last modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/index.html"} {"id": "da5d03bfe106-0", "text": "/pmse_Project/GatewayDefinition/:record GET\nOverview\n Retrieves the definition data for a gateway\nSummary\n This endpoint will retrieve the JSON encoded definition data for the Process\n Definition gateway identified by the record input parameter.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe value for the gat_uid field in the pmse_bpmn_gateway record\nTrue\nResponse Arguments\nName\nType\nDescription\nsuccess\nBoolean\nThe status of the response\ndata\nArray\nThe definition data for the gateway\nResponse\n{\n \"success\":true,\n \"data\":\n [\n {\n \"flo_uid\":\"985528634573cabc8901d04029355451\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectGatewayDefinitionrecord_GET/index.html"} {"id": "da5d03bfe106-1", "text": "\"flo_condition\":\"[{\\u0022expType\\u0022:\\u0022BUSINESS_RULES\\u0022,\\u0022expLabel\\u0022:\\u0022Action # 1 is equal to \\\\\\u0022TRUE\\\\\\u0022\\u0022,\\u0022expValue\\u0022:\\u0022TRUE\\u0022,\\u0022expOperator\\u0022:\\u0022equals\\u0022,\\u0022expField\\u0022:\\u0022b6d2500c-bf29-2ad7-67a2-569d5debc7d9\\u0022}]\"\n }\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectGatewayDefinitionrecord_GET/index.html"} {"id": "718176b349a5-0", "text": "/Mail/recipients/find GET\nOverview\n Finds recipients that match the search term.\nRequest Arguments\nName\nType\nDescription\nRequired\n q\n \n string\n \n The search string\n \n False\n \n module_list\n \n string\n \n One of the following strings: users, accounts, contacts, leads, prospects, all\n Will determine which modules are searched using the given search string.\n \n False\n \n order_by\n \n string\n \n columns to sort by (one or more of $sortableColumns) with direction\n Example: name:asc,id:desc (will sort by last_name ASC and then id DESC)\n \n False\n \n offset\n \n int\n \n Offset of first record to return\n \n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailrecipientsfind_GET/index.html"} {"id": "718176b349a5-1", "text": "Offset of first record to return\n \n False\n \n max_num\n \n int\n \n Maximum records to return\n \n False\n \nRequest\n ?q=foo&module_list=all&order_by=name:asc,id:desc&offset=1&max_num=4\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n int\n \n Returns the next offset to be used if paging ahead for more records\n \n records\n \n Array\n \n Array of records found based on the search string and module_list. Each record contains the ID, module,\n name, email address and it's ID, opt out flag of the email address, and _acl of the recipient found.\n \nResponse\n{\n \"next_offset\": 3,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailrecipientsfind_GET/index.html"} {"id": "718176b349a5-2", "text": "Response\n{\n \"next_offset\": 3,\n \"records\": [\n {\n \"id\": \"seed_sarah_id\",\n \"_module\": \"Users\",\n \"name\": \"Sarah Smith\",\n \"email\": \"sarah@example.com\",\n \"email_address_id\": \"962cefa8-2f1t-11e6-9bee-80e6577b09a3\",\n \"opt_out\": false\n \"_acl\": {\n \"fields\": {\n \"assigned_user_id\": {\n \"write\":\"no\",\n \"create\":\"no\"\n },\n \"date_sent\": {\n \"write\":\"no\",\n \"create\":\"no\"\n }\n }\n }\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailrecipientsfind_GET/index.html"} {"id": "718176b349a5-3", "text": "}\n }\n }\n },\n {\n \"id\": \"962cefa8-2f1f-11e6-9ade-80e6500b09a0\",\n \"_module\": \"Leads\",\n \"name\": \"Antonia Piermarini\",\n \"email\": \"support.sales.vegan@example.name\",\n \"email_address_id\": \"756yafa8-2f1t-11e6-9bee-80e6577b09a3\",\n \"opt_out\": true\n \"_acl\": {\n \"fields\": {\n \"assigned_user_id\": {\n \"write\":\"no\",\n \"create\":\"no\"\n },\n \"date_sent\": {\n \"write\":\"no\",\n \"create\":\"no\"\n }\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailrecipientsfind_GET/index.html"} {"id": "718176b349a5-4", "text": "\"write\":\"no\",\n \"create\":\"no\"\n }\n }\n }\n },\n {\n \"id\": \"962850e2-2f1f-11e6-804e-80e6500b09a0\",\n \"_module\": \"Leads\",\n \"name\": \"Santa Leffingwell\",\n \"email\": \"vegan.vegan@example.info\",\n \"email_address_id\": \"211uhhg4-2f1t-11e6-9bee-80e6577b09a3\",\n \"opt_out\": false\n \"_acl\": {\n \"fields\": {\n \"assigned_user_id\": {\n \"write\":\"no\",\n \"create\":\"no\"\n },\n \"date_sent\": {\n \"write\":\"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailrecipientsfind_GET/index.html"} {"id": "718176b349a5-5", "text": "},\n \"date_sent\": {\n \"write\":\"no\",\n \"create\":\"no\"\n }\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Mail/recipients/find GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailrecipientsfind_GET/index.html"} {"id": "4dd0780b51f1-0", "text": "/Emails/filter/count POST\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned.\n \n Example: name,account_type,description\n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-2", "text": "Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-3", "text": "False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example\n you would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-4", "text": "$equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-5", "text": "$is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-6", "text": "The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\nThere are two module expressions, they operate on modules instead of fields. The current module can be specified by\neither using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\nfilter the records in the current module to only your favorites. The only currently accepted module expressions are\n\"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-7", "text": "Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-8", "text": "\"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-9", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-10", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-11", "text": "\"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-12", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-13", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-14", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-15", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-16", "text": "\"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-17", "text": "\"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-18", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "4dd0780b51f1-19", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfiltercount_POST/index.html"} {"id": "b6813306b838-0", "text": "//:record/unsubscribe DELETE\nSummary:\nThis endpoint deletes a subscription record in the Subscriptions table, from a specified record and module. It allows the user to be unsubscribe from activity stream messages for the record being subscribed to, or \"followed\".\nQuery Parameters:\nThis endpoint does not accept any parameters.\nInput Example:\nThis endpoint does not accept any input.\nOutput Example:\n If successful, the endpoint responds with a bool of true.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordunsubscribe_DELETE/index.html"} {"id": "c3c651d33db2-0", "text": "//:record/link/:link_name/filter GET\nOverview\n Lists related filtered records.\nSummary\n This endpoint will return a set of related records filtered by an expression. The filter can be applied to multiple\n fields and have multiple and/or conditions in it. Care will need to be taken to make sure this filter has\n appropriate indexes on the server side otherwise the runtime of the endpoint will be very long. Related fields can\n be searched by specifying the field name as: \"link_name.remote_field\", so if you wished to search the Accounts\n module by a related member account you would use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-1", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned. This argument\n can be combined with the view argument.\n \n Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-2", "text": "in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-3", "text": "would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-4", "text": "$contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-5", "text": "Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-6", "text": "}\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\n Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-7", "text": "Array\n \n An array of results containing matched records.\n \nRepsonse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-8", "text": "\"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-9", "text": "\"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-10", "text": "\"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-11", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-12", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-13", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-14", "text": "\"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-15", "text": "\"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-16", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-17", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-18", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "c3c651d33db2-19", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefilter_GET/index.html"} {"id": "544e5ad7741c-0", "text": "//:record/file/:field PUT\nOverview\n This endpoint takes a file or image and saves it to a record that already contains an attachment in the specified field. The PUT method is very similar to the POST method but differs slightly in how the request is constructed. PUT requests should send the file data as the body of the request. Optionally, a filename query parameter can be sent with the request to assign a name. Additionally, the PUT \n method can accept base64 encoded file data which will be decoded by the endpoint\n if the content_transfer_encoding parameter is set to 'base64'.NOTE: In lieu of the content_transfer_encoding parameter, a\n request header of X-Content-Transfer-Encoding can also be sent with a value\n of 'base64'. In the event both the content transfer encoding header and request", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_PUT/index.html"} {"id": "544e5ad7741c-1", "text": "of 'base64'. In the event both the content transfer encoding header and request\n parameter are sent, the header will be used.\nRequest Arguments\nName\nType\nDescription\nRequired\n filename\n \n String\n \n Filename to save the document as\n \n False\n \n content_transfer_encoding\n \n String\n \n When set to 'base64', indicates the file contents are base64 encoded\n and will result in the file contents being base64 decoded before being\n saved\n \n False\n \nRequest\nPUT /rest/v10/Notes/abcd-1234/file/field/ HTTP/1.1 Host: localhost Connection: keep-alive Content-Length: 23456 Content-Type: application/document-doc ...This is where the bin data would be\nResponse Arguments\nName\nType\nDescription\n field", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_PUT/index.html"} {"id": "544e5ad7741c-2", "text": "Response Arguments\nName\nType\nDescription\n field\n \n Array\n \n The fields containing file properties.\n \n field.content-type\n \n String\n \n The files content type.\n \n field.content-length\n \n Integer\n \n The files content length.\n \n field.name\n \n String\n \n The files name.\n \n field.width\n \n Integer\n \n The width of the image.\n \n field.height\n \n Integer\n \n The height of the image.\n \n field.uri\n \n String\n \n The URI of the file.\n \nResponse\n{\n \"picture\":{\n \"content-type\":\"image\\/png\",\n \"content-length\":72512,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_PUT/index.html"} {"id": "544e5ad7741c-3", "text": "\"content-length\":72512,\n \"name\":\"1a7b8f5c-b11c-0094-c8d8-512e9daaa983\",\n \"width\":933,\n \"height\":519,\n \"uri\":\"http:\\/\\/sugarcrm\\/rest\\/v10\\/Contacts\\/fa300a0e-0ad1-b322-9601-512d0983c19a\\/file\\/picture\"\n }\n \"attachment\":{\n \"content-type\":\"application/document-doc\",\n \"content-length\":\"873921\",\n \"name\":\"myFile.doc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_PUT/index.html"} {"id": "544e5ad7741c-4", "text": "\"name\":\"myFile.doc\",\n \"uri\": \"http:\\/\\/sugarcrm\\/rest\\/v10\\/Contacts\\/f2f9aa4d-99a8-e86e-f4d5-512d0986effa\\/file\\/attachment\"\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/file/:field PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_PUT/index.html"} {"id": "614f50582523-0", "text": "/PdfManager/generate GET\nOverview\n PdfManager Generate Endpoint Help\nSummary\n This endpoint returns and initiates download of a PDF.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe Module name of the Bean from which to create a PDF\nTrue\nrecord\nString\nThe Record ID from which to create a PDF\nTrue\npdf_template_id\nString\nThe PDF Template ID to use to create the PDF\nTrue\nsugarpdf\nString\nThe type of PDF to use. Defaults to 'pdfmanager'.\nFalse\nRequest\n{\n \"module\": \"Quotes\",\n \"record\": \"abcde-fghij-12345-67890\",\n \"pdf_template_id\": \"12345-67890-abcde-fghij\",\n \"sugarpdf\": \"pdfmanager\"\n}\nResponse", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManagergenerate_GET/index.html"} {"id": "614f50582523-1", "text": "\"sugarpdf\": \"pdfmanager\"\n}\nResponse\n The response is a base64 encoded string of the contents of the PDF file.\nChange Log\nVersion\nChange\nv11.3\nAdded /PdfManager/generate GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManagergenerate_GET/index.html"} {"id": "15c3c63c464f-0", "text": "//:record/prev GET\nOverview\n Retrieves previous sibling of selected record.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n :record\n \n String\n \n The ID of record\n \n True\n \nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\n{\n id: \"e1ae8646-ac90-104a-59d6-5412cf5009b2\"\n name: \"SugarCategoryExample\"\n date_entered: \"2014-09-12 10:47:46\"\n date_modified: \"2014-09-12 10:47:46\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordprev_GET/index.html"} {"id": "15c3c63c464f-1", "text": "date_modified: \"2014-09-12 10:47:46\"\n modified_user_id: \"9c9ad14e-1789-3340-f88d-5412cf551d3b\"\n created_by: \"9c9ad14e-1789-3340-f88d-5412cf551d3b\"\n description: null\n deleted: \"0\"\n source_id: null\n source_type: null\n source_meta: null\n root: \"e1ae8646-ac90-104a-59d6-5412cf5009b2\"\n lft: \"6\"\n rgt: \"11\"\n level: \"1\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/prev GET endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordprev_GET/index.html"} {"id": "15c3c63c464f-2", "text": "Added //:record/prev GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordprev_GET/index.html"} {"id": "366f45bca1b5-0", "text": "/Dashboards/ GET\nOverview\n List current user's filtered dashboards.\nSummary\n This endpoint will return a set of dashboards filtered by an expression. The filter can be applied to multiple\n fields and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its\n id. If both a filter definition and a filter id are passed, currently the definition will override the id,\n but please do not rely on this behavior as it is subject to change. Care will need to be\n taken to make sure that any filters used have appropriate indexes on the server side otherwise the runtime of the\n endpoint will be very long.\nNotice\nThis endpoint is not supported in v11. If you continue to use v10 of the API, your\n REST calls should behave as below. But, it is advisable to upgrade to v11.Migrating to v11:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_GET/index.html"} {"id": "366f45bca1b5-1", "text": "For more information on behavior in v11, refer to GET /.\n \n Recommended Replacement:\nGET /Dashboards\n The module name is no longer part of the path. To specify a module name, include it as a filter\n parameter. For example, to retrieve all dashboards from the Accounts module, usev11: \nGET /Dashboards?filter[0][dashboard_module]=Accounts\n name, id. etc. are no longer specified as default fields. To retain the default fields, usev11: \n GET /Dashboards?filter[0][dashboard_module]=Accounts&fields=id,name,view_name\n \nRequest Arguments\nName\nType\nDescription\nRequired\nfilter\nString\nSee Filter API.\nFalse\nfilter_id\nString\n Identifier for a preexisting filter. See \n the Filter API for details.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_GET/index.html"} {"id": "366f45bca1b5-2", "text": "the Filter API for details.\n \nFalse\nmax_num\nInteger\nMax number of records that can be returned. Default is 20.\nFalse\noffset\nInteger\nThe number of records to skip over before records are returned. Default is 0.\nFalse\nfields\nString\n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n For more details on additional field parameters, see\n Relate API and\n Collection API.\n \nFalse\norder_by\nString\nSee Filter API.\nFalse\ndeleted\nBoolean\nBoolean to show deleted records in the result set.\nFalse\nResponse Arguments\nName\nType\nDescription\nnext_offset\nInteger", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_GET/index.html"} {"id": "366f45bca1b5-3", "text": "False\nResponse Arguments\nName\nType\nDescription\nnext_offset\nInteger\n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \nrecords\nArray\nAn array of results containing matched records.\nResponse\n{\n \"next_offset\": -1,\n \"records\": [\n {\n \"id\": \"d509b3da-29f6-7b23-7cce-56fab1a6335b\",\n \"name\": \"Accounts Dashboard\",\n \"date_modified\": \"2016-03-29T09:46:00-07:00\",\n \"view_name\": \"records\",\n \"_acl\": {\n \"fields\": {}\n },\n \"view\": \"records\",\n \"_module\": \"Dashboards\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_GET/index.html"} {"id": "366f45bca1b5-4", "text": "\"_module\": \"Dashboards\"\n },\n {\n \"id\": \"cc4982cd-0bdf-bad4-d079-56fab4bdddf1\",\n \"name\": \"Contacts Dashboard\",\n \"date_modified\": \"2016-03-29T09:57:58-07:00\",\n \"view_name\": \"records\",\n \"_acl\": {\n \"fields\": {}\n },\n \"view\": \"records\",\n \"_module\": \"Dashboards\"\n }\n ]\n}\nChange Log\nVersion\nChange\nv11\nNo longer supported. Please use GET /Dashboards instead.\nv10\nAdded /Dashboards/ GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_GET/index.html"} {"id": "3a77d2320692-0", "text": "/EmbeddedFiles/:record/file/:field POST\nOverview\n Attaches a file to a field on a record.\nRequest Arguments\nName\nType\nDescription\nRequired\n format\n \n String\n \n The data format. Currently accepts 'sugar-html-json'.\n \n True\n \n delete_if_fails\n \n Boolean\n \n Indicates whether the API is to mark related record deleted if the file upload fails.\n \n False\n \n oauth_token\n \n String\n \n The oauth_token value.\n \n False - Required if only if delete_if_fails is true.\n \n \n \n String\n \n The field and file to populate.\n \n Example: {\"\":\"@\\/path\\/to\\/ExampleDocument.txt\"}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmbeddedFilesrecordfilefield_POST/index.html"} {"id": "3a77d2320692-1", "text": "Example: {\"\":\"@\\/path\\/to\\/ExampleDocument.txt\"}\n True\n \nRequest\n{\n \"format\":\"sugar-html-json\",\n \"delete_if_fails\":true,\n \"oauth_token\":\"43b6b327-cc70-c301-3299-512ffb99ad97\",\n \"\":\"@\\/path\\/to\\/ExampleDocument.txt\"\n}\nResponse Arguments\nName\nType\nDescription\n content-type\n \n String\n \n The files content type.\n \n content-length\n \n Integer\n \n The files content length.\n \n name\n \n String\n \n The files name.\n \n uri\n \n String\n \n The URI of the file.\n \nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmbeddedFilesrecordfilefield_POST/index.html"} {"id": "3a77d2320692-2", "text": "String\n \n The URI of the file.\n \nResponse\n{\n \"content-type\":\"text\\/plain\",\n \"content-length\":16,\n \"name\":\"ExampleDocument.txt\",\n \"uri\":\"http:\\/\\/sugarcrm\\/rest\\/v10\\/Notes\\/ca66c92f-5a8b-28b4-4fc8-512d099b790b\\/file\\/?format=sugar-html-json&delete_if_fails=1&oauth_token=6ec91cf3-1f97-25b9-e0b1-512f8971b2d4\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/file/:field POST endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmbeddedFilesrecordfilefield_POST/index.html"} {"id": "3a77d2320692-3", "text": "Added //:record/file/:field POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmbeddedFilesrecordfilefield_POST/index.html"} {"id": "60bebf252fb4-0", "text": "/collection/:collection_name GET\nOverview\n Lists records from multiple modules at a time.\nSummary\n This endpoint will return a set of records fetched from multiple modules defined by :collection_name.\n The records will be filtered, sorted and truncated to max_num as a single collection.\n Collections may use a field mapping. For instance, the due_date of Tasks may be referred to as date_end.\n In this case the alias (date_end) should be used in filter and order_by expressions instead of real field name.\n Note that response data still contains the original fields for the module.\nRequest Arguments\nName\nType\nDescription\nRequired\nfields\nString\n See Filter API. If the collection definition uses aliases, then aliases should be used instead of real field names.\n \nFalse\nmax_num\nInteger\n See Filter API.\n \nFalse\nfilter", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/collectioncollection_name_GET/index.html"} {"id": "60bebf252fb4-1", "text": "False\nmax_num\nInteger\n See Filter API.\n \nFalse\nfilter\nString\n See Filter API. If collection definition uses aliases, then aliases should be used instead of real field names.\n \nFalse\norder_by\nString\n See Filter API. If collection definition uses aliases, then aliases should be used instead of real field names.\n \nFalse\noffset\nMap\n Individual offset for each module which the collection consists of.\n -1 (or any negative value) denotes that the module should be skipped.\n If module offset is not specified, it defaults to 0.\n \nFalse\nResponse Arguments\nName\nType\nDescription\nnext_offset\nMap\n The next offset to retrieve records. -1 will be returned for the given module when there are no more records.\n \nrecords\nArray\nThe record result set.\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/collectioncollection_name_GET/index.html"} {"id": "60bebf252fb4-2", "text": "records\nArray\nThe record result set.\nResponse\n{\n \"next_offset\": {\n \"Calls\": 1,\n \"Meetings\": -1,\n \"Tasks\": -2,\n },\n \"records\": [\n {\n \"_module\": \"Calls\",\n \"id\": \"8703fbf3-0ffa-c288-8d2c-512f943ecdc3\",\n \"name\": \"Discuss review process\",\n \"date_end\": \"2014-02-26T19:12:00+00:00\"\n },\n {\n \"_module\": \"Tasks\",\n \"id\": \"e1c495cb-af17-1b37-dd66-512f934fe155\",\n \"name\": \"Introduce all players\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/collectioncollection_name_GET/index.html"} {"id": "60bebf252fb4-3", "text": "\"name\": \"Introduce all players\",\n \"due_date\": \"2014-02-26T19:12:00+00:00\"\n },\n {\n \"_module\": \"Tasks\",\n \"id\": \"456b7848-9959-5a64-cd34-512d0938addd\",\n \"name\": \"Follow-up on proposal\",\n \"due_date\": \"2014-02-26T19:12:00+00:00\"\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added /collection/:collection_name GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/collectioncollection_name_GET/index.html"} {"id": "4ee5b62d9e5f-0", "text": "//:record/children GET\nOverview\n Retrieves all children of selected record.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n :record\n \n String\n \n The ID of record\n \n True\n \nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\n[{\n \"id\": \"045c1de6-327b-11e4-818b-5404a67f3363\",\n \"name\": \"Financial\",\n \"date_entered\": null,\n \"date_modified\": null,\n \"modified_user_id\": null,\n \"created_by\": null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordchildren_GET/index.html"} {"id": "4ee5b62d9e5f-1", "text": "\"modified_user_id\": null,\n \"created_by\": null,\n \"description\": null,\n \"deleted\": \"0\",\n \"source_id\": null,\n \"source_type\": null,\n \"source_meta\": null,\n \"root\": \"935d3e07-327a-11e4-818b-5404a67f3363\",\n \"lft\": \"11\",\n \"rgt\": \"14\",\n \"level\": \"2\"\n}, {\n \"id\": \"0f65a6c7-327b-11e4-818b-5404a67f3363\",\n \"name\": \"Agreements\",\n \"date_entered\": null,\n \"date_modified\": null,\n \"modified_user_id\": null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordchildren_GET/index.html"} {"id": "4ee5b62d9e5f-2", "text": "\"date_modified\": null,\n \"modified_user_id\": null,\n \"created_by\": null,\n \"description\": null,\n \"deleted\": \"0\",\n \"source_id\": null,\n \"source_type\": null,\n \"source_meta\": null,\n \"root\": \"935d3e07-327a-11e4-818b-5404a67f3363\",\n \"lft\": \"15\",\n \"rgt\": \"16\",\n \"level\": \"2\"\n}, {\n \"id\": \"14d30bf3-327b-11e4-818b-5404a67f3363\",\n \"name\": \"Clients\",\n \"date_entered\": null,\n \"date_modified\": null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordchildren_GET/index.html"} {"id": "4ee5b62d9e5f-3", "text": "\"date_entered\": null,\n \"date_modified\": null,\n \"modified_user_id\": null,\n \"created_by\": null,\n \"description\": null,\n \"deleted\": \"0\",\n \"source_id\": null,\n \"source_type\": null,\n \"source_meta\": null,\n \"root\": \"935d3e07-327a-11e4-818b-5404a67f3363\",\n \"lft\": \"17\",\n \"rgt\": \"18\",\n \"level\": \"2\"\n}]\nChange Log\nVersion\nChange\n v10\n \n Added //:record/children GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordchildren_GET/index.html"} {"id": "8b126ecf57b2-0", "text": "/Calendar/invitee_search GET\nOverview\n Temporary API - Do Not Use! This endpoint will be removed in an upcoming release. Use /search endpoint instead.\n Searches for people to invite to an event (meeting or call).\nRequest Arguments\nName\nType\nDescription\nRequired\n q\n \n String\n \n The search text to match records on.\n \n True\n \n module_list\n \n String\n \n Comma delimited list of modules to search.\n \n True\n \n search_fields\n \n String\n \n Comma delimited list of fields to search.\n \n True\n \n fields\n \n String\n \n Comma delimited list of fields to return. Search fields will automatically be added to return list.\n \n True\n \nResponse Arguments\nName", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calendarinvitee_search_GET/index.html"} {"id": "8b126ecf57b2-1", "text": "True\n \nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Currently only returns -1 as paging is not supported yet.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\": -1,\n \"records\": [\n {\n \"id\": \"17283aad-8d15-c545-fc5a-5422fe3d8ef8\",\n \"date_modified\": \"2014-09-24T13:25:28-04:00\",\n \"email\": [\n {\n \"email_address\": \"hr.phone.support@example.cn\",\n \"invalid_email\": false,\n \"opt_out\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calendarinvitee_search_GET/index.html"} {"id": "8b126ecf57b2-2", "text": "\"invalid_email\": false,\n \"opt_out\": true,\n \"primary_address\": false,\n \"reply_to_address\": false\n },\n {\n \"email_address\": \"section.section.phone@example.edu\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": true,\n \"reply_to_address\": true\n }\n ],\n \"full_name\": \"Renaldo Cuffee\",\n \"account_name\": \"EEE Endowments LTD\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Contacts\",\n \"_search\": {\n \"highlighted\": {\n \"account_name\": {\n \"text\": \"EEE Endowments LTD\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calendarinvitee_search_GET/index.html"} {"id": "8b126ecf57b2-3", "text": "\"account_name\": {\n \"text\": \"EEE Endowments LTD\",\n \"module\": \"Contacts\",\n \"label\": \"LBL_ACCOUNT_NAME\"\n }\n }\n }\n },\n {\n \"id\": \"19c0fa4a-a6c0-940f-7ad6-5422fe62a00a\",\n \"date_modified\": \"2014-09-24T13:25:28-04:00\",\n \"email\": [\n {\n \"email_address\": \"qa.beans@example.com\",\n \"invalid_email\": false,\n \"opt_out\": true,\n \"primary_address\": false,\n \"reply_to_address\": false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calendarinvitee_search_GET/index.html"} {"id": "8b126ecf57b2-4", "text": "\"reply_to_address\": false\n },\n {\n \"email_address\": \"the.phone.sales@example.de\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"primary_address\": true,\n \"reply_to_address\": true\n }\n ],\n \"full_name\": \"Noble Canto\",\n \"account_name\": \"EEE Endowments LTD\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Contacts\",\n \"_search\": {\n \"highlighted\": {\n \"account_name\": {\n \"text\": \"EEE Endowments LTD\",\n \"module\": \"Contacts\",\n \"label\": \"LBL_ACCOUNT_NAME\"\n }\n }\n }\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calendarinvitee_search_GET/index.html"} {"id": "8b126ecf57b2-5", "text": "}\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //send_invites GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calendarinvitee_search_GET/index.html"} {"id": "c0f48344cbd6-0", "text": "/Documents/:record/file/:field POST\nOverview\n Attaches a file to a field on a record.\nRequest Arguments\nName\nType\nDescription\nRequired\n format\n \n String\n \n The data format. Currently accepts 'sugar-html-json'.\n \n True\n \n delete_if_fails\n \n Boolean\n \n Indicates whether the API is to mark related record deleted if the file upload fails.\n \n False\n \n oauth_token\n \n String\n \n The oauth_token value.\n \n False - Required if only if delete_if_fails is true.\n \n \n \n String\n \n The field and file to populate.\n \n Example: {\"\":\"@\\/path\\/to\\/ExampleDocument.txt\"}\n True", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_POST/index.html"} {"id": "c0f48344cbd6-1", "text": "Example: {\"\":\"@\\/path\\/to\\/ExampleDocument.txt\"}\n True\n \nRequest\n{\n \"format\":\"sugar-html-json\",\n \"delete_if_fails\":true,\n \"oauth_token\":\"43b6b327-cc70-c301-3299-512ffb99ad97\",\n \"\":\"@\\/path\\/to\\/ExampleDocument.txt\"\n}\nResponse Arguments\nName\nType\nDescription\n content-type\n \n String\n \n The files content type.\n \n content-length\n \n Integer\n \n The files content length.\n \n name\n \n String\n \n The files name.\n \n uri\n \n String\n \n The URI of the file.\n \nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_POST/index.html"} {"id": "c0f48344cbd6-2", "text": "String\n \n The URI of the file.\n \nResponse\n{\n \"content-type\":\"text\\/plain\",\n \"content-length\":16,\n \"name\":\"ExampleDocument.txt\",\n \"uri\":\"http:\\/\\/sugarcrm\\/rest\\/v10\\/Notes\\/ca66c92f-5a8b-28b4-4fc8-512d099b790b\\/file\\/?format=sugar-html-json&delete_if_fails=1&oauth_token=6ec91cf3-1f97-25b9-e0b1-512f8971b2d4\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/file/:field POST endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_POST/index.html"} {"id": "c0f48344cbd6-3", "text": "Added //:record/file/:field POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_POST/index.html"} {"id": "49468e6f5eec-0", "text": "//MassUpdate DELETE\nOverview\n An API to mass delete records.\nQuery String Parameters\nName\nType\nDescription\nRequired\n massupdate_params\n \n Array\n \n Mass update parameters.\n \n True\n \n massupdate_params.uid\n \n Array\n \n A list of ids.\n \n True\n \nRequest\nMass Deleting Records by ID in a Module\n{\n \"massupdate_params\":{\n \"uid\":[\n \"ebf22b86-94ea-1601-4f4f-512d09173438\",\n \"e3b71c55-d96b-80bb-1696-512d09672398\"\n ]\n }\n}\nResponse Arguments\nName\nType\nDescription\n Status\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleMassUpdate_DELETE/index.html"} {"id": "49468e6f5eec-1", "text": "Response Arguments\nName\nType\nDescription\n Status\n \n String\n \n The status of the mass update. Possible value is 'done'.\n \nOutput Done Example\n{\n \"status\":\"done\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //MassUpdate DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleMassUpdate_DELETE/index.html"} {"id": "9e60133147ae-0", "text": "//sync_key/:sync_key_field_value PATCH\nOverview\nUpserts based on sync_key. If a record can be found with sync_key, then update. If the record does not exist, then create it.\nNote:\u00c2\u00a0This endpoint cannot be used to set the sync_key for an existing Sugar record. To do so, it is recommended to use the set sync key endpoint to update the matching Sugar record ID. Once the sync_key is set for the record, then it is possible to leverage this endpoint.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n//sync_key/:sync_key_field_value\nResponse Arguments\nName\nType", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulesync_keysync_key_field_value_PATCH/index.html"} {"id": "9e60133147ae-1", "text": "Response Arguments\nName\nType\nDescription\nrecord\nString\nThe ID of the record that was upserted.\nResponse\nStatus 201: For a created record\nStatus 200: For an updated record\n{ record: \"a0328573-a252-a27c-3530-4e4297d4c9e1\"} \nChange Log\nVersion\nChange\nv11_10\nAdded //sync_key/:sync_key_field_value\u00c2\u00a0PATCH endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulesync_keysync_key_field_value_PATCH/index.html"} {"id": "ae77753b3bdf-0", "text": "/pmse_Project GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "ae77753b3bdf-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Project_GET/index.html"} {"id": "7aad56c0ca91-0", "text": "/Employees GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "7aad56c0ca91-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Employees_GET/index.html"} {"id": "8530fe035ea4-0", "text": "/KBContents/filter GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "8530fe035ea4-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsfilter_GET/index.html"} {"id": "b3c95948d522-0", "text": "//:record/moveafter/:target PUT\nOverview\n Move existing node after target node.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n target\n \n String\n \n The ID of record that will be used as target to move node after\n \n True\n \nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\nThis endpoint return a record GUID that was moved\n\"1b7b868d-7357-2e29-7513-54169bdc444d\"\nChange Log\nVersion\nChange\n v10\n \n Added //moveafter/:target PUT endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordmoveaftertarget_PUT/index.html"} {"id": "b3c95948d522-1", "text": "Added //moveafter/:target PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordmoveaftertarget_PUT/index.html"} {"id": "70d1f9b18ce0-0", "text": "/pmse_Inbox/reactivateFlows PUT\nOverview\n Deprecated endpoint.\nSummary\nThis endpoint is deprecated and will be removed in a future release.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxreactivateFlows_PUT/index.html"} {"id": "bef92e40aa3a-0", "text": "/login/content GET\nOverview\n Returns information to facilitate receiving marketing content from SugarCRM.\nRequest Arguments\nName\nType\nDescription\nRequired\n selected_language\n \n String\n \n Code for the desired marketing content language. (Eg. \"en_us\", \"fr_FR\").\n Providing a certain language code does not guarantee that content returned will be in the provided language.\n If an invalid language is specified, will assume \"en_us\".\n \n False. Defaults to \"en_us\"\nResponse Arguments\nName\nType\nDescription\n content_url\n \n String\n \n URL suitable for embedding in an iFrame that links to new marketing material from SugarCRM.\n Will always be provided, but may be an empty string if there is no suitable content available.\n \nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/logincontent_GET/index.html"} {"id": "bef92e40aa3a-1", "text": "Response\n{\n \"content_url\": \"https://marketing.sugarcrm.com/exciting-new-content\"\n}\nChange Log\nVersion\nChange\n v11_2\n \n Added /login/content GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/logincontent_GET/index.html"} {"id": "9de78b9c7704-0", "text": "//globalsearch POST\nOverview\n Global search\nSummary\n This endpoint exposes the global search capability using solely the Elasticsearch backend as an alternative to the\n /search endpoint. This endpoint can be used with a long list of request arguments. Instead of using GET request\n arguments, all described arguments can be used inside a JSON encoded request body using a the GET request. If your\n client has no support for GET requests with a body, the POST method can be used as an alternative.\nRequest Arguments\nName\nType\nDescription\nRequired\n q\n \n String\n \n The search expression. Multiple terms can be specified at once. All enabled fields will be searched in. The\n results are ordered by relevance which is based on a multitude of settings based on token counts, hit\n ratio, (weighted) boost values and type of field. Currently no operators are supported in the search", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_POST/index.html"} {"id": "9de78b9c7704-1", "text": "expression itself. By refining the search expression more relevant results will be returned as top results.\n If no search expression is given results are returned based on last modified date.\n \n False\n \n module_list\n \n String\n \n Comma delimited list of modules to search. If omitted, all search enabled modules will be queried. Note that\n when consuming the endpoint /:module/globalsearch that this parameter is ignored.\n \n Example: Accounts,Contacts\n False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n highlights\n \n Boolean", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_POST/index.html"} {"id": "9de78b9c7704-2", "text": "False\n \n highlights\n \n Boolean\n \n Wether or not to return highlighted results. Default is true.\n \n False\n \n sort\n \n Array\n \n Define the sort order of the results. By default the results are returned by relevance which is the\n preferred approach. Using this argument any search enabled field can be used to sort on. Keep in mind the\n not sorting by relevance may have a negative performance impact.\n \n Example: {\"date_modified\":\"desc\",\"name\":\"asc\"}\n False\n \nRequest\n{\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_POST/index.html"} {"id": "9de78b9c7704-3", "text": "records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added /globalsearch GET/POST endpoint.\n \n v10\n \n Added /:module/globalsearch GET/POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_POST/index.html"} {"id": "7d8190a42660-0", "text": "/recent GET\nOverview\n Returns all of the current users recently viewed records.\nRequest Arguments\nName\nType\nDescription\nRequired\n module_list\n \n String\n \n Comma delimited list of modules to return recently viewed records.\n \n Example: Accounts,Contacts\n True\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned.\n \n Example: id,name\n False\n \n date\n \n String\n \n The date expression. Filter recently viewed records from this date.\n \n False\n \n limit\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-1", "text": "False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \nRequest\nhttp://{site_url}/rest/v10/recent?module_list=Accounts%2CContacts\nNote: GET endpoint parameters are passed in the form of a query string.\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n String\n \n The next offset to start fetching additional records.\n \n records\n \n Array\n \n An array of recently viewed records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"my_favorite\":false,\n \"following\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-2", "text": "{\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"e4213959-35cd-119b-5cd6-5342e8be16f6\",\n \"name\":\"Leila Purifoy\",\n \"date_entered\":\"2014-04-07T13:58:50-04:00\",\n \"date_modified\":\"2014-04-07T13:58:50-04:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_will_id\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-3", "text": "\"assigned_user_id\":\"seed_will_id\",\n \"assigned_user_name\":\"Will Westin\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":true\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":false\n }\n ],\n \"email\":[\n {\n \"email_address\":\"support62@example.biz\",\n \"invalid_email\":false,\n \"opt_out\":true,\n \"primary_address\":false,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"sales39@example.com\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-4", "text": "{\n \"email_address\":\"sales39@example.com\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":true\n }\n ],\n \"email1\":\"sales39@example.com\",\n \"email2\":\"support62@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"salutation\":\"\",\n \"first_name\":\"Leila\",\n \"last_name\":\"Purifoy\",\n \"full_name\":\"Leila Purifoy\",\n \"title\":\"President\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-5", "text": "\"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(841) 469-8223\",\n \"phone_mobile\":\"(286) 010-9553\",\n \"phone_work\":\"(369) 075-2809\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Santa Monica\",\n \"primary_address_state\":\"NY\",\n \"primary_address_postalcode\":\"52255\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-6", "text": "\"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Trade Show\",\n \"account_name\":\"Sea Region Inc\",\n \"account_id\":\"b1cd3a55-7e84-e53b-954e-5342e85b63f1\",\n \"dnb_principal_id\":\"\",\n \"opportunity_role_fields\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-7", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"birthdate\":\"\",\n \"portal_name\":\"LeilaPurifoy5\",\n \"portal_active\":true,\n \"portal_password\":true,\n \"portal_password1\":null,\n \"portal_app\":\"\",\n \"preferred_language\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"accept_status_calls\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-8", "text": "\"accept_status_calls\":\"\",\n \"accept_status_meetings\":\"\",\n \"sync_contact\":false,\n \"mkto_sync\":false,\n \"mkto_id\":null,\n \"mkto_lead_score\":null,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Contacts\",\n \"_last_viewed_date\":\"2014-04-07T14:43:46-04:00\"\n },\n {\n \"my_favorite\":false,\n \"following\":false,\n \"id\":\"e8f7eb6d-2647-7e57-df30-5342e83c622d\",\n \"name\":\"Draft Diversified Energy Inc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-9", "text": "\"name\":\"Draft Diversified Energy Inc\",\n \"date_entered\":\"2014-04-07T13:58:50-04:00\",\n \"date_modified\":\"2014-04-07T13:58:50-04:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_count\":\"\",\n \"team_name\":[\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-10", "text": "\"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"email\":[\n {\n \"email_address\":\"dev.kid.kid@example.de\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":true,\n \"reply_to_address\":false\n },\n {\n \"email_address\":\"info.sales@example.co.uk\",\n \"invalid_email\":false,\n \"opt_out\":false,\n \"primary_address\":false,\n \"reply_to_address\":false\n }\n ],\n \"email1\":\"dev.kid.kid@example.de\",\n \"email2\":\"info.sales@example.co.uk\",\n \"invalid_email\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-11", "text": "\"invalid_email\":false,\n \"email_opt_out\":false,\n \"email_addresses_non_primary\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Education\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"111 Silicon Valley Road\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"Los Angeles\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"26022\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-12", "text": "\"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(790) 406-0049\",\n \"phone_alternate\":\"\",\n \"website\":\"www.phonesugar.de\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"111 Silicon Valley Road\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"Los Angeles\",\n \"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"26022\",\n \"shipping_address_country\":\"USA\",\n \"parent_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "7d8190a42660-13", "text": "\"shipping_address_country\":\"USA\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"duns_num\":\"\",\n \"parent_name\":\"\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\",\n \"_last_viewed_date\":\"2014-04-07T14:43:36-04:00\"\n }\n ]\n}\nChange Log\nVersion\nAPI\nChange\n 7.2.0\n \n v10\n \n Added /recent GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/recent_GET/index.html"} {"id": "944d5ec2d662-0", "text": "//:lhs_sync_key_field_value/link_by_sync_keys/:link_name/:rhs_sync_key_field_value POST\nOverview\nCreates a relationship based on sync_key. If both the LHS and RHS records can be found with the respective fields, then relate the RHS record to the LHS record.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nlhs_sync_key_field_value\nString\nA unique ID for the LHS record identifying it in an external system\nTrue\nlink_name\nString\nA name for the link\nTrue\nrhs_sync_key_field_value\nString\nA unique ID for the RHS record identifying it in an external system\nTrue\nRequest", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulelhs_sync_key_field_valuelink_by_sync_keyslink_namerhs_sync_key_field_value_POST/index.html"} {"id": "944d5ec2d662-1", "text": "A unique ID for the RHS record identifying it in an external system\nTrue\nRequest\n//:lhs_sync_key_field_value/link_by_sync_keys/:link_name/:rhs_sync_key_field_value\nResponse Arguments\nName\nType\nDescription\nrecord\nString\nThe ID of the record.\nrelated_record\nString\nThe ID of the related record.\nResponse\nStatus 200\n{\n \"record\": \"a0328573-a252-a27c-3530-4e4297d4c9e1\",\n \"related_record\": \"a0328573-bc54-a554-3530-4e4297d4c9e1\"\n}\nStatus 422\n{\n \"error\": \"invalid_parameter\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulelhs_sync_key_field_valuelink_by_sync_keyslink_namerhs_sync_key_field_value_POST/index.html"} {"id": "944d5ec2d662-2", "text": "}\nStatus 422\n{\n \"error\": \"invalid_parameter\",\n \"error_message\": \"Could not find record with :xhs_sync_key_field_value in module: \"\n}\nChange Log\nVersion\nChange\nv11_10\nAdded //:lhs_sync_key_field_value/link_by_sync_keys/:link_name/:rhs_sync_key_field_value\u00c2\u00a0POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulelhs_sync_key_field_valuelink_by_sync_keyslink_namerhs_sync_key_field_value_POST/index.html"} {"id": "5315d06d46c9-0", "text": "//export/:record_list_id GET\nOverview\n Returns a record set in CSV format along with HTTP headers to indicate content type.\nRequest Arguments\nName\nType\nDescription\nRequired\n uid\n \n Array\n \n A list of bean ids.\n \n False\n \n filter\n \n Array\n \n The filter expression. More information on filter expressions can be found in //filter.\n \n False\n \n sample\n \n Array\n \n Indicates whether to download sample data.\n \n False\n \nRequest\nExporting Records by Specific IDs\n{\n \"uid\":\"d43243c6-9b8e-2973-aee2-512d09bc34b4\"\n}\nExporting Records by a List of IDs\n{\n \"uid\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleexportrecord_list_id_GET/index.html"} {"id": "5315d06d46c9-1", "text": "}\nExporting Records by a List of IDs\n{\n \"uid\":[\n \"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"b3e87a3f-cd8f-7b86-467a-512d09e8d240\"\n ]\n}\nExporting Records Using a Filter\n{\n \"filter\":[\n {\n \"name\":\"airline\"\n }\n ]\n}\nExporting a Sample Result Set\n{\n \"sample\":true\n}\nResponse Arguments\nName\nType\nDescription\n \n \n String\n \n Returns the selected records in CSV format with the content headers.\n \nResponse\nresult: HTTP/1.1 200 OK\nDate: Fri, 01 Mar 2013 04:05:55 GMT", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleexportrecord_list_id_GET/index.html"} {"id": "5315d06d46c9-2", "text": "Date: Fri, 01 Mar 2013 04:05:55 GMT\nServer: Apache/2.2.22 (Unix) DAV/2 PHP/5.3.17\nX-Powered-By: PHP/5.3.17\nExpires: Mon, 26 Jul 1997 05:00:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: cache\nContent-Disposition: attachment; filename=Accounts.csv\nContent-transfer-encoding: binary\nLast-Modified: Fri, 01 Mar 2013 04:05:55 GMT\nCache-Control: post-check=0, pre-check=0\nContent-Length: 1080\nConnection: close\nContent-Type: application/octet-stream; charset=UTF-8", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleexportrecord_list_id_GET/index.html"} {"id": "5315d06d46c9-3", "text": "Content-Type: application/octet-stream; charset=UTF-8\n\"Name\",\"ID\",\"Website\",\"Email Address\",\"Office Phone\",\"Alternate Phone\",\"Fax\",\"Billing Street\",\"Billing City\",\"Billing State\",\"Billing Postal Code\",\"Billing Country\",\"Shipping Street\",\"Shipping City\",\"Shipping State\",\"Shipping Postal Code\",\"Shipping Country\",\"Description\",\"Type\",\"Industry\",\"Annual Revenue\",\"Employees\",\"SIC Code\",\"Ticker Symbol\",\"Parent Account ID\",\"Ownership\",\"Campaign ID\",\"Rating\",\"Assigned User Name\",\"Assigned To\",\"Team ID\",\"Teams\",\"Team Set ID\",\"Date Created\",\"Date Modified\",\"Modified By\",\"Created By\",\"Deleted\",\"Image\",\"last_activity_date\",\"Linkedin Company ID\",\"Facebook Account\",\"Twitter Account\",\"Google Plus ID\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleexportrecord_list_id_GET/index.html"} {"id": "5315d06d46c9-4", "text": "\"Arts & Crafts Inc\",\"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\"\",\"\",\"(052) 034-1853\",\"\",\"\",\"777 West Filmore Ln\",\"Santa Monica\",\"CA\",\"35354\",\"USA\",\"777 West Filmore Ln\",\"Santa Monica\",\"CA\",\"35354\",\"USA\",\"\",\"Customer\",\"Transportation\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"sally\",\"seed_sally_id\",\"West\",\"West\",\"West\",\"02/26/2013 07:12 pm\",\"02/26/2013 07:12 pm\",\"1\",\"1\",\"0\",\"\",\"02/26/2013 07:12 pm\",\"\",\"\",\"\",\"\"\nChange Log\nVersion\nChange\n v10\n \n Added //export GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleexportrecord_list_id_GET/index.html"} {"id": "52b34be4f104-0", "text": "//prepend/:target POST\nOverview\n Append new node to target node as first child.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n target\n \n String\n \n The ID of record that will be used as target to prepend new node\n \n True\n \nRequest\n{\n \"name\" : \"Children Node 1\"\n}\nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\n This enpdoint returns a newly created record GUID\n {\n \"my_favorite\":false,\n \"following\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleprependtarget_POST/index.html"} {"id": "52b34be4f104-1", "text": "{\n \"my_favorite\":false,\n \"following\":\"\",\n \"id\":\"59fa8dd7-0f2c-4bfd-364f-54495f77fa3f\",\n \"name\":\"Default title\",\n \"date_entered\":\"2014-10-23T23:03:22+03:00\",\n \"date_modified\":\"2014-10-23T23:03:22+03:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"source_id\":\"\",\n \"source_type\":\"\",\n \"source_meta\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleprependtarget_POST/index.html"} {"id": "52b34be4f104-2", "text": "\"source_type\":\"\",\n \"source_meta\":\"\",\n \"root\":\"be9b0c4a-8b78-1ffa-4f14-54481c2f6269\",\n \"lft\":118,\n \"rgt\":119,\n \"level\":1,\n \"_acl\":{\"fields\":{}},\n \"_module\":\"Categories\"\n }\nChange Log\nVersion\nChange\n v10\n \n Added //prepend/:target POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleprependtarget_POST/index.html"} {"id": "934819c636dd-0", "text": "/Opportunities/config POST\nOverview\n Opportunity Config Save\nSummary\n This saves the config changes to the Opportunity Module, when the opps_view_by attribute changes, it will perform the nessicary migrations for the Metadata and the actual Data.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The list of config fields to update.\n \n False\n \nRequest\n{\n \"MyConfigOption\":\"MyConfigValue\"\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n The list of config fields will be returned.\n \nResponse\n{\n \"MyConfigOption\":\"MyConfigValue\"\n}\nChange Log\nVersion\nChange\n v10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesconfig_POST/index.html"} {"id": "934819c636dd-1", "text": "}\nChange Log\nVersion\nChange\n v10\n \n Added /Opportunities/config POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesconfig_POST/index.html"} {"id": "282355e2081d-0", "text": "/me/following GET\nOverview\n Returns all of the current users followed records\nRequest Arguments\n limit and offset are available query parameters.\nResponse Arguments\nName\nType\nDescription\n \u00c2\u00a0\n \n \u00c2\u00a0\n \n \u00c2\u00a0\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me/following GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mefollowing_GET/index.html"} {"id": "b71704f125ba-0", "text": "/KBContents/duplicateCheck POST\nOverview\n Runs a duplicate check against specified data.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"Airline\"\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the potential duplicate records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"c4c26496-5dbc-67dd-bf5c-512d0923889e\",\n \"name\":\"Airline Maintenance Co\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsduplicateCheck_POST/index.html"} {"id": "b71704f125ba-1", "text": "\"name\":\"Airline Maintenance Co\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-26T19:12:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsduplicateCheck_POST/index.html"} {"id": "b71704f125ba-2", "text": "\"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Other\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"123 Anywhere Street\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsduplicateCheck_POST/index.html"} {"id": "b71704f125ba-3", "text": "\"billing_address_street\":\"123 Anywhere Street\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"Sunnyvale\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"48566\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(648) 452-3486\",\n \"phone_alternate\":\"\",\n \"website\":\"www.kidqa.it\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"123 Anywhere Street\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsduplicateCheck_POST/index.html"} {"id": "b71704f125ba-4", "text": "\"shipping_address_street\":\"123 Anywhere Street\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"Sunnyvale\",\n \"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"48566\",\n \"shipping_address_country\":\"USA\",\n \"email1\":\"vegan.im@example.tw\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":false,\n \"invalid_email\":false,\n \"email\":[\n {\n \"email_address\":\"vegan.im@example.tw\",\n \"opt_out\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsduplicateCheck_POST/index.html"} {"id": "b71704f125ba-5", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"phone85@example.tv\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"duplicate_check_rank\":0\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //duplicateCheck POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsduplicateCheck_POST/index.html"} {"id": "57eec7ecfa7e-0", "text": "//:record/link/:link_name POST\nOverview\n Creates a related record.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"first_name\":\"Bill\",\n \"last_name\":\"Edwards\"\n}\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record associated to the newly created record.\n \n related_record\n \n Array\n \n The record that was created and associated.\n \nResponse\n{\n \"record\":{\n \"id\":\"da6a3741-2a81-ba7f-f249-512d0932e94e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-1", "text": "\"name\":\"Slender Broadband Inc - 1000 units\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-2", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"opportunity_type\":\"\",\n \"account_name\":\"Slender Broadband Inc\",\n \"account_id\":\"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"lead_source\":\"Campaign\",\n \"amount\":\"25000\",\n \"base_rate\":\"1\",\n \"amount_usdollar\":\"25000\",\n \"currency_id\":\"-99\",\n \"currency_name\":\"\",\n \"currency_symbol\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-3", "text": "\"currency_name\":\"\",\n \"currency_symbol\":\"\",\n \"date_closed\":\"2013-02-27\",\n \"date_closed_timestamp\":\"1361992480\",\n \"next_step\":\"\",\n \"sales_stage\":\"Needs Analysis\",\n \"sales_status\":\"New\",\n \"probability\":\"90\",\n \"best_case\":\"25000\",\n \"worst_case\":\"25000\",\n \"commit_stage\":\"include\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n \"related_record\":{\n \"id\":\"e1c495cb-af17-1b37-dd66-512f934fe155\",\n \"name\":\"Bill Edwards\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-4", "text": "\"name\":\"Bill Edwards\",\n \"date_entered\":\"2013-02-28T17:25:00+00:00\",\n \"date_modified\":\"2013-02-28T17:25:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"\",\n \"assigned_user_name\":\"\",\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-5", "text": "\"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Bill\",\n \"last_name\":\"Edwards\",\n \"full_name\":\"Bill Edwards\",\n \"title\":\"\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"\",\n \"email\":[\n ],\n \"phone_mobile\":\"\",\n \"phone_work\":\"\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"\",\n \"email2\":\"\",\n \"invalid_email\":\"\",\n \"email_opt_out\":\"\",\n \"primary_address_street\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-6", "text": "\"email_opt_out\":\"\",\n \"primary_address_street\":\"\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"\",\n \"primary_address_state\":\"\",\n \"primary_address_postalcode\":\"\",\n \"primary_address_country\":\"\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-7", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"\",\n \"account_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"\",\n \"portal_active\":false,\n \"portal_password\":\"\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "57eec7ecfa7e-8", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_name_POST/index.html"} {"id": "7d33ca1089a5-0", "text": "/Contacts/:record/freebusy GET\n Get a contact's FreeBusy schedule\nSummary:\n This endpoint returns a list of time slots for which the specified person is busy.\nRequest\n GET /Contacts/:id/freebusy\n \nResponse\n {\n \"id\": \"foo\"\n \"module\": \"Users\",\n \"freebusy\": [\n {\n \"start\": \"2014-08-24T08:45:00-04:00\",\n \"end\": \"2014-08-24T09:15:00-04:00\"\n },\n {\n \"start\": \"2014-08-30T05:45:00-04:00\",\n \"end\": \"2014-08-30T06:15:00-04:00\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Contactsrecordfreebusy_GET/index.html"} {"id": "7d33ca1089a5-1", "text": "},\n {\n \"start\": \"2014-09-12T15:45:00-04:00\",\n \"end\": \"2014-09-12T16:15:00-04:00\"\n }\n ]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Contactsrecordfreebusy_GET/index.html"} {"id": "5370968126b5-0", "text": "//config POST\nOverview\n Retrieves the config settings for a given module.\nSummary\n This endpoint is normally used to manage the forecasting module.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The list of config fields to update.\n \n False\n \nRequest\n{\n \"MyConfigOption\":\"MyConfigValue\"\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n The list of config fields will be returned.\n \nResponse\n{\n \"MyConfigOption\":\"MyConfigValue\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //config POST endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleconfig_POST/index.html"} {"id": "5370968126b5-1", "text": "v10\n \n Added //config POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleconfig_POST/index.html"} {"id": "805a07389299-0", "text": "/Forecasts/:timeperiod_id/:user_id/chart/:display_manager GET\nRetrieve a Forecasting Information In SugarChart Format\nSummary:\n This endpoint is used to return the json Data for SugarCharts to use to display the needed chart.\nQuery Parameters:\nParam\nDescription\nOptional\ntimeperiod_id\nShow for a specific time period\n\u00c2\u00a0\nuser_id\nShow for a specific user\n\u00c2\u00a0\ndisplay_manager\nPipeline or Committed are valid values.\n\u00c2\u00a0\ndataset\nWhich Forecast dataset to show, valid values are likely, best, worst. Defaults to likely if one is not specified\nOptional\ngroup_by\nShow Which fields the y-axis shows on the chart. Can be any field in the opportunity module, defaults to Sales Stage\nOptional\nranges\nPipeline or Committed are valid values.\nOptional\nInput Example:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_iduser_idchartdisplay_manager_GET/index.html"} {"id": "805a07389299-1", "text": "ranges\nPipeline or Committed are valid values.\nOptional\nInput Example:\n{\n 'user_id':'seed_max_id,\n 'timeperiod_id':'36f7085a-5889-ea75-84c8-50f42bd1a5ba',\n 'display_manager':'false',\n 'group_by': 'forecast',\n 'dataset': 'likely',\n 'ranges': 'include',\n}\n \nOutput Example:\n { \"color\" : [ \"#8c2b2b\",\n \"#468c2b\",\n \"#2b5d8c\",\n \"#cd5200\",\n \"#e6bf00\",\n \"#7f3acd\",\n \"#00a9b8\",\n \"#572323\",\n \"#004d00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_iduser_idchartdisplay_manager_GET/index.html"} {"id": "805a07389299-2", "text": "\"#572323\",\n \"#004d00\",\n \"#000087\",\n \"#e48d30\",\n \"#9fba09\",\n \"#560066\",\n \"#009f92\",\n \"#b36262\",\n \"#38795c\",\n \"#3D3D99\",\n \"#99623d\",\n \"#998a3d\",\n \"#994e78\",\n \"#3d6899\",\n \"#CC0000\",\n \"#00CC00\",\n \"#0000CC\",\n \"#cc5200\",\n \"#ccaa00\",\n \"#6600cc\",\n \"#005fcc\"\n ],\n \"label\" : [ \"Include\" ],\n \"properties\" : [ { \"gauge_target_list\" : \"Array\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_iduser_idchartdisplay_manager_GET/index.html"} {"id": "805a07389299-3", "text": "\"goal_marker_color\" : [ \"#000000\",\n \"#7D12B2\"\n ],\n \"goal_marker_label\" : [ \"Quota\",\n \"Likely Case\"\n ],\n \"goal_marker_type\" : [ \"group\",\n \"pareto\"\n ],\n \"label_name\" : \"Include in Forecast\",\n \"labels\" : \"value\",\n \"legend\" : \"on\",\n \"print\" : \"on\",\n \"subtitle\" : \"\",\n \"thousands\" : \"\",\n \"title\" : null,\n \"type\" : \"bar chart\",\n \"value_name\" : \"Likely Case\"\n } ],\n \"values\" : [ { \"goalmarkervalue\" : [ \"111000.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_iduser_idchartdisplay_manager_GET/index.html"} {"id": "805a07389299-4", "text": "\"36000.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$36,000.00\"\n ],\n \"gvalue\" : 36000,\n \"gvaluelabel\" : \"$36,000.00\",\n \"label\" : \"January 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$36,000.00\" ],\n \"values\" : [ 36000 ]\n },\n { \"goalmarkervalue\" : [ \"111000.00\",\n \"61500.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$61,500.00\"\n ],\n \"gvalue\" : 25500,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_iduser_idchartdisplay_manager_GET/index.html"} {"id": "805a07389299-5", "text": "],\n \"gvalue\" : 25500,\n \"gvaluelabel\" : \"$25,500.00\",\n \"label\" : \"February 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$25,500.00\" ],\n \"values\" : [ 25500 ]\n },\n { \"goalmarkervalue\" : [ \"111000.00\",\n \"61500.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$61,500.00\"\n ],\n \"gvalue\" : 0,\n \"gvaluelabel\" : \"$0.00\",\n \"label\" : \"March 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$0.00\" ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_iduser_idchartdisplay_manager_GET/index.html"} {"id": "805a07389299-6", "text": "\"valuelabels\" : [ \"$0.00\" ],\n \"values\" : [ 0 ]\n }\n ]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_iduser_idchartdisplay_manager_GET/index.html"} {"id": "a3b446818df6-0", "text": "/Dashboards GET\nOverview\n List current user's filtered Home dashboards.\nSummary\n This endpoint will return a set of Home dashboards filtered by an expression. The filter can be applied to multiple\n fields and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its\n id. If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long.\nNotice\nThe behavior of this endpoint has changed in v11. For a description of behavior in v11, refer to\n GET /. If you continue to use v10 of the API,\n your REST calls should behave as before. But, it is advisable to upgrade to v11. Slight differences exist in", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_GET/index.html"} {"id": "a3b446818df6-1", "text": "the GET method of v10 vs v11.Migrating to v11:\n Recommended Replacement:\nGET /Dashboards\n The Home module is no longer the default dashboard_module. To get the Home module\n dashboard, include the following filter parameter.v11: \nGET /Dashboards?filter[0][dashboard_module]=Home\n name, id. etc. are no longer specified as default fields. To retain the default fields, usev11: \nGET /Dashboards?filter[0][dashboard_module]=Home&fields=id,name,view_name\nRequest Arguments\nName\nType\nDescription\nRequired\nfilter\nString\nSee Filter API.\nFalse\nfilter_id\nString\n Identifier for a preexisting filter. See \n the Filter API for details.\n \nFalse\nmax_num\nInteger", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_GET/index.html"} {"id": "a3b446818df6-2", "text": "the Filter API for details.\n \nFalse\nmax_num\nInteger\n Max number of records that can be returned. Default is 20, unless overruled by your Sugar configuration.\n \nFalse\noffset\nInteger\nThe number of records to skip over before records are returned. Default is 0.\nFalse\nfields\nString\n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n For more details on additional field parameters, see\n Relate API and\n Collection API.\n \nFalse\norder_by\nString\nSee Filter API.\nFalse\ndeleted\nBoolean\nBoolean to show deleted records in the result set.\nFalse\nResponse Arguments\nName\nType\nDescription", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_GET/index.html"} {"id": "a3b446818df6-3", "text": "False\nResponse Arguments\nName\nType\nDescription\nnext_offset\nInteger\n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \nrecords\nArray\nAn array of results containing matched records.\nResponse\n{\n \"next_offset\": -1,\n \"records\": [\n {\n \"id\": \"c630c772-faca-2051-6a42-56fab2e73e42\",\n \"name\": \"New Home Dashboard\",\n \"date_modified\": \"2016-03-29T09:49:06-07:00\",\n \"view_name\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"view\": \"\",\n \"_module\": \"Dashboards\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_GET/index.html"} {"id": "a3b446818df6-4", "text": "\"_module\": \"Dashboards\"\n },\n {\n \"id\": \"15677f2c-f00d-c59a-6fbe-56fab1f33732\",\n \"name\": \"Home Dashboard2\",\n \"date_modified\": \"2016-03-29T09:47:25-07:00\",\n \"view_name\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"view\": \"\",\n \"_module\": \"Dashboards\"\n },\n {\n \"id\": \"d509b3da-29f6-7b23-7cce-56fab1a6335b\",\n \"name\": \"Accounts Dashboard\",\n \"date_modified\": \"2016-03-29T09:46:00-07:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_GET/index.html"} {"id": "a3b446818df6-5", "text": "\"view_name\": \"records\",\n \"_acl\": {\n \"fields\": {}\n },\n \"view\": \"records\",\n \"_module\": \"Dashboards\"\n },\n {\n \"id\": \"cc4982cd-0bdf-bad4-d079-56fab4bdddf1\",\n \"name\": \"Activity Stream Dashboard\",\n \"date_modified\": \"2016-03-29T09:57:58-07:00\",\n \"view_name\": \"activities\",\n \"_acl\": {\n \"fields\": {}\n },\n \"view\": \"activities\",\n \"_module\": \"Dashboards\"\n }\n ]\n}\nChange Log\nVersion\nChange\nv11\n Behavior has changed. Please see GET /Dashboards\n for the designated replacement.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_GET/index.html"} {"id": "a3b446818df6-6", "text": "for the designated replacement.\n \nv10\nAdded /Dashboards GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_GET/index.html"} {"id": "550eff29799f-0", "text": "/me/password PUT\nOverview\n Create a new record of a specified type.\nSummary\nThis endpoint allows for changes to the user's password. If client type is support_portal, it will update the corrending Contact. Otherwise, it will update User\nRequest Arguments\nName\nType\nDescription\nRequired\n old_password\n \n String\n \n The current password.\n \n True\n \n new_password\n \n String\n \n The new password.\n \n True\n \nRequest\n{\n \"old_password\":\"myoldpass\",\n \"new_password\":\"mynewpass\"\n}\nResponse Arguments\nName\nType\nDescription\n valid\n \n Boolean\n \n Returns the success of the password verification.\n \n expiration\n \n Date\n \n When the password will expire.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mepassword_PUT/index.html"} {"id": "550eff29799f-1", "text": "expiration\n \n Date\n \n When the password will expire.\n \nResponse\n{\n \"valid\":true,\n \"expiration\":null\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me/password PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mepassword_PUT/index.html"} {"id": "2eaebe78dc3a-0", "text": "//MassUpdate PUT\nOverview\n An API to mass update records.\nQuery String Parameters\nName\nType\nDescription\nRequired\n massupdate_params\n \n Array\n \n Mass update parameters.\n \n True\n \n massupdate_params.uid\n \n Array\n \n A list of ids.\n \n True\n \n massupdate_params.[field name]\n \n [field type]\n \n The field to be modified.\n \n False\n \n massupdate_params.team_name\n \n Array\n \n Team array.\n \n False\n \n massupdate_params.team_name_type\n \n String\n \n Whether to replace or add teams. Possible values are 'add' and 'replace'.\n \n False\n \nRequest", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleMassUpdate_PUT/index.html"} {"id": "2eaebe78dc3a-1", "text": "False\n \nRequest\nMass Updating Records by ID in a Module\n{\n \"massupdate_params\":{\n \"uid\":[\n \"f22d1955-97d8-387d-9866-512d09cc1520\",\n \"ef1b40aa-5815-4f8d-e909-512d09617ac8\"\n ],\n \"department\":\"Marketing\"\n }\n}\nMass Updating Records with Teams\n{\n \"massupdate_params\":{\n \"uid\":[\n \"f22d1955-97d8-387d-9866-512d09cc1520\",\n \"ef1b40aa-5815-4f8d-e909-512d09617ac8\"\n ],\n \"team_name\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleMassUpdate_PUT/index.html"} {"id": "2eaebe78dc3a-2", "text": "],\n \"team_name\":[\n {\n \"id\":\"35eab226-c20d-48f4-4670-512d095c8c6f\",\n \"primary\":true\n },\n {\n \"id\":\"8f640aba-f356-7374-7eb4-512d09745551\",\n \"primary\":false\n }\n ],\n \"team_name_type\":\"replace\"\n }\n}\nMass Add Leads, Contacts or Prospects to a Target List\n{\n \"massupdate_params\": {\n \"uid\": [ /* Leads, Contacts, or Prospects to Add */\n \"f3d90a49-14b4-a81c-6cac-526e6c71d33e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleMassUpdate_PUT/index.html"} {"id": "2eaebe78dc3a-3", "text": "\"f22cde0d-9a20-89d3-ca14-526e6c3c4d08\",\n \"f15f10bd-1445-5e20-9b5c-526e6ceb71d0\"\n ],\n \"prospect_lists\": [\n /* Prospect List(s) to Add them To */\n \"bc5bc249-9c9c-52ad-52b9-526e71f0e18d\"\n ]\n }\n}\nResponse Arguments\nName\nType\nDescription\n Status\n \n String\n \n The status of the mass update. Possible value is 'done'.\n \nOutput Done Example\n{\n \"status\":\"done\"\n}\nChange Log\nVersion\nChange\n v10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleMassUpdate_PUT/index.html"} {"id": "2eaebe78dc3a-4", "text": "}\nChange Log\nVersion\nChange\n v10\n \n Added //MassUpdate PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleMassUpdate_PUT/index.html"} {"id": "24283563a4f0-0", "text": "/Forecasts/reportees/:user_id GET\nForecastsApi Reportees\nSummary:\n This endpoint is used to return the json Data for an array of users and their state for the forecasts users tree filter\nQuery Parameters:\nParam\nDescription\nOptional\nuser_id\nShow for a specific user, defaults to current user if not defined\nOptional\nlevel\nLevel of child notes, defaults to 1, -1 for all levels\nOptional\nInput Example:\n{\n 'user_id':'seed_max_id'\n}\n \nOutput Example:\n {\n \"attr\":{\n \"id\":\"jstree_node_jim\",\n \"rel\":\"root\"\n },\n \"children\":[\n {\n \"attr\":{\n \"id\":\"jstree_node_myopps_jim\",\n \"rel\":\"my_opportunities\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsreporteesuser_id_GET/index.html"} {"id": "24283563a4f0-1", "text": "\"rel\":\"my_opportunities\"\n },\n \"children\":[\n ],\n \"data\":\"Opportunities (Jim Brennan)\",\n \"metadata\":{\n \"first_name\":\"Jim\",\n \"full_name\":\"Jim Brennan\",\n \"id\":\"seed_jim_id\",\n \"last_name\":\"Brennan\",\n \"level\":\"1\",\n \"reports_to_id\":\"\",\n \"user_name\":\"jim\"\n },\n \"state\":\"\"\n },\n {\n \"attr\":{\n \"id\":\"jstree_node_will\",\n \"rel\":\"manager\"\n },\n \"children\":[\n ],\n \"data\":\"Will Westin\",\n \"metadata\":{\n \"first_name\":\"Will\",\n \"full_name\":\"Will Westin\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsreporteesuser_id_GET/index.html"} {"id": "24283563a4f0-2", "text": "\"first_name\":\"Will\",\n \"full_name\":\"Will Westin\",\n \"id\":\"seed_will_id\",\n \"last_name\":\"Westin\",\n \"level\":\"2\",\n \"reports_to_id\":\"seed_jim_id\",\n \"user_name\":\"will\"\n },\n \"state\":\"closed\"\n },\n {\n \"attr\":{\n \"id\":\"jstree_node_sarah\",\n \"rel\":\"manager\"\n },\n \"children\":[\n ],\n \"data\":\"Sarah Smith\",\n \"metadata\":{\n \"first_name\":\"Sarah\",\n \"full_name\":\"Sarah Smith\",\n \"id\":\"seed_sarah_id\",\n \"last_name\":\"Smith\",\n \"level\":\"2\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsreporteesuser_id_GET/index.html"} {"id": "24283563a4f0-3", "text": "\"last_name\":\"Smith\",\n \"level\":\"2\",\n \"reports_to_id\":\"seed_jim_id\",\n \"user_name\":\"sarah\"\n },\n \"state\":\"closed\"\n }\n ],\n \"data\":\"Jim Brennan\",\n \"metadata\":{\n \"first_name\":\"Jim\",\n \"full_name\":\"Jim Brennan\",\n \"id\":\"seed_jim_id\",\n \"last_name\":\"Brennan\",\n \"level\":\"1\",\n \"reports_to_id\":\"\",\n \"user_name\":\"jim\"\n },\n \"state\":\"open\"\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsreporteesuser_id_GET/index.html"} {"id": "d69191ffd861-0", "text": "//filter POST\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned.\n \n Example: name,account_type,description\n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-2", "text": "Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-3", "text": "False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example\n you would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-4", "text": "$equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-5", "text": "$is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-6", "text": "The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\nThere are two module expressions, they operate on modules instead of fields. The current module can be specified by\neither using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\nfilter the records in the current module to only your favorites. The only currently accepted module expressions are\n\"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-7", "text": "Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-8", "text": "\"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-9", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-10", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-11", "text": "\"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-12", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-13", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-14", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-15", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-16", "text": "\"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-17", "text": "\"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-18", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "d69191ffd861-19", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/index.html"} {"id": "0b5de9519b14-0", "text": "/integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value POST\nOverview\nCreates a relationship based on lhs_sync_key_field_name and rhs_sync_key_field_name. If both the LHS and RHS records can be found with the respective fields, then relate the RHS record to the LHS record.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nlhs_sync_key_field_name\nString\nThe name of the LHS field that contains lhs_sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_POST/index.html"} {"id": "0b5de9519b14-1", "text": "True\nlhs_sync_key_field_value\nString\nA unique ID for the LHS record identifying it in an external system\nTrue\nlink_name\nString\nA name for the link\nTrue\nrhs_sync_key_field_name\nString\nThe name of the RHS field that contains rhs_sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nrhs_sync_key_field_value\nString\nA unique ID for the RHS record identifying it in an external system\nTrue\nRequest\n/integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value\nResponse Arguments", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_POST/index.html"} {"id": "0b5de9519b14-2", "text": "Response Arguments\nName\nType\nDescription\nrecord\nString\nThe ID of the record.\nrelated_record\nString\nThe ID of the related record.\nResponse\nStatus 200\n{\n \"record\": \"a0328573-a252-a27c-3530-4e4297d4c9e1\",\n \"related_record\": \"a0328573-bc54-a554-3530-4e4297d4c9e1\"\n}\nStatus 422\n{\n \"error\": \"invalid_parameter\",\n \"error_message\": \"Could not find record with :xhs_sync_key_field_name::xhs_sync_key_field_value in module: \"\n}\nChange Log\nVersion\nChange\nv11_10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_POST/index.html"} {"id": "0b5de9519b14-3", "text": "}\nChange Log\nVersion\nChange\nv11_10\nAdded /integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value\u00c2\u00a0POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_POST/index.html"} {"id": "a1714f2b1dd0-0", "text": "/ForecastManagerWorksheets/export GET\nOverview\n Returns a record set in CSV format along with HTTP headers to indicate content type.\nRequest Arguments\nName\nType\nDescription\nRequired\n uid\n \n Array\n \n A list of bean ids.\n \n False\n \n filter\n \n Array\n \n The filter expression. More information on filter expressions can be found in //filter.\n \n False\n \n sample\n \n Array\n \n Indicates whether to download sample data.\n \n False\n \nRequest\nExporting Records by Specific IDs\n{\n \"uid\":\"d43243c6-9b8e-2973-aee2-512d09bc34b4\"\n}\nExporting Records by a List of IDs\n{\n \"uid\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsexport_GET/index.html"} {"id": "a1714f2b1dd0-1", "text": "}\nExporting Records by a List of IDs\n{\n \"uid\":[\n \"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"b3e87a3f-cd8f-7b86-467a-512d09e8d240\"\n ]\n}\nExporting Records Using a Filter\n{\n \"filter\":[\n {\n \"name\":\"airline\"\n }\n ]\n}\nExporting a Sample Result Set\n{\n \"sample\":true\n}\nResponse Arguments\nName\nType\nDescription\n \n \n String\n \n Returns the selected records in CSV format with the content headers.\n \nResponse\nresult: HTTP/1.1 200 OK\nDate: Fri, 01 Mar 2013 04:05:55 GMT", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsexport_GET/index.html"} {"id": "a1714f2b1dd0-2", "text": "Date: Fri, 01 Mar 2013 04:05:55 GMT\nServer: Apache/2.2.22 (Unix) DAV/2 PHP/5.3.17\nX-Powered-By: PHP/5.3.17\nExpires: Mon, 26 Jul 1997 05:00:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: cache\nContent-Disposition: attachment; filename=Accounts.csv\nContent-transfer-encoding: binary\nLast-Modified: Fri, 01 Mar 2013 04:05:55 GMT\nCache-Control: post-check=0, pre-check=0\nContent-Length: 1080\nConnection: close\nContent-Type: application/octet-stream; charset=UTF-8", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsexport_GET/index.html"} {"id": "a1714f2b1dd0-3", "text": "Content-Type: application/octet-stream; charset=UTF-8\n\"Name\",\"ID\",\"Website\",\"Email Address\",\"Office Phone\",\"Alternate Phone\",\"Fax\",\"Billing Street\",\"Billing City\",\"Billing State\",\"Billing Postal Code\",\"Billing Country\",\"Shipping Street\",\"Shipping City\",\"Shipping State\",\"Shipping Postal Code\",\"Shipping Country\",\"Description\",\"Type\",\"Industry\",\"Annual Revenue\",\"Employees\",\"SIC Code\",\"Ticker Symbol\",\"Parent Account ID\",\"Ownership\",\"Campaign ID\",\"Rating\",\"Assigned User Name\",\"Assigned To\",\"Team ID\",\"Teams\",\"Team Set ID\",\"Date Created\",\"Date Modified\",\"Modified By\",\"Created By\",\"Deleted\",\"Image\",\"last_activity_date\",\"Linkedin Company ID\",\"Facebook Account\",\"Twitter Account\",\"Google Plus ID\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsexport_GET/index.html"} {"id": "a1714f2b1dd0-4", "text": "\"Arts & Crafts Inc\",\"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\"\",\"\",\"(052) 034-1853\",\"\",\"\",\"777 West Filmore Ln\",\"Santa Monica\",\"CA\",\"35354\",\"USA\",\"777 West Filmore Ln\",\"Santa Monica\",\"CA\",\"35354\",\"USA\",\"\",\"Customer\",\"Transportation\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"sally\",\"seed_sally_id\",\"West\",\"West\",\"West\",\"02/26/2013 07:12 pm\",\"02/26/2013 07:12 pm\",\"1\",\"1\",\"0\",\"\",\"02/26/2013 07:12 pm\",\"\",\"\",\"\",\"\"\nChange Log\nVersion\nChange\n v10\n \n Added //export GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsexport_GET/index.html"} {"id": "7563078aaf6a-0", "text": "/pmse_Inbox GET\nOverview\n Returns a list of Processes by user using filters\nSummary\n This endpoint gets a list of processes by user using filters\nRequest Arguments\nName\nType\nDescription\nRequired\norder_by\nstring\nHow to sort the returned records, in a comma delimited list with the direction appended to the column name after a colon.\nfalse\nq\nstring\nA search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\nfalse\nfilter\nstring\nThe filter expression\nfalse\nfilter_id\nstring\nIdentifier for a preexisting filter. If filter is also set, the two filters are joined with an AND\nfalse\nmax_num\ninteger\nA maximum number of records to return. Default is 20.\nfalse\noffset\ninteger\nThe number of records to skip over before records are returned. Default is 0.\nfalse", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inbox_GET/index.html"} {"id": "7563078aaf6a-1", "text": "The number of records to skip over before records are returned. Default is 0.\nfalse\nfields\nstring\nComma delimited list of fields to return\nfalse\ndeleted\nboolean\nBoolean to show deleted records in the result set.\nfalse\nResponse Arguments\nName\nType\nDescription\nrecords\n:\nProcess records\nnext_offset\ninteger\nNext offset for results\nResponse\n{\n \"next_offset\":-1,\n \"records\":\n [\n {\n \"id\":\"839ccd22-2925-11e6-83f3-6c4008960436\",\n \"date_modified\":\"2016-06-02T17:52:55-07:00\",\n \"created_by\":\"1\",\n \"cas_finish_date\":\"\",\n \"assigned_user_id\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inbox_GET/index.html"} {"id": "7563078aaf6a-2", "text": "\"assigned_user_id\":\"1\",\n \"assigned_user_name\":\"Administrator\",\n \"assigned_user_link\":\n {\n \"full_name\":\"Administrator\",\n \"id\":\"1\",\n \"_acl\":\n {\n \"fields\":\n {\n \"pwd_last_changed\":\n {\n \"write\":\"no\",\n \"create\":\"no\"\n },\n \"last_login\":\n {\n \"write\":\"no\",\n \"create\":\"no\"\n }\n },\n \"delete\":\"no\",\n \"_hash\":\"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"_acl\":\n {\n \"fields\":{}\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inbox_GET/index.html"} {"id": "7563078aaf6a-3", "text": "\"_acl\":\n {\n \"fields\":{}\n },\n \"_module\":\"pmse_Project\\/pmse_BpmFlow\",\n \"_locked_fields\":[],\n \"cas_id\":\"4\",\n \"act_assignment_method\":\"static\",\n \"cas_title\":\"PQR1\",\n \"pro_title\":\"PD1\",\n \"date_entered\":\"2016-06-02T17:52:55-07:00\",\n \"name\":\"PQR1\",\n \"cas_create_date\":\"2016-06-02T17:52:55-07:00\",\n \"flow_id\":\"839ccd22-2925-11e6-83f3-6c4008960436\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inbox_GET/index.html"} {"id": "7563078aaf6a-4", "text": "\"id2\":\"8380e512-2925-11e6-9600-6c4008960436\",\n \"task_name\":\"Activity # 1\",\n \"cas_assignment_method\":\"static\",\n \"cas_sugar_module\":\"Accounts\",\n \"cas_sugar_object_id\":\"82d5c470-2925-11e6-a269-6c4008960436\",\n \"prj_id\":\"6e025038-2842-11e6-b4f7-6c4008960436\",\n \"in_time\":true,\n \"cas_user_id\":\"1\",\n \"prj_created_by\":\"1\",\n \"cas_user_id_full_name\":\"Administrator\",\n \"prj_user_id_full_name\":\"Administrator\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inbox_GET/index.html"} {"id": "7563078aaf6a-5", "text": "\"prj_user_id_full_name\":\"Administrator\"\n },\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inbox_GET/index.html"} {"id": "3c9a4fa96885-0", "text": "/pmse_Project/CrmData/:data/:filter GET\nOverview\n Retrieves information about Fields, Modules, Users, Roles, etc.\nSummary\n This endpoint will retrieve various data related to the Process\n Definition.\nRequest Arguments\nName\nType\nDescription\nRequired\ndata\nString\nThe type of data to be retrieved\nTrue\nfilter\nString\nFiltering criteria to be applied to data retrieved\nFalse\nRequest\nNote: Additional input parameters can be provided in the form\nof a URL query string.\n /rest/v11/pmse_Project/CrmData/related/Accounts?cardinality=one\nResponse Arguments\nName\nType\nDescription\nsuccess\nBoolean\nThe status of the response\nsearch\nString\nThe value of the filter input parameter\nresult\nArray\nThe data requested\nResponse\n{\n \"search\":\"Accounts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectCrmDatadatafilter_GET/index.html"} {"id": "3c9a4fa96885-1", "text": "result\nArray\nThe data requested\nResponse\n{\n \"search\":\"Accounts\",\n \"success\":true,\n \"result\":\n [\n {\n \"value\":\"Accounts\",\n \"text\":\"\\u003CAccounts\\u003E\",\n \"module\":\"Accounts\",\n \"module_label\":\"Accounts\",\n \"module_name\":\"Accounts\",\n \"relationship\":\"Accounts\"\n },\n {\n \"value\":\"member_of\",\n \"text\":\"Accounts (Member of: member_of)\",\n \"module\":\"Accounts\",\n \"module_label\":\"Accounts\",\n \"module_name\":\"Accounts\",\n \"relationship\":\"member_accounts\"\n },\n {\n \"value\":\"campaign_accounts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectCrmDatadatafilter_GET/index.html"} {"id": "3c9a4fa96885-2", "text": "},\n {\n \"value\":\"campaign_accounts\",\n \"text\":\"Campaigns (Campaigns: campaign_accounts)\",\n \"module\":\"Campaigns\",\n \"module_label\":\"Campaigns\",\n \"module_name\":\"Campaigns\",\n \"relationship\":\"campaign_accounts\"\n },\n {\n \"value\":\"assigned_user_link\",\n \"text\":\"Users (Assigned to User: assigned_user_link)\",\n \"module\":\"Users\",\n \"module_label\":\"Users\",\n \"module_name\":\"Users\",\n \"relationship\":\"accounts_assigned_user\"\n },\n {\n \"value\":\"created_by_link\",\n \"text\":\"Users (Created by User: created_by_link)\",\n \"module\":\"Users\",\n \"module_label\":\"Users\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectCrmDatadatafilter_GET/index.html"} {"id": "3c9a4fa96885-3", "text": "\"module\":\"Users\",\n \"module_label\":\"Users\",\n \"module_name\":\"Users\",\n \"relationship\":\"accounts_created_by\"\n },\n {\n \"value\":\"modified_user_link\",\n \"text\":\"Users (Modified by User: modified_user_link)\",\n \"module\":\"Users\",\n \"module_label\":\"Users\",\n \"module_name\":\"Users\",\n \"relationship\":\"accounts_modified_user\"\n }\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectCrmDatadatafilter_GET/index.html"} {"id": "dbca705128e0-0", "text": "/Administration/packages POST\nOverview\n[ADMIN] PackageManager upload package.\nSummary\nUploads a module loadable package via a multi-part form request. The only parameter is 'upgrade_zip' which must contain a valid module loadable zip file.\nSample Request\nPOST /rest/v11_1/Administration/packages HTTP/1.1\nHost: null\nContent-Type: multipart/form-data\nAccept: application/json\nOAuth-Token: 3bbd6227-cfd0-45c7-8a6e-3c737e3c73ff\nContent-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754266\nContent-Length: 554\n-----------------------------9051914041544843365972754266", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackages_POST/index.html"} {"id": "dbca705128e0-1", "text": "-----------------------------9051914041544843365972754266\nContent-Disposition: form-data; name=\"upgrade_zip\"; filename=\"module.zip\"\nContent-Type: application/zip\n{content-data}\n-----------------------------9051914041544843365972754266--\nResponse\nReturns status 200 OK and file hashes for install and delete package if request is successful.\n{\n\"file_install\": \"5d4b4614421586fd2111714abf622392\",\n\"unFile\": \"5d4b4614421586fd2111714abf622392\"\n}\nOtherwise returns status 4xx with errors.\n{\n\"error\": \"upload_package_error\",\n\"error_message\": \"Issue with the manifest\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackages_POST/index.html"} {"id": "dbca705128e0-2", "text": "\"error_message\": \"Issue with the manifest\",\n\"error_description\": \"The uploaded file is not compatible with this version of Sugar: 11.3.0\"\n}\nChange Log\nVersion\nChange\nv11.8\nAdded /Administration/packages\u00c2\u00a0POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackages_POST/index.html"} {"id": "88784e4aeea8-0", "text": "/ForecastManagerWorksheets/filter POST\nReturns a collection of ForecastManagerWorksheet models\nSummary:\nThis end point is used to return selective ManagerWorksheets with the optional filter parameter.\nQuery Parameters:\nParam\nDescription\nOptional\nfilter\nWhat you want to filter on\nOptional\nPossible Errors\nError\nDescription\n412 - Invalid Parameter\nWhen the passed in timeperiod and/or user can not be found\n403 - Not Authorized\nIf you are not an administrator, but you are trying to view another managers forecast manager worksheet, you will receive a 403 Not Authorized Error\nUrl Example:\n /rest/v10/ForecastManagerWorksheets/filter\n{\n \"filter\":[\n {\"assigned_user_id\" : \"seed_jim_id\"},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsfilter_POST/index.html"} {"id": "88784e4aeea8-1", "text": "{\"assigned_user_id\" : \"seed_jim_id\"},\n {\"timeperiod_id\":\"e546185a-5889-ea75-84c8-511178d1a5ba\"}\n ],\n}\n \nOutput Example:\n { \"next_offset\": -1,\n \"records\": [\n {\n \"id\": \"ad3908c7-83a3-f360-c223-51117844c208\",\n \"name\": \"Grow-Fast Inc - 1000 units\",\n \"date_entered\": \"2013-02-05T21:22:00+00:00\",\n \"date_modified\": \"2013-02-05T21:22:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsfilter_POST/index.html"} {"id": "88784e4aeea8-2", "text": "\"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",\n \"deleted\": \"0\",\n \"assigned_user_id\": \"seed_jim_id\",\n \"assigned_user_name\": \"Jim Brennan\",\n \"team_name\": [\n {\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"parent_id\": \"50b90565-e748-ed77-d9d7-511178f5acae\",\n \"parent_type\": \"Opportunities\",\n \"account_name\": \"\",\n \"account_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsfilter_POST/index.html"} {"id": "88784e4aeea8-3", "text": "\"account_name\": \"\",\n \"account_id\": \"\",\n \"likely_case\": \"75000\",\n \"best_case\": \"75000\",\n \"worst_case\": \"75000\",\n \"base_rate\": \"1\",\n \"currency_id\": \"-99\",\n \"currency_name\": \"\",\n \"currency_symbol\": \"\",\n \"date_closed\": \"2013-02-10\",\n \"date_closed_timestamp\": \"1360531443\",\n \"sales_stage\": \"Perception Analysis\",\n \"probability\": \"70\",\n \"commit_stage\": \"include\",\n \"draft\": \"1\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n }\n }]\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsfilter_POST/index.html"} {"id": "88784e4aeea8-4", "text": "\"fields\": {}\n }\n }]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsfilter_POST/index.html"} {"id": "79b319e63527-0", "text": "/VCardDownload GET\nOverview\n Downloads a vCard.\nRequest Arguments\nName\nType\nDescription\nRequired\n id\n \n String\n \n The id of the vcard.\n \n True\n \n module\n \n String\n \n The name of the module to get the vcard from.\n \n True\n \nRequest\nhttp://{site_url}/rest/v10/VCardDownload?id=2c9e5c09-6824-0d14-f5cb-5130321ac3cf&module=Contacts\nNote: GET endpoint parameters are passed in the form of a query string.\nResponse Arguments\nName\nType\nDescription\n \n \n String;\n \n Record in vcard format.\n \nResponse\nBEGIN:VCARD", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/VCardDownload_GET/index.html"} {"id": "79b319e63527-1", "text": "Record in vcard format.\n \nResponse\nBEGIN:VCARD\nN;CHARSET=utf-8:Leone;Rosemarie;;\nFN;CHARSET=utf-8: Rosemarie Leone\nBDAY:\nTEL;WORK;FAX:\nTEL;HOME;CHARSET=utf-8:(692) 586-8287\nTEL;CELL;CHARSET=utf-8:(117) 577-0969\nTEL;WORK;CHARSET=utf-8:(844) 325-7679\nEMAIL;INTERNET;CHARSET=utf-8:support.im@example.it\nADR;WORK;CHARSET=utf-8:;;777 West Filmore Ln;San Mateo;CA;74984;USA", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/VCardDownload_GET/index.html"} {"id": "79b319e63527-2", "text": "ORG;CHARSET=utf-8:Q.R.&E. Corp;\nTITLE;CHARSET=utf-8:Director Sales\nEND:VCARD\nChange Log\nVersion\nChange\n v10\n \n Added /VCardDownload GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/VCardDownload_GET/index.html"} {"id": "f1ca92c03b1a-0", "text": "//:record/link/:link_name/add_record_list/:remote_id POST\nOverview\n Creates relationships to pre-existing record from a record list.\nURL Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n Target record ID.\n \n True.\n \n \n \n \n \n Report ID for Saved Report.\n \n True.\n \n \n \n \n \n Link between targeted and related records.\n \n True.\n \nRequest\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record linked to related records.\n \n related_records\n \n Array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameadd_record_listremote_id_POST/index.html"} {"id": "f1ca92c03b1a-1", "text": "related_records\n \n Array\n \n Record IDs that were associated.\n \nResponse\n \"record\": {\n \"id\": \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\": \"Slender Broadband Inc - 1000 units\",\n \"date_entered\": \"2013-02-26T19:12:00+00:00\",\n \"date_modified\": \"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameadd_record_listremote_id_POST/index.html"} {"id": "f1ca92c03b1a-2", "text": "\"description\": \"\",\n \"img\": \"\",\n \"last_activity_date\": \"2013-02-28T18:21:00+00:00\",\n \"deleted\": false,\n \"assigned_user_id\": \"seed_max_id\",\n \"assigned_user_name\": \"Max Jensen\",\n \"team_name\": [\n {\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n },\n {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"opportunity_type\": \"\",\n \"account_name\": \"Slender Broadband Inc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameadd_record_listremote_id_POST/index.html"} {"id": "f1ca92c03b1a-3", "text": "\"account_name\": \"Slender Broadband Inc\",\n \"account_id\": \"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"lead_source\": \"Campaign\",\n \"amount\": \"25000\",\n \"base_rate\": \"1\",\n \"amount_usdollar\": \"25000\",\n \"currency_id\": \"-99\",\n \"currency_name\": \"\",\n \"currency_symbol\": \"\",\n \"date_closed\": \"2013-02-27\",\n \"date_closed_timestamp\": \"1361992480\",\n \"next_step\": \"\",\n \"sales_stage\": \"Needs Analysis\",\n \"sales_status\": \"New\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameadd_record_listremote_id_POST/index.html"} {"id": "f1ca92c03b1a-4", "text": "\"sales_status\": \"New\",\n \"probability\": \"90\",\n \"best_case\": \"25000\",\n \"worst_case\": \"25000\",\n \"commit_stage\": \"include\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n \"related_records\": [\n success: [\n \"e689173e-c953-1e14-c215-512d0927e7a2\",\n \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"181461c6-dc81-1115-1fe0-512d092e8f15\"\n ],\n error: []\n ]\n}\nChange Log\nVersion\nChange", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameadd_record_listremote_id_POST/index.html"} {"id": "f1ca92c03b1a-5", "text": "],\n error: []\n ]\n}\nChange Log\nVersion\nChange\n v10 (7.2.0)\n \n Added //:record/link/:link_name/add_record_list/:remote_id POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameadd_record_listremote_id_POST/index.html"} {"id": "f12da2f55623-0", "text": "/Administration/elasticsearch/refresh/trigger POST\nOverview\n [ADMIN] Elasticsearch trigger explicit index refresh on all indices\nSummary\n Trigger an explicit index refresh for all indices managed by SugarCRM. This endpoint is only\n available to administrators.\nResponse\n{\n \"aabbcc_contactsleads\": 200,\n \"aabbcc_accountsonly\": 200,\n \"aabbcc_shared\": 200\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/refresh/trigger POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchrefreshtrigger_POST/index.html"} {"id": "7ec089867439-0", "text": "/pmse_Project/GatewayDefinition/:record PUT\nOverview\n Updates the definition data for a gateway\nSummary\n This endpoint will update the Process Definition gateway identified by the\n record input parameter with the data provided by the request\n payload.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe value for the gat_uid field in the pmse_bpmn_gateway record\nTrue\nRequest Payload\n{\n \"data\":\n [\n {\n \"flo_uid\":\"985528634573cabc8901d04029355451\",\n \"flo_condition\":\"\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\nsuccess\nBoolean\nThe status of the update operation\nResponse\n{\n \"success\":true\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectGatewayDefinitionrecord_PUT/index.html"} {"id": "7ec089867439-1", "text": "The status of the update operation\nResponse\n{\n \"success\":true\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectGatewayDefinitionrecord_PUT/index.html"} {"id": "ace7f8a57b3e-0", "text": "/pmse_Inbox/note_list/:cas_id GET\nOverview\n Returns the notes list for a process \nSummary\nThis endpoint gets the notes for a process\nRequest Arguments\nName\nType\nDescription\nRequired\ncas_id\nstring\nThe id of the process trigger sequence\ntrue\nResponse Arguments\nName\nType\nDescription\nrowList\nobject\nNote records\ntotalRows\ninteger\nTotal notes\ncurrentOffset\ninteger\nCurrent offset\ncurrentDate\ninteger\nCurrent date\nResponse\n{\n \"rowList\":\n [\n {\n \"pmse_bpm_notes__date_entered\":\"2016-06-02 16:52:21\",\n \"id\":\"602d4cb0-28e2-11e6-88c9-6c4008960436\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxnote_listcas_id_GET/index.html"} {"id": "ace7f8a57b3e-1", "text": "\"date_entered\":\"2016-06-02T09:52:21-07:00\",\n \"date_modified\":\"2016-06-02T09:52:21-07:00\",\n \"cas_id\":\"2\",\n \"cas_index\":\"1\",\n \"not_user_id\":\"1\",\n \"not_user_recipient_id\":\"\",\n \"not_type\":\"GENERAL\",\n \"not_date\":null,\n \"not_status\":\"ACTIVE\",\n \"not_availability\":\"\",\n \"not_content\":\"Test Note1\",\n \"not_recipients\":\"\",\n \"first_name\":null,\n \"last_name\":\"Administrator\",\n \"picture\":\"0b2dc2f0-2377-11e6-9d2a-6c4008960436\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxnote_listcas_id_GET/index.html"} {"id": "ace7f8a57b3e-2", "text": "}\n ],\n \"totalRows\":1,\n \"currentOffset\":0,\n \"currentDate\":\"2016-06-02 16:52:39\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxnote_listcas_id_GET/index.html"} {"id": "0228617fc7a5-0", "text": "/Mail/address/validate POST\nOverview\n Validate one or more email addresses.\nRequest Arguments\nType\nDescription\nRequired\n Array\n \n Array of one or more email addresses to validate.\n \n True\n \nRequest\n [\n \"a@b.com\",\n \"c@d.com\",\n \"invalid-email.com\"\n ]\nResponse Arguments\nType\nDescription\n Object\n \n Returns an object with each email address as a key and a boolean\n indicating whether the email address is valid as the value.\n \nResponse\n{\n \"a@b.com\": true,\n \"c@d.com\": true,\n \"invalid-email.com\": false\n}\nChange Log\nVersion\nChange\n v11", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailaddressvalidate_POST/index.html"} {"id": "0228617fc7a5-1", "text": "}\nChange Log\nVersion\nChange\n v11\n \n Last version in which /Mail/address/validate POST is available.\n \n v10\n \n Added /Mail/address/validate POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailaddressvalidate_POST/index.html"} {"id": "ad8630aa6486-0", "text": "/pmse_Inbox/userListByTeam/:id GET\nOverview\n Deprecated endpoint.\nSummary\nThis endpoint is deprecated and will be removed in a future release.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxuserListByTeamid_GET/index.html"} {"id": "acd4148229cd-0", "text": "/Administration/elasticsearch/mapping GET\nOverview\n [ADMIN] Elasticsearch mapping\nSummary\n This endpoint returns the mapping for every available index. This endpoint is only available to administrators.\nResponse\n{\n \"autobr2583_shared\":{\n \"KBDocuments\":{\n \"dynamic\":\"false\",\n \"_all\":{\n \"enabled\":false\n },\n \"properties\":{\n \"kbdocument_name\":{\n \"type\":\"string\",\n \"index\":\"not_analyzed\",\n \"fields\":{\n \"gs_string_default\":{\n \"type\":\"string\",\n \"analyzer\":\"gs_analyzer_default\"\n },\n \"gs_string_ngram\":{\n \"type\":\"string\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchmapping_GET/index.html"} {"id": "acd4148229cd-1", "text": "\"gs_string_ngram\":{\n \"type\":\"string\",\n \"index_analyzer\":\"gs_analyzer_ngram\",\n \"search_analyzer\":\"gs_analyzer_default\"\n }\n }\n }\n }\n },\n \"RevenueLineItems\":{\n \"dynamic\":\"false\",\n \"_all\":{\n \"enabled\":false\n },\n \"properties\":{\n \"date_modified\":{\n \"type\":\"string\",\n \"index\":\"not_analyzed\",\n \"fields\":{\n \"gs_datetime\":{\n \"type\":\"date\",\n \"index\":\"no\",\n \"format\":\"YYYY-MM-dd HH:mm:ss\"\n }\n }\n },\n \"description\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchmapping_GET/index.html"} {"id": "acd4148229cd-2", "text": "}\n }\n },\n \"description\":{\n \"type\":\"string\",\n \"index\":\"not_analyzed\",\n \"fields\":{\n \"gs_string_default\":{\n \"type\":\"string\",\n \"analyzer\":\"gs_analyzer_default\"\n },\n \"gs_string_ngram\":{\n \"type\":\"string\",\n \"index_analyzer\":\"gs_analyzer_ngram\",\n \"search_analyzer\":\"gs_analyzer_default\"\n }\n }\n }\n }\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/mapping GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchmapping_GET/index.html"} {"id": "6914296673be-0", "text": "/pmse_Inbox/ReassignForm/:data/:flowId GET\nOverview\n Deprecated endpoint.\nSummary\nThis endpoint is deprecated and will be removed in a future release.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxReassignFormdataflowId_GET/index.html"} {"id": "da775d4459e6-0", "text": "//:record DELETE\nOverview\n Delete a record of a specified type.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n id\n \n String\n \n Returns the ID of the deleted record.\n \nResponse\n{\n \"id\": \"11cf0d0a-40af-8cb1-9da0-5057a5f511f9\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_DELETE/index.html"} {"id": "37f6ee16a720-0", "text": "/ForecastManagerWorksheets/:timeperiod_id/:user_id GET\nReturns a collection of ForecastManagerWorksheet models\nSummary:\nThis end point is used to return the ManagerWorksheets for a user at a given timeperiod. If no timeperiod is provide it\n will use the default timeperiod, likewise if no user is provided, it will default to the logged in user.\nUrl Parameters:\nParam\nDescription\nOptional\ntimeperiod_id\nShow for a specific time period, defaults to the current time period if one is not passed\nOptional\nuser_id\nShow for a specific user, defaults to current user if not defined\nOptional\nPossible Errors\nError\nDescription\n412 - Invalid Parameter\nWhen the passed in timeperiod and/or user can not be found\n403 - Not Authorized", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-1", "text": "403 - Not Authorized\nIf you are not an administrator, but you are trying to view another managers forecast manager worksheet, you will receive a 403 Not Authorized Error\nUrl Example:\n /rest/v10/ForecastManagerWorksheets/:timeperiod_id/:user_id\n \nOutput Example:\n { \n \"next_offset\":-1,\n \"records\":[ \n { \n \"id\":\"401594f5-5b46-fb66-1627-55771fe8723e\",\n \"name\":\"Sally Bronsen\",\n \"date_modified\":\"2015-06-09T13:13:26-04:00\",\n \"created_by\":\"1\",\n \"quota\":\"1932.444445\",\n \"best_case\":\"29848.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-2", "text": "\"best_case\":\"29848.000000\",\n \"best_case_adjusted\":\"37310.000000\",\n \"likely_case\":\"28694.444445\",\n \"likely_case_adjusted\":\"35868.055556\",\n \"worst_case\":\"27540.888889\",\n \"worst_case_adjusted\":\"34426.111111\",\n \"timeperiod_id\":\"adb78e81-3fbd-b4e0-287f-55771fd04a06\",\n \"draft\":true,\n \"is_manager\":false,\n \"user_id\":\"seed_sally_id\",\n \"opp_count\":10,\n \"pipeline_opp_count\":3,\n \"pipeline_amount\":\"2415.555556\",\n \"closed_amount\":\"26278.888889\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-3", "text": "\"closed_amount\":\"26278.888889\",\n \"manager_saved\":true,\n \"show_history_log\":0,\n \"following\":false,\n \"assigned_user_id\":\"seed_sarah_id\",\n \"assigned_user_name\":\"Sarah Smith\",\n \"team_name\":[ \n { \n \"id\":\"1\",\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"ForecastManagerWorksheets\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-4", "text": "\"_module\":\"ForecastManagerWorksheets\"\n },\n { \n \"id\":\"28226f12-a3c9-bd84-041e-55771f064c4e\",\n \"name\":\"Max Jensen\",\n \"date_modified\":\"2015-06-09T13:13:26-04:00\",\n \"created_by\":\"1\",\n \"quota\":\"3141.333332\",\n \"best_case\":\"15848.222223\",\n \"best_case_adjusted\":\"13206.851853\",\n \"likely_case\":\"14928.222222\",\n \"likely_case_adjusted\":\"12440.185185\",\n \"worst_case\":\"14008.222223\",\n \"worst_case_adjusted\":\"11673.518519\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-5", "text": "\"worst_case_adjusted\":\"11673.518519\",\n \"timeperiod_id\":\"adb78e81-3fbd-b4e0-287f-55771fd04a06\",\n \"draft\":true,\n \"is_manager\":false,\n \"user_id\":\"seed_max_id\",\n \"opp_count\":12,\n \"pipeline_opp_count\":3,\n \"pipeline_amount\":\"2617.777777\",\n \"closed_amount\":\"12310.444445\",\n \"manager_saved\":true,\n \"show_history_log\":0,\n \"following\":false,\n \"assigned_user_id\":\"seed_sarah_id\",\n \"assigned_user_name\":\"Sarah Smith\",\n \"team_name\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-6", "text": "\"team_name\":[ \n { \n \"id\":\"1\",\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"ForecastManagerWorksheets\"\n },\n { \n \"id\":\"1aca66af-f069-bba4-28a1-55771fe27506\",\n \"name\":\"\",\n \"date_modified\":\"2015-06-09T13:13:26-04:00\",\n \"created_by\":\"1\",\n \"quota\":\"10142.333333\",\n \"best_case\":\"37625.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-7", "text": "\"best_case\":\"37625.000000\",\n \"best_case_adjusted\":\"37625.000000\",\n \"likely_case\":\"34241.333333\",\n \"likely_case_adjusted\":\"34241.333333\",\n \"worst_case\":\"30857.666667\",\n \"worst_case_adjusted\":\"30857.666667\",\n \"timeperiod_id\":\"adb78e81-3fbd-b4e0-287f-55771fd04a06\",\n \"draft\":true,\n \"is_manager\":true,\n \"user_id\":\"seed_sarah_id\",\n \"opp_count\":13,\n \"pipeline_opp_count\":6,\n \"pipeline_amount\":\"10142.333333\",\n \"closed_amount\":\"24099.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "37f6ee16a720-8", "text": "\"closed_amount\":\"24099.000000\",\n \"manager_saved\":true,\n \"show_history_log\":0,\n \"following\":false,\n \"assigned_user_id\":\"seed_sarah_id\",\n \"assigned_user_name\":\"Sarah Smith\",\n \"team_name\":[ \n { \n \"id\":\"1\",\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\",\n \"_acl\":{ \n \"fields\":{ \n }\n },\n \"_module\":\"ForecastManagerWorksheets\"\n }\n ]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetstimeperiod_iduser_id_GET/index.html"} {"id": "2830c82a7767-0", "text": "/Users GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "2830c82a7767-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Users_GET/index.html"} {"id": "b9a7a0445262-0", "text": "/Genericsearch POST\nOverview\nGeneric search.\nSummary\nThis endpoint searches the content of the given modules using the provider specified by the \"generic_search\" configuration variable. If the variable is absent, the default provider is \"Elastic\".\nRequest Arguments\nName\nType\nDescription\nRequired\nq\nString\nThe search expression.\nTrue\nmodule_list\nString\nComma-delimited list of modules to search. If omitted, all search enabled modules will be queried. Example: KBDocuments,Bugs\nFalse\nmax_num\nInteger\nA maximum number of records to return. Default is 20.\nFalse\noffset\nInteger\nThe number of records to skip over before records are returned. Default is 0.\nFalse\nResponse Arguments\nName\nType\nDescription\nnext_offset\nInteger\nDisplays the next offset for retrieval of additional results. -1 will be returned when there are no more records.\ntotal", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Genericsearch_POST/index.html"} {"id": "b9a7a0445262-1", "text": "total\nInteger\nThe number of records found.\nrecords\nArray\nAn array of results containing matched records.\nResponse\n{\n \"next_offset\": -1,\n \"total\": 1,\n \"records\": [\n {\n \"name\": \"Connecting to the Internet\",\n \"description\": \"To connect your device to the Internet, use any application that accesses the Internet. You can connect using either Wi-Fi or Bluetooth.\",\n \"url\": \"portal/index.html#KBContents/60142236-bad3-11e9-9d32-3c15c2d57622\" (for portal)\n \"url\": \"#KBContents/60142236-bad3-11e9-9d32-3c15c2d57622\" (for base)\n }\n ]\n}\nChange Log", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Genericsearch_POST/index.html"} {"id": "b9a7a0445262-2", "text": "}\n ]\n}\nChange Log\nVersion\nChange\nv11_9\nAdded /Genericsearch\u00c2\u00a0POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Genericsearch_POST/index.html"} {"id": "e3ca6369c2f9-0", "text": "/Teams/:record/link POST\nOverview\n Creates relationships to a pre-existing record.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n Link between targeted and related records.\n \n True\n \n \n \n \n \n The name value list of related records. Each item of the list may be either string equal to related item ID,\n or map containing record ID (\"id\" key is required in this case)\n and addition relationship properties.\n \n True\n \nRequest\n{\n link_name: \"accounts\"\n ids: [\n \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-1", "text": "{\n \"id\": \"e689173e-c953-1e14-c215-512d0927e7a2\",\n \"role\": \"owner\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record linked to related records.\n \n related_records\n \n Array\n \n Records that were associated.\n \nResponse\n \"record\": {\n \"id\": \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\": \"Slender Broadband Inc - 1000 units\",\n \"date_entered\": \"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-2", "text": "\"date_modified\": \"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",\n \"last_activity_date\": \"2013-02-28T18:21:00+00:00\",\n \"deleted\": false,\n \"assigned_user_id\": \"seed_max_id\",\n \"assigned_user_name\": \"Max Jensen\",\n \"team_name\": [\n {\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-3", "text": "\"primary\": false\n },\n {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"opportunity_type\": \"\",\n \"account_name\": \"Slender Broadband Inc\",\n \"account_id\": \"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"lead_source\": \"Campaign\",\n \"amount\": \"25000\",\n \"base_rate\": \"1\",\n \"amount_usdollar\": \"25000\",\n \"currency_id\": \"-99\",\n \"currency_name\": \"\",\n \"currency_symbol\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-4", "text": "\"currency_name\": \"\",\n \"currency_symbol\": \"\",\n \"date_closed\": \"2013-02-27\",\n \"date_closed_timestamp\": \"1361992480\",\n \"next_step\": \"\",\n \"sales_stage\": \"Needs Analysis\",\n \"sales_status\": \"New\",\n \"probability\": \"90\",\n \"best_case\": \"25000\",\n \"worst_case\": \"25000\",\n \"commit_stage\": \"include\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n \"related_records\": [\n {\n \"id\": \"e689173e-c953-1e14-c215-512d0927e7a2\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-5", "text": "\"name\": \"Gus Dales\",\n \"date_entered\": \"2013-02-26T19:12:00+00:00\",\n \"date_modified\": \"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",\n \"deleted\": false,\n \"assigned_user_id\": \"seed_sally_id\",\n \"assigned_user_name\": \"Sally Bronsen\",\n \"team_name\": [\n {\n \"id\": \"West\",\n \"name\": \"West\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-6", "text": "{\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"salutation\": \"\",\n \"first_name\": \"Gus\",\n \"last_name\": \"Dales\",\n \"full_name\": \"Gus Dales\",\n \"title\": \"Director Operations\",\n \"linkedin\": \"\",\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"department\": \"\",\n \"do_not_call\": false,\n \"phone_home\": \"(661) 120-2292\",\n \"email\": [\n {\n \"email_address\": \"section.sugar.section@example.it\",\n \"opt_out\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-7", "text": "\"opt_out\": \"1\",\n \"invalid_email\": \"0\",\n \"primary_address\": \"0\"\n },\n {\n \"email_address\": \"support.qa.kid@example.co.uk\",\n \"opt_out\": \"0\",\n \"invalid_email\": \"0\",\n \"primary_address\": \"1\"\n }\n ],\n \"phone_mobile\": \"(294) 447-9707\",\n \"phone_work\": \"(036) 840-3216\",\n \"phone_other\": \"\",\n \"phone_fax\": \"\",\n \"email1\": \"support.qa.kid@example.co.uk\",\n \"email2\": \"section.sugar.section@example.it\",\n \"invalid_email\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-8", "text": "\"invalid_email\": false,\n \"email_opt_out\": false,\n \"primary_address_street\": \"48920 San Carlos Ave\",\n \"primary_address_street_2\": \"\",\n \"primary_address_street_3\": \"\",\n \"primary_address_city\": \"Persistance\",\n \"primary_address_state\": \"CA\",\n \"primary_address_postalcode\": \"54556\",\n \"primary_address_country\": \"USA\",\n \"alt_address_street\": \"\",\n \"alt_address_street_2\": \"\",\n \"alt_address_street_3\": \"\",\n \"alt_address_city\": \"\",\n \"alt_address_state\": \"\",\n \"alt_address_postalcode\": \"\",\n \"alt_address_country\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-9", "text": "\"alt_address_country\": \"\",\n \"assistant\": \"\",\n \"assistant_phone\": \"\",\n \"picture\": \"\",\n \"email_and_name1\": \"\",\n \"lead_source\": \"Support Portal User Registration\",\n \"account_name\": \"Arts & Crafts Inc\",\n \"account_id\": \"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"opportunity_role_fields\": \"\",\n \"opportunity_role_id\": \"\",\n \"opportunity_role\": \"Technical Advisor\",\n \"reports_to_id\": \"\",\n \"report_to_name\": \"\",\n \"portal_name\": \"GusDales145\",\n \"portal_active\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-10", "text": "\"portal_active\": true,\n \"portal_password\": \"$1$JxYr6tmM$b.O6.KF42jP46RadSwz0N0\",\n \"portal_password1\": \"\",\n \"portal_app\": \"\",\n \"preferred_language\": \"en_us\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"c_accept_status_fields\": \"\",\n \"m_accept_status_fields\": \"\",\n \"accept_status_id\": \"\",\n \"accept_status_name\": \"\",\n \"sync_contact\": \"\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-11", "text": "\"fields\": {\n }\n }\n },\n {\n \"id\": \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\": \"Slender Broadband Inc - 1000 units\",\n \"date_entered\": \"2013-02-26T19:12:00+00:00\",\n \"date_modified\": \"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-12", "text": "\"description\": \"\",\n \"img\": \"\",\n \"last_activity_date\": \"2013-02-28T18:36:00+00:00\",\n \"deleted\": false,\n \"assigned_user_id\": \"seed_max_id\",\n \"assigned_user_name\": \"Max Jensen\",\n \"team_name\": [\n {\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n },\n {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"opportunity_type\": \"\",\n \"account_name\": \"Slender Broadband Inc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-13", "text": "\"account_name\": \"Slender Broadband Inc\",\n \"account_id\": \"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"lead_source\": \"Campaign\",\n \"amount\": \"25000\",\n \"base_rate\": \"1\",\n \"amount_usdollar\": \"25000\",\n \"currency_id\": \"-99\",\n \"currency_name\": \"\",\n \"currency_symbol\": \"\",\n \"date_closed\": \"2013-02-27\",\n \"date_closed_timestamp\": \"1361992480\",\n \"next_step\": \"\",\n \"sales_stage\": \"Needs Analysis\",\n \"sales_status\": \"New\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "e3ca6369c2f9-14", "text": "\"sales_status\": \"New\",\n \"probability\": \"90\",\n \"best_case\": \"25000\",\n \"worst_case\": \"25000\",\n \"commit_stage\": \"include\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10 (7.6.0)\n \n Added support for additional relationship values.\n \n v10 (7.1.5)\n \n Added //:record/link POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlink_POST/index.html"} {"id": "9ef12406b520-0", "text": "//recent-product GET\nOverview\n Opportunity Recent Product Help\nSummary\n This endpoint retrieves top 10 recently used Quoted/Revenue Line Items based on the module to display them in the\n \"Product Catalog Quick Picks\" dashlet in the reverse chronological order.\nRequest Arguments\nNone\nResponse Arguments\nNONE\nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"c1b4680e-c7f2-11e8-9380-7831c1c14620\",\n \"name\":\"Brain Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-1", "text": "\"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Smallville Resources Inc 362299XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"370.000000\",\n \"discount_price\":\"854.370000\",\n \"list_price\":\"863.000000\",\n \"cost_usdollar\":\"370.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-2", "text": "\"cost_usdollar\":\"370.000000\",\n \"discount_usdollar\":\"854.370000\",\n \"list_usdollar\":\"863.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"10.00\",\n \"qty_in_stock\":106,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"PercentageDiscount\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-3", "text": "\"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c186a612-c7f2-11e8-9fee-7831c1c14620\",\n \"name\":\"Bradford Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-4", "text": "\"category_id\":\"c185dbb0-c7f2-11e8-a6b7-7831c1c14620\",\n \"mft_part_num\":\"Mississippi Bank Group 133834XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"528.000000\",\n \"discount_price\":\"533.333333\",\n \"list_price\":\"745.000000\",\n \"cost_usdollar\":\"528.000000\",\n \"discount_usdollar\":\"533.333333\",\n \"list_usdollar\":\"745.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"33.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-5", "text": "\"website\":null,\n \"weight\":\"33.00\",\n \"qty_in_stock\":70,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b60434-c7f2-11e8-8964-7831c1c14620\",\n \"name\":\"Billie Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-6", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Kringle Bell IncK.A. Tower \\u0026 Co 694143XYZ987\",\n \"vendor_part_num\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-7", "text": "\"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"403.000000\",\n \"discount_price\":\"927.000000\",\n \"list_price\":\"927.000000\",\n \"cost_usdollar\":\"403.000000\",\n \"discount_usdollar\":\"927.000000\",\n \"list_usdollar\":\"927.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"16.00\",\n \"qty_in_stock\":148,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-8", "text": "\"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"IsList\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c18e0448-c7f2-11e8-86b0-7831c1c14620\",\n \"name\":\"Arla Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-9", "text": "\"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c18b8b64-c7f2-11e8-8c1a-7831c1c14620\",\n \"mft_part_num\":\"24\\/7 Couriers 795391XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"398.000000\",\n \"discount_price\":\"402.020202\",\n \"list_price\":\"941.000000\",\n \"cost_usdollar\":\"398.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-10", "text": "\"cost_usdollar\":\"398.000000\",\n \"discount_usdollar\":\"402.020202\",\n \"list_usdollar\":\"941.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"22.00\",\n \"qty_in_stock\":145,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-11", "text": "\"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c181bd32-c7f2-11e8-b4eb-7831c1c14620\",\n \"name\":\"Allyson Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-12", "text": "\"category_id\":\"c18112d8-c7f2-11e8-b753-7831c1c14620\",\n \"mft_part_num\":\"Ink Conglomerate Inc 921535XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"534.000000\",\n \"discount_price\":\"842.000000\",\n \"list_price\":\"905.000000\",\n \"cost_usdollar\":\"534.000000\",\n \"discount_usdollar\":\"842.000000\",\n \"list_usdollar\":\"905.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "9ef12406b520-13", "text": "\"website\":null,\n \"weight\":\"20.00\",\n \"qty_in_stock\":26,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"Fixed\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Opportunities/recent_product GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_GET/index.html"} {"id": "5e9e6c9476af-0", "text": "/pmse_Inbox/AdhocReassign/:data/:flowId GET\nOverview\n Deprecated endpoint.\nSummary\nThis endpoint is deprecated and will be removed in a future release.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxAdhocReassigndataflowId_GET/index.html"} {"id": "b381109ecb70-0", "text": "/oauth2/bwc/login POST\nATTENTION: FOR INTERNAL USAGE ONLY\nThis endpoint is subject to change.\nOverview\n Retrieves a cookie from the OAuth token.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/oauth2bwclogin_POST/index.html"} {"id": "1630e777b022-0", "text": "/Calls/:record DELETE\nOverview\n Deletes either a single event record or a series of event records\nRequest Arguments\nName\nType\nDescription\nRequired\n all_recurrences\n \n Boolean\n \n Flag to delete all events in a series.\n \n False\n \nRequest\nhttp://{site_url}/rest/v10/Meetings/2c9e5c09-6824-0d14-f5cb-5130321ac3cf?all_recurrences=true\nResponse Arguments\nName\nType\nDescription\n id\n \n String\n \n Returns the ID of the deleted record.\n \nResponse\n{\n \"id\": \"11cf0d0a-40af-8cb1-9da0-5057a5f511f9\"\n}\nChange Log\nVersion\nChange", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Callsrecord_DELETE/index.html"} {"id": "1630e777b022-1", "text": "}\nChange Log\nVersion\nChange\n v10\n \n Added //:record DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Callsrecord_DELETE/index.html"} {"id": "58969cce10eb-0", "text": "/pmse_Inbox/AdhocReassign PUT\nOverview\n Deprecated endpoint.\nSummary\nThis endpoint is deprecated and will be removed in a future release.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxAdhocReassign_PUT/index.html"} {"id": "03ed476a39ab-0", "text": "/me/preferences PUT\nOverview\n Mass updates preferences for the user.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \u00c2\u00a0\n \n \u00c2\u00a0\n \n \u00c2\u00a0\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me/preferences PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mepreferences_PUT/index.html"} {"id": "2c4bc2201316-0", "text": "//:record/collection/:collection_name GET\nOverview\n Lists related records from multiple links at a time.\nSummary\n This endpoint will return a set of related records fetched from multiple links defined by :collection_name.\n The records will be filtered, sorted and truncated to max_num as a single collection.\n Collections may use a field mapping. For instance, the due_date of Tasks may be referred to as date_end.\n In this case the alias (date_end) should be used in filter and order_by expressions instead of real field name.\n Note that response data still contains the original fields for the module.\nRequest Arguments\nName\nType\nDescription\nRequired\nfields\nString\n See Filter API. If collection definition uses aliases, then aliases should be used instead of real field names.\n \nFalse\nview\nString\n See Filter API.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordcollectioncollection_name_GET/index.html"} {"id": "2c4bc2201316-1", "text": "False\nview\nString\n See Filter API.\n \nFalse\nmax_num\nInteger\n See Filter API.\n \nFalse\nfilter\nString\n See Filter API. If collection definition uses aliases, then aliases should be used instead of real field names.\n \nFalse\norder_by\nString\n See Filter API. If collection definition uses aliases, then aliases should be used instead of real field names.\n \nFalse\noffset\nMap\n Individual offset for each link which the collection consists of.\n -1 (or any negative value) denotes that the link should be skipped.\n If link offset is not specified, it defaults to 0.\n \nFalse\nResponse Arguments\nName\nType\nDescription\nnext_offset\nMap\n The next offset to retrieve records. -1 will be returned for the given link when there are no more records.\n \nrecords\nArray", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordcollectioncollection_name_GET/index.html"} {"id": "2c4bc2201316-2", "text": "records\nArray\nThe record result set.\nerrors\nMap\nErrors encountered while making requests for the individual links. These errors are returned for the client to consume, but do not affect the response status of the request.\nResponse\n{\n \"next_offset\": {\n \"calls\": 1,\n \"meetings\": -1,\n \"tasks\": -1,\n },\n \"records\": [\n {\n \"_module\": \"Calls\",\n \"_link\": \"calls\",\n \"id\": \"8703fbf3-0ffa-c288-8d2c-512f943ecdc3\",\n \"name\": \"Discuss review process\",\n \"date_end\": \"2014-02-26T19:12:00+00:00\"\n },\n {\n \"_module\": \"Tasks\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordcollectioncollection_name_GET/index.html"} {"id": "2c4bc2201316-3", "text": "},\n {\n \"_module\": \"Tasks\",\n \"_link\": \"tasks\",\n \"id\": \"e1c495cb-af17-1b37-dd66-512f934fe155\",\n \"name\": \"Introduce all players\",\n \"due_date\": \"2014-02-26T19:12:00+00:00\"\n },\n {\n \"_module\": \"Tasks\",\n \"_link\": \"tasks\",\n \"id\": \"456b7848-9959-5a64-cd34-512d0938addd\",\n \"name\": \"Follow-up on proposal\",\n \"due_date\": \"2014-02-26T19:12:00+00:00\"\n }\n ],\n \"errors\": {\n \"meetings\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordcollectioncollection_name_GET/index.html"} {"id": "2c4bc2201316-4", "text": "}\n ],\n \"errors\": {\n \"meetings\": {\n \"code\": 403,\n \"error\": \"not_authorized\",\n \"error_message\": \"You are not authorized to perform this action. Contact your administrator if you need access.\"\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/collection/:collection_name GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordcollectioncollection_name_GET/index.html"} {"id": "c54a5e7d4e50-0", "text": "/EmbeddedFiles/:record/file/:field GET\nOverview\n Retrieves an attached file for a specific field on a record.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\n The response from this request is an HTTP response with a forced download. This can be used in rendering images through the API or in offering immediate file downloads.\nResponse\nCache-Control: no-cache, must-revalidate Connection: keep-alive Content-Encoding: gzip Content-Type: application/octet-stream Date: Mon, 30 Jan 2012 17:00:46 GMT Expires: Mon, 30 Jan 2012 17:00:45 GMT Last-Modified: Thu, 10 Nov 2011 19:01:31 GMT Transfer-Encoding: chunked Vary: Accept-Encoding...\nChange Log\nVersion\nChange\n v10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmbeddedFilesrecordfilefield_GET/index.html"} {"id": "c54a5e7d4e50-1", "text": "Change Log\nVersion\nChange\n v10\n \n Added //:record/file/:field GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmbeddedFilesrecordfilefield_GET/index.html"} {"id": "6c594577c424-0", "text": "/theme GET\nOverview\n Fetches the customizable variables of a theme.\nRequest Arguments\nName\nType\nDescription\nRequired\nplatform\nString\nThe theme platform - /themes/clients/***PLATFORM***/themeName/. Accepted values are 'base' and 'portal'.\nFalse\nthemeName\nString\nThe theme name - /themes/clients/platform/***THEME NAME***/.\nFalse\nRequest\nhttp://{site_url}/rest/v10/theme?platform=base&themeName=default\nNote: GET endpoint parameters are passed in the form of a query string.\nResponse Arguments\nName\nType\nDescription\nmixins\nArray\nAn array of name value pairs detailing mixin colors\nhex\nArray\nA array of name value pairs detailing css colors\nrgba\nArray\nAn array of name value pairs detailing colors\nrel\nArray", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/theme_GET/index.html"} {"id": "6c594577c424-1", "text": "rgba\nArray\nAn array of name value pairs detailing colors\nrel\nArray\nAn array of name value pairs detailing relationships\nbg\nArray\nAn array of name value pairs detailing backgroup colors\nResponse\n{\n \"colors\":[\n {\n \"name\":\"BorderColor\",\n \"value\":\"#E61718\"\n },\n {\n \"name\":\"NavigationBar\",\n \"value\":\"#000000\"\n },\n {\n \"name\":\"PrimaryButton\",\n \"value\":\"#177EE5\"\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added / GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/theme_GET/index.html"} {"id": "e22322d1dffd-0", "text": "/Notifications GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "e22322d1dffd-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Notifications_GET/index.html"} {"id": "56442472d8bc-0", "text": "/oauth2/logout POST\nOverview\n Expires the token portion of the OAuth 2.0 specification.\nRequest Arguments\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n success\n \n Boolean\n \n The success of the logout.\n \nResponse\n{\n \"success\":true\n}\nChange Log\nVersion\nChange\n v10\n \n Added /oauth2/logout POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/oauth2logout_POST/index.html"} {"id": "3db9fbf8266a-0", "text": "//:record/collection/:collection_name/count GET\nOverview\n Counts related records from multiple links at a time.\nSummary\n This endpoint will return count of records related by multiple links defined by :collection_name.\n The records may be filtered.\nRequest Arguments\nName\nType\nDescription\nRequired\nfilter\nString\n See Filter API. If collection definition uses aliases, then aliases should be used instead of real field names.\n \nFalse\nResponse Arguments\nName\nType\nDescription\nrecord_count\nMap\n Count of related records.\n \nResponse\n{\n \"record_count\": {\n \"calls\": 1,\n \"meetings\": 2,\n \"tasks\": 3\n }\n}\nChange Log\nVersion\nChange\n v10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordcollectioncollection_namecount_GET/index.html"} {"id": "3db9fbf8266a-1", "text": "}\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/collection/:collection_name/count GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordcollectioncollection_namecount_GET/index.html"} {"id": "af19e605095f-0", "text": "/KBContents/config PUT\nCreates and/or updates the config settings for the KBContents module\nSummary:\n This endpoint is used to create and/or update the config settings for the KBContents module as json data.\n It extends the core config endpoint by adding the functionality to process deleted languages and documents\n related to them.\nQuery Parameters:\nParam\nDescription\nOptional\nInput Example:\n {\n \"languages\":[{\n \"en\":\"English\",\n \"primary\":true\n },{\n \"de\":\"German\",\n \"primary\":false\n }],\n \"category_root\":\"31696245-0438-ff7a-9144-544f8c659daf\",\n \"deleted_languages\":[\"es\",\"ru\"]\n }\n \nOutput Example:\n {\n \"languages\":[{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsconfig_PUT/index.html"} {"id": "af19e605095f-1", "text": "}\n \nOutput Example:\n {\n \"languages\":[{\n \"en\":\"English\",\n \"primary\":true\n },{\n \"de\":\"German\",\n \"primary\":false\n }],\n \"category_root\":\"31696245-0438-ff7a-9144-544f8c659daf\",\n \"deleted_languages\":[\"es\",\"ru\"]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsconfig_PUT/index.html"} {"id": "26659c40140e-0", "text": "/mostactiveusers GET\nOverview\n Fetches the most active users for meetings, calls, inbound emails, and outbound emails.\nRequest Arguments\nName\nType\nDescription\nRequired\ndays\nInteger\nReturns most active users for the last specified quantity of days. Defaults to 30 days if not specified.\nFalse\nRequest\nhttp://{site_url}/rest/v10/mostactiveusers?days=30\nNote: GET endpoint parameters are passed in the form of a query string.\nResponse Arguments\nResponse\n{\n \"meetings\":{\n \"user_id\":\"seed_sarah_id\",\n \"count\":\"20\",\n \"first_name\":\"Sarah\",\n \"last_name\":\"Smith\"\n },\n \"calls\":{\n \"user_id\":\"seed_will_id\",\n \"count\":\"7\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mostactiveusers_GET/index.html"} {"id": "26659c40140e-1", "text": "\"user_id\":\"seed_will_id\",\n \"count\":\"7\",\n \"first_name\":\"Will\",\n \"last_name\":\"Westin\"\n },\n \"inbound_emails\":{\n \"user_id\":\"seed_sarah_id\",\n \"count\":\"20\",\n \"first_name\":\"Sarah\",\n \"last_name\":\"Smith\"\n },\n \"outbound_emails\":{\n \"user_id\":\"seed_max_id\",\n \"count\":\"17\",\n \"first_name\":\"Max\",\n \"last_name\":\"Jensen\"\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added /mostactiveusers GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mostactiveusers_GET/index.html"} {"id": "f7f2e6d86ab9-0", "text": "/pmse_Inbox/settings GET\nOverview\n Retrieve settings for the PA engine\nSummary\n This endpoint gets settings for the SugarBPMTM engine\nRequest Arguments\nName\nType\nDescription\nRequired\nfields\nstring\nComma separated list of SugarBPMTM config keys to return. If not sent, all config settings will be returned.\nfalse\nResponse Arguments\nName\nType\nDescription\nlogger_level\nstring\nLevel of logging\nerror_number_of_cycles\ninteger\nError number of cycles\nerror_timeout\ninteger\nTimeout for errors\nResponse\n{\n \"logger_level\":\"critical\",\n \"error_number_of_cycles\":\"10\",\n \"error_timeout\":\"40\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxsettings_GET/index.html"} {"id": "6185c5e77daa-0", "text": "/connector/twitter/:twitterId GET\nOverview\n Responds with twitter timeline if connector is set up in administration\nRequest Arguments\nName\nType\nDescription\nRequired\ncount\nInteger\nThe number of tweets to retrieve.\nFalse\nResponse Arguments\nName\nType\nDescription\n \n \n String\n \nResponse\n[\n {\n \"created_at\":\"Tue Jun 25 23:45:35 +0000 2013\",\n \"id\":349674766946414592,\n \"id_str\":\"349674766946414592\",\n \"text\":\"this tweet is awesome!\",\n \"source\":\"web\",\n \"truncated\":false,\n \"in_reply_to_status_id\":null,\n \"in_reply_to_status_id_str\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectortwittertwitterId_GET/index.html"} {"id": "6185c5e77daa-1", "text": "\"in_reply_to_status_id_str\":null,\n \"in_reply_to_user_id\":143456975,\n \"in_reply_to_user_id_str\":\"14934565\",\n \"in_reply_to_screen_name\":\"testdesk\",\n \"user\":{\n \"id\":2630841,\n \"id_str\":\"2630841\",\n \"name\":\"SugarCRM\",\n \"screen_name\":\"sugarcrm\",\n \"location\":\"Cupertino, CA\",\n \"description\":\"Everyone Sells. Everyone Supports. Everyone Connects.\",\n \"url\":\"http:\\/\\/t.co\\/s9ejrBSlki\",\n \"entities\":{\n \"url\":{\n \"urls\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectortwittertwitterId_GET/index.html"} {"id": "6185c5e77daa-2", "text": "\"url\":{\n \"urls\":[\n {\n \"url\":\"http:\\/\\/t.co\\/s9ejrBSlki\",\n \"expanded_url\":\"http:\\/\\/www.sugarcrm.com\",\n \"display_url\":\"sugarcrm.com\",\n \"indices\":[\n 0,\n 22\n ]\n }\n ]\n },\n \"description\":{\n \"urls\":[\n ]\n }\n },\n \"protected\":false,\n \"followers_count\":8761,\n \"friends_count\":6966,\n \"listed_count\":453,\n \"created_at\":\"Wed Mar 28 07:16:58 +0000 2007\",\n \"favourites_count\":27,\n \"utc_offset\":-28800,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectortwittertwitterId_GET/index.html"} {"id": "6185c5e77daa-3", "text": "\"utc_offset\":-28800,\n \"time_zone\":\"Pacific Time (US \\u0026 Canada)\",\n \"geo_enabled\":false,\n \"verified\":false,\n \"statuses_count\":7488,\n \"lang\":\"en\",\n \"contributors_enabled\":false,\n \"is_translator\":false,\n \"profile_background_color\":\"98C7EA\",\n \"profile_background_image_url\":\"http:\\/\\/a0.twimg.com\\/profile_background_images\\/551274192\\/sugar-twitter-background.png\",\n \"profile_background_image_url_https\":\"https:\\/\\/si0.twimg.com\\/profile_background_images\\/551274192\\/sugar-twitter-background.png\",\n \"profile_background_tile\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectortwittertwitterId_GET/index.html"} {"id": "6185c5e77daa-4", "text": "\"profile_background_tile\":false,\n \"profile_image_url\":\"http:\\/\\/a0.twimg.com\\/profile_images\\/2027721183\\/Sugar_cube_RGB_180x180_normal.png\",\n \"profile_image_url_https\":\"https:\\/\\/si0.twimg.com\\/profile_images\\/2027721183\\/Sugar_cube_RGB_180x180_normal.png\",\n \"profile_link_color\":\"0045AD\",\n \"profile_sidebar_border_color\":\"FFFFFF\",\n \"profile_sidebar_fill_color\":\"CCEAFF\",\n \"profile_text_color\":\"000000\",\n \"profile_use_background_image\":true,\n \"default_profile\":false,\n \"default_profile_image\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectortwittertwitterId_GET/index.html"} {"id": "6185c5e77daa-5", "text": "\"default_profile\":false,\n \"default_profile_image\":false,\n \"following\":null,\n \"follow_request_sent\":false,\n \"notifications\":null\n },\n \"geo\":null,\n \"coordinates\":null,\n \"place\":null,\n \"contributors\":null,\n \"retweet_count\":1,\n \"favorite_count\":0,\n \"entities\":{\n \"hashtags\":[\n ],\n \"symbols\":[\n ],\n \"urls\":[\n ],\n \"user_mentions\":[\n {\n \"screen_name\":\"testdesk\",\n \"name\":\"testdesk\",\n \"id\":143455,\n \"id_str\":\"ertrt75\",\n \"indices\":[\n 0,\n 8", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectortwittertwitterId_GET/index.html"} {"id": "6185c5e77daa-6", "text": "\"indices\":[\n 0,\n 8\n ]\n }\n ],\n \"media\":[\n ]\n },\n \"favorited\":false,\n \"retweeted\":false,\n \"possibly_sensitive\":false,\n \"lang\":\"en\"\n }\n]\nChange Log\nVersion\nChange\n v10\n \n Added /twitter/{twitterId} GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectortwittertwitterId_GET/index.html"} {"id": "ea8c23f041ef-0", "text": "/Opportunities/enum/:field GET\nOverview\n Retrieves the enum values for a specific field.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n Array\n \n Returns the enum values for a field.\n \nResponse\n{\n \"\":\"\",\n \"Analyst\":\"Analyst\",\n \"Competitor\":\"Competitor\",\n \"Customer\":\"Customer\",\n \"Integrator\":\"Integrator\",\n \"Investor\":\"Investor\",\n \"Partner\":\"Partner\",\n \"Press\":\"Press\",\n \"Prospect\":\"Prospect\",\n \"Reseller\":\"Reseller\",\n \"Other\":\"Other\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //enum/:field GET endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesenumfield_GET/index.html"} {"id": "ea8c23f041ef-1", "text": "Added //enum/:field GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesenumfield_GET/index.html"} {"id": "0798f143f5e3-0", "text": "/pmse_Project/CrmData/:record/:filter PUT\nOverview\n Updates information about Fields, Modules, Users, Roles, etc.\nSummary\n This endpoint will update various data related to the Process Definition\n with the data provided in the request payload.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe type of data to be updated\nTrue\nfilter\nString\nFiltering criteria to be applied to data updated\nFalse\nRequest\n/rest/v11/pmse_Project/CrmData/clearEventCriteria/383414365573cf64b8eaa65039872849\nRequest Payload\n{\n \"data\":null\n}\nResponse Arguments\nName\nType\nDescription\nsuccess\nBoolean\nThe status of the update operation\nResponse\n{\n \"success\":true\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectCrmDatarecordfilter_PUT/index.html"} {"id": "0798f143f5e3-1", "text": "The status of the update operation\nResponse\n{\n \"success\":true\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectCrmDatarecordfilter_PUT/index.html"} {"id": "a09db366a45d-0", "text": "/me/preference/:preference_name POST\nOverview\n Creates a preference for the current user.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \u00c2\u00a0\n \n \u00c2\u00a0\n \n \u00c2\u00a0\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me/preference/:preference_name POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mepreferencepreference_name_POST/index.html"} {"id": "957c36da3e7c-0", "text": "/ping GET\nOverview\n Responds with \"pong\" if the access_token is valid.\nRequest Arguments\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n String\n \n Returns pong is authenticated.\n \nResponse\npong\nChange Log\nVersion\nChange\n v10\n \n Added /ping GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ping_GET/index.html"} {"id": "ec4105c149e0-0", "text": "/search GET\nOverview\n List records in a module. Searching, filtering and ordering can be applied to only fetch the records you are interested in. Additionally the set of returned fields can be restricted to speed up processing and reduce download times.\nRequest Arguments\nName\nType\nDescription\nRequired\n q\n \n String\n \n The search text to match records on. This will search through any fields on the module that has unified_search set to true.\n \n False\n \n max_num\n \n Integer\n \n A maximum number of records to return.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/search_GET/index.html"} {"id": "ec4105c149e0-1", "text": "Example: name,account_type,description\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n favorites\n \n Boolean\n \n Only fetch the current users favorited records.\n \n False\n \n my_items\n \n Boolean\n \n Only fetch items assigned to the current user.\n \n False\n \nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more records.\n \n records", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/search_GET/index.html"} {"id": "ec4105c149e0-2", "text": "records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":2,\n \"records\":[\n {\n \"id\":\"ecbf2a6c-261e-5fca-fbb6-512d093554b8\",\n \"name\":\"Avery Software Co\",\n \"date_modified\":\"2013-02-26T19:12:56+00:00\",\n \"description\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\",\n \"_search\":{\n \"score\":1\n }\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/search_GET/index.html"} {"id": "ec4105c149e0-3", "text": "\"score\":1\n }\n },\n {\n \"id\":\"af5f8dae-7169-b497-1d77-512d0937ed81\",\n \"name\":\"Avery Software Co\",\n \"date_modified\":\"2013-02-26T19:12:56+00:00\",\n \"description\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"_module\":\"Accounts\",\n \"_search\":{\n \"score\":1\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added / GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/search_GET/index.html"} {"id": "5958072a68a3-0", "text": "/Administration/packages/installed GET\nOverview\n[ADMIN] PackageManager lists installed packages.\nSummary\nLists installed packages in the system.\nResponse\n{\n \"packages\": [\n {\n \"name\": \"project_P3\",\n \"version\": \"1580885734\",\n \"type\": \"module\",\n \"published_date\": \"2020-02-06 12:51:17\",\n \"description\": \"\",\n \"uninstallable\": true,\n \"file_install\": \"cd590eb069a73b2eeb6c107776fd60dc\",\n \"file\": \"cd590eb069a73b2eeb6c107776fd60dc\",\n \"enabled\": \"ENABLED\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackagesinstalled_GET/index.html"} {"id": "5958072a68a3-1", "text": "\"enabled\": \"ENABLED\",\n \"id\": \"66172e0e-48df-11ea-9f1f-acde48001122\"\n }\n ]\n}\nChange Log\nVersion\nChange\nv11.8\nAdded /Administration/packages/installed\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackagesinstalled_GET/index.html"} {"id": "86cb30aa9f14-0", "text": "/Emails/filter POST\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned.\n \n Example: name,account_type,description\n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-2", "text": "Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-3", "text": "False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example\n you would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-4", "text": "$equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-5", "text": "$is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-6", "text": "The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\nThere are two module expressions, they operate on modules instead of fields. The current module can be specified by\neither using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\nfilter the records in the current module to only your favorites. The only currently accepted module expressions are\n\"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-7", "text": "Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-8", "text": "\"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-9", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-10", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-11", "text": "\"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-12", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-13", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-14", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-15", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-16", "text": "\"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-17", "text": "\"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-18", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "86cb30aa9f14-19", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_POST/index.html"} {"id": "2093916dde23-0", "text": "/integrate//:sync_key_field_name/:sync_key_field_value DELETE\nOverview\nDeletes the record with the given sync_key_field_name.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nsync_key_field_name\nString\nThe name of the field that contains sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n/integrate//:sync_key_field_name/:sync_key_field_value\nResponse Arguments\nName\nType\nDescription\nrecord\nString\nThe ID of the record that was deleted.\nResponse\nStatus 200", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulesync_key_field_namesync_key_field_value_DELETE/index.html"} {"id": "2093916dde23-1", "text": "record\nString\nThe ID of the record that was deleted.\nResponse\nStatus 200\n{ \"id\": \"a0328573-a252-a27c-3530-4e4297d4c9e1\"} \nChange Log\nVersion\nChange\nv11_10\nAdded /integrate//:sync_key_field_name/:sync_key_field_value\u00c2\u00a0DELETE endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulesync_key_field_namesync_key_field_value_DELETE/index.html"} {"id": "d57f18bac809-0", "text": "/Accounts/:record/link/:link_name/filter GET\nOverview\n Lists related filtered records.\nSummary\n This endpoint will return a set of related records filtered by an expression. The filter can be applied to multiple\n fields and have multiple and/or conditions in it. Care will need to be taken to make sure this filter has\n appropriate indexes on the server side otherwise the runtime of the endpoint will be very long. Related fields can\n be searched by specifying the field name as: \"link_name.remote_field\", so if you wished to search the Accounts\n module by a related member account you would use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-1", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned. This argument\n can be combined with the view argument.\n \n Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-2", "text": "in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-3", "text": "would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-4", "text": "$contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-5", "text": "Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-6", "text": "}\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\n Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-7", "text": "Array\n \n An array of results containing matched records.\n \nRepsonse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-8", "text": "\"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-9", "text": "\"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-10", "text": "\"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-11", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-12", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-13", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-14", "text": "\"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-15", "text": "\"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-16", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-17", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-18", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "d57f18bac809-19", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Accountsrecordlinklink_namefilter_GET/index.html"} {"id": "7156406fa49d-0", "text": "//:record/unfavorite PUT\nOverview\n Removes a record of a specified type as a favorite for the current user.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the selected record.\n \nResponse\n{\n \"id\":\"bdd59d85-687b-1739-b00a-512d09f6db9e\",\n \"name\":\"Insight Marketing Inc\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordunfavorite_PUT/index.html"} {"id": "7156406fa49d-1", "text": "\"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-26T19:12:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordunfavorite_PUT/index.html"} {"id": "7156406fa49d-2", "text": "},\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Electronics\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"345 Sugar Blvd.\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"San Mateo\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"56019\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordunfavorite_PUT/index.html"} {"id": "7156406fa49d-3", "text": "\"billing_address_postalcode\":\"56019\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(927) 136-9572\",\n \"phone_alternate\":\"\",\n \"website\":\"www.sectionvegan.de\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"345 Sugar Blvd.\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"San Mateo\",\n \"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"56019\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordunfavorite_PUT/index.html"} {"id": "7156406fa49d-4", "text": "\"shipping_address_postalcode\":\"56019\",\n \"shipping_address_country\":\"USA\",\n \"email1\":\"kid.support.vegan@example.info\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":false,\n \"invalid_email\":false,\n \"email\":[\n {\n \"email_address\":\"kid.support.vegan@example.info\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"phone.kid@example.cn\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordunfavorite_PUT/index.html"} {"id": "7156406fa49d-5", "text": "\"primary_address\":\"0\"\n }\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/favorite DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordunfavorite_PUT/index.html"} {"id": "7205feb8d03e-0", "text": "//:record/parent GET\nOverview\n Retrieves parent node for selected record.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n :record\n \n String\n \n The ID of record\n \n True\n \nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\n{\n id: \"e1ae8646-ac90-104a-59d6-5412cf5009b2\"\n name: \"SugarCategoryExample\"\n date_entered: \"2014-09-12 10:47:46\"\n date_modified: \"2014-09-12 10:47:46\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordparent_GET/index.html"} {"id": "7205feb8d03e-1", "text": "date_modified: \"2014-09-12 10:47:46\"\n modified_user_id: \"9c9ad14e-1789-3340-f88d-5412cf551d3b\"\n created_by: \"9c9ad14e-1789-3340-f88d-5412cf551d3b\"\n description: null\n deleted: \"0\"\n source_id: null\n source_type: null\n source_meta: null\n root: \"e1ae8646-ac90-104a-59d6-5412cf5009b2\"\n lft: \"6\"\n rgt: \"11\"\n level: \"1\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/parent GET endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordparent_GET/index.html"} {"id": "7205feb8d03e-2", "text": "Added //:record/parent GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordparent_GET/index.html"} {"id": "52a5eaeb705b-0", "text": "/Administration/idm/users GET\nOverview\n Lists filtered user records.\nSummary\n This endpoint will return a set of user records with raw password hashes filtered by an expression. The filter\n can be applied to multiple fields and have multiple and/or conditions in it. Alternatively, you may use an existing\n filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-1", "text": "Request Arguments\nName\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-5", "text": "Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-6", "text": "Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-7", "text": "$gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-8", "text": "either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\n Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\": -1,\n \"records\": [\n {\n \"id\": \"1\",\n \"user_name\": \"admin\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-9", "text": "\"id\": \"1\",\n \"user_name\": \"admin\",\n \"user_hash\": \"$2y$10$PXY1UPZHjcm.t6ZArbia0uVzjCNEDm0XcGu/whGGk2xaPzAEKrKLa\",\n \"system_generated_password\": false,\n \"pwd_last_changed\": \"\",\n \"authenticate_id\": \"\",\n \"sugar_login\": true,\n \"picture\": \"7772d3b4-5779-11e8-835a-6a00025a7f70\",\n \"first_name\": \"\",\n \"last_name\": \"Administrator\",\n \"full_name\": \"Administrator\",\n \"name\": \"Administrator\",\n \"is_admin\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-10", "text": "\"name\": \"Administrator\",\n \"is_admin\": true,\n \"external_auth_only\": false,\n \"receive_notifications\": true,\n \"description\": \"\",\n \"date_entered\": \"2018-05-14T16:19:36+03:00\",\n \"date_modified\": \"2018-05-14T16:27:43+03:00\",\n \"last_login\": \"2018-05-16T12:12:43+03:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"\",\n \"created_by\": \"\",\n \"created_by_name\": \"\",\n \"created_by_link\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-11", "text": "\"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"title\": \"Administrator\",\n \"department\": \"\",\n \"phone_home\": \"\",\n \"phone_mobile\": \"\",\n \"phone_work\": \"\",\n \"phone_other\": \"\",\n \"phone_fax\": \"\",\n \"status\": \"Active\",\n \"address_street\": \"\",\n \"address_city\": \"\",\n \"address_state\": \"\",\n \"address_country\": \"\",\n \"address_postalcode\": \"\",\n \"UserType\": \"\",\n \"default_team\": \"1\",\n \"team_count\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-12", "text": "\"default_team\": \"1\",\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [\n {\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": false,\n \"selected\": false\n }\n ],\n \"deleted\": false,\n \"portal_only\": false,\n \"show_on_employees\": true,\n \"employee_status\": \"Active\",\n \"messenger_id\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-13", "text": "\"messenger_id\": \"\",\n \"messenger_type\": \"\",\n \"reports_to_id\": \"\",\n \"reports_to_name\": \"\",\n \"reports_to_link\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"email1\": \"\",\n \"email\": [\n {\n \"email_address\": \"admin@ex.com\",\n \"primary_address\": true,\n \"reply_to_address\": false,\n \"invalid_email\": false,\n \"opt_out\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-14", "text": "\"invalid_email\": false,\n \"opt_out\": false,\n \"email_address_id\": \"93634e90-577a-11e8-a2f0-6a00025a7f70\"\n }\n ],\n \"email_link_type\": \"\",\n \"is_group\": false,\n \"c_accept_status_fields\": \"\",\n \"calls\": {\n \"id\": \"\"\n },\n \"m_accept_status_fields\": \"\",\n \"meetings\": {\n \"id\": \"\"\n },\n \"accept_status_id\": \"\",\n \"accept_status_name\": \"\",\n \"accept_status_calls\": \"\",\n \"accept_status_meetings\": \"\",\n \"preferred_language\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "52a5eaeb705b-15", "text": "\"preferred_language\": \"\",\n \"acl_role_set_id\": \"\",\n \"my_favorite\": false,\n \"_acl\": {\n \"delete\": \"no\",\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n }\n },\n \"_module\": \"Users\"\n }\n ]\n}\nChange Log\nVersion\nChange\n v11_2\n \n Added /Administration/idm/users GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmusers_GET/index.html"} {"id": "5fd67322fb8b-0", "text": "/me/preferences GET\nOverview\n Returns all the current user's stored preferences.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \u00c2\u00a0\n \n \u00c2\u00a0\n \n \u00c2\u00a0\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me/preferences GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mepreferences_GET/index.html"} {"id": "23299f724ec6-0", "text": "//count GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "23299f724ec6-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecount_GET/index.html"} {"id": "d14bf2a8d486-0", "text": "//:record/movebefore/:target PUT\nOverview\n Move existing node before target node.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n target\n \n String\n \n The ID of record that will be used as target to move node before\n \n True\n \nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\nThis endpoint return a record GUID that was moved\n\"1b7b868d-7357-2e29-7513-54169bdc444d\"\nChange Log\nVersion\nChange\n v10\n \n Added //movebefore/:target PUT endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordmovebeforetarget_PUT/index.html"} {"id": "d14bf2a8d486-1", "text": "Added //movebefore/:target PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordmovebeforetarget_PUT/index.html"} {"id": "c802ad6202a6-0", "text": "/EmailAddresses/:record PUT\nOverview\n Update an existing email address.\nSummary\n The email_address parameter is not supported as email addresses are immutable.\nRequest Arguments\nName\nType\nDescription\nRequired\n invalid_email\n \n Boolean\n \ntrue if the email address is invalid.\n \n False\n \n opt_out\n \n Boolean\n \ntrue if the email address is opted out.\n \n False\n \nRequest\n{\n \"opt_out\": true\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the updated record.\n \nResponse\n{\n \"id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmailAddressesrecord_PUT/index.html"} {"id": "c802ad6202a6-1", "text": "\"date_created\": \"2016-02-25T11:53:07-08:00\",\n \"date_modified\": \"2016-02-25T11:53:07-08:00\",\n \"deleted\": false,\n \"email_address\": \"eharmon@example.com\",\n \"email_address_caps\": \"EHARMON@EXAMPLE.COM\",\n \"invalid_email\": false,\n \"opt_out\": true,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"EmailAddresses\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /EmailAddresses/:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmailAddressesrecord_PUT/index.html"} {"id": "e253ce25d765-0", "text": "/lang/labels/module PUT\nOverview\nUpdate display labels of fields for modules under different languages.\nSummary\nThis endpoint is used to update display labels of fields for modules under different languages.\nRequest Arguments\nName\nType\nDescription\nRequired\nname\nstring\nThe dropdown name.\nTrue\nlabels\narray\nThe new labels grouped by language keys.\nTrue\nRequest\n[\n {\n \"name\": \"Leads\",\n \"labels\": {\n \"en_us\": {\n \"ai_conv_score_classification_c\": \"Ai Conv Score Classification\"\n },\n \"de_DE\": {\n \"ai_conv_score_classification_c\": \"Ai Conv Score Klassifizierung\"\n },\n \"ja_JP\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsmodule_PUT/index.html"} {"id": "e253ce25d765-1", "text": "},\n \"ja_JP\": {\n \"ai_conv_score_classification_c\": \"AiConv\u00e3\u0082\u00b9\u00e3\u0082\u00b3\u00e3\u0082\u00a2\u00e5\u0088\u0086\u00e9\u00a1\u009e\"\n }\n }\n }\n]\n\u00c2\u00a0\nRequest example for multiple fields:\n[\n {\n \"name\": \"Leads\",\n \"labels\": {\n \"en_us\": {\n \"ai_score_c\": \"Ai Score\",\n \"ai_conv_score_classification_c\": \"Ai Conv Score Classification\",\n \"description\": \"New Description\"\n },\n \"de_DE\": {\n \"ai_score_c\": \"Ai Punktzahl\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsmodule_PUT/index.html"} {"id": "e253ce25d765-2", "text": "\"ai_score_c\": \"Ai Punktzahl\",\n \"ai_conv_score_classification_c\": \"Ai Conv Score Klassifizierung\",\n \"description\": \"New German Description\"\n },\n \"ja_JP\": {\n \"ai_score_c\": \"\u00e6\u0084\u009b\u00e3\u0082\u00b9\u00e3\u0082\u00b3\u00e3\u0082\u00a2\",\n \"ai_conv_score_classification_c\": \"AiConv\u00e3\u0082\u00b9\u00e3\u0082\u00b3\u00e3\u0082\u00a2\u00e5\u0088\u0086\u00e9\u00a1\u009e\",\n \"description\": \"New Japanese Description\"\n }\n }\n },\n {\n \"name\": \"Opportunities\",\n \"labels\": {\n \"de_DE\": {\n \"amount\": \"Menge\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsmodule_PUT/index.html"} {"id": "e253ce25d765-3", "text": "\"de_DE\": {\n \"amount\": \"Menge\",\n \"amount_usdollar\": \"Betrag US-Dollar\"\n },\n \"ja_JP\": {\n \"amount\": \"\u00e9\u0087\u008f\",\n \"amount_usdollar\": \"\u00e9\u0087\u0091\u00e9\u00a1\u008d\u00e7\u00b1\u00b3\u00e3\u0083\u0089\u00e3\u0083\u00ab\"\n }\n }\n }\n]\nResponse Example\n[\n {\n \"name\": \"Leads\",\n \"labels\": {\n \"en_us\": {\n \"LBL_AI_SCORE\": \"Ai Score\",\n \"LBL_AI_CONV_SCORE_CLASSIFICATION\": \"Ai Conv Score Classification\",\n \"LBL_DESCRIPTION\": \"New Description\"\n },\n \"de_DE\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsmodule_PUT/index.html"} {"id": "e253ce25d765-4", "text": "},\n \"de_DE\": {\n \"LBL_AI_SCORE\": \"Ai Punktzahl\",\n \"LBL_AI_CONV_SCORE_CLASSIFICATION\": \"Ai Conv Score Klassifizierung\",\n \"LBL_DESCRIPTION\": \"New German Description\"\n },\n \"ja_JP\": {\n \"LBL_AI_SCORE\": \"\u00e6\u0084\u009b\u00e3\u0082\u00b9\u00e3\u0082\u00b3\u00e3\u0082\u00a2\",\n \"LBL_AI_CONV_SCORE_CLASSIFICATION\": \"AiConv\u00e3\u0082\u00b9\u00e3\u0082\u00b3\u00e3\u0082\u00a2\u00e5\u0088\u0086\u00e9\u00a1\u009e\",\n \"LBL_DESCRIPTION\": \"New Japanese Description\"\n }\n }\n },\n {\n \"type\": \"field\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsmodule_PUT/index.html"} {"id": "e253ce25d765-5", "text": "}\n }\n },\n {\n \"type\": \"field\",\n \"module\": \"Opportunities\",\n \"labels\": {\n \"de_DE\": {\n \"LBL_LIKELY\": \"Menge\",\n \"LBL_AMOUNT_USDOLLAR\": \"Betrag US-Dollar\"\n },\n \"ja_JP\": {\n \"LBL_LIKELY\": \"\u00e9\u0087\u008f\",\n \"LBL_AMOUNT_USDOLLAR\": \"\u00e9\u0087\u0091\u00e9\u00a1\u008d\u00e7\u00b1\u00b3\u00e3\u0083\u0089\u00e3\u0083\u00ab\"\n }\n }\n }\n]\nChange Log\nVersion\nChange\nv11.13\nAdded\u00c2\u00a0/lang/labels/module/\u00c2\u00a0PUT endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsmodule_PUT/index.html"} {"id": "e253ce25d765-6", "text": "Added\u00c2\u00a0/lang/labels/module/\u00c2\u00a0PUT endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsmodule_PUT/index.html"} {"id": "f675d0785dc7-0", "text": "//:record/link/:link_name/:remote_id PUT\nOverview\n Updates relationship specific information on an existing relationship.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of relationship fields to populate. An example is the contact_role field on Opportunities and Contacts.\n \n True\n \nRequest\n{\n \"contact_role\":\"Primary Decision Maker\"\n}\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record linked to the related record.\n \n related_record\n \n Array\n \n The record that was associated.\n \nResponse\n{\n \"record\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-1", "text": "The record that was associated.\n \nResponse\n{\n \"record\":{\n \"id\":\"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\":\"Slender Broadband Inc - 1000 units\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-2", "text": "\"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"opportunity_type\":\"\",\n \"account_name\":\"Slender Broadband Inc\",\n \"account_id\":\"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"lead_source\":\"Campaign\",\n \"amount\":\"25000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-3", "text": "\"lead_source\":\"Campaign\",\n \"amount\":\"25000\",\n \"base_rate\":\"1\",\n \"amount_usdollar\":\"25000\",\n \"currency_id\":\"-99\",\n \"currency_name\":\"\",\n \"currency_symbol\":\"\",\n \"date_closed\":\"2013-02-27\",\n \"date_closed_timestamp\":\"1361992480\",\n \"next_step\":\"\",\n \"sales_stage\":\"Needs Analysis\",\n \"sales_status\":\"New\",\n \"probability\":\"90\",\n \"best_case\":\"25000\",\n \"worst_case\":\"25000\",\n \"commit_stage\":\"include\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n \"related_record\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-4", "text": "}\n }\n },\n \"related_record\":{\n \"id\":\"e1c495cb-af17-1b37-dd66-512f934fe155\",\n \"name\":\"Bill Edwards\",\n \"date_entered\":\"2013-02-28T17:25:00+00:00\",\n \"date_modified\":\"2013-02-28T17:25:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"\",\n \"assigned_user_name\":\"\",\n \"team_name\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-5", "text": "\"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Bill\",\n \"last_name\":\"Edwards\",\n \"full_name\":\"Bill Edwards\",\n \"title\":\"\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"\",\n \"email\":[\n ],\n \"phone_mobile\":\"\",\n \"phone_work\":\"\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"\",\n \"email2\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-6", "text": "\"email1\":\"\",\n \"email2\":\"\",\n \"invalid_email\":\"\",\n \"email_opt_out\":\"\",\n \"primary_address_street\":\"\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"\",\n \"primary_address_state\":\"\",\n \"primary_address_postalcode\":\"\",\n \"primary_address_country\":\"\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-7", "text": "\"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"\",\n \"account_id\":\"\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"Primary Decision Maker\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"\",\n \"portal_active\":false,\n \"portal_password\":\"\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "f675d0785dc7-8", "text": "\"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/:remote_id PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_PUT/index.html"} {"id": "d81be5d297e3-0", "text": "//:record/link POST\nOverview\n Creates relationships to a pre-existing record.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n Link between targeted and related records.\n \n True\n \n \n \n \n \n The name value list of related records. Each item of the list may be either string equal to related item ID,\n or map containing record ID (\"id\" key is required in this case)\n and addition relationship properties.\n \n True\n \nRequest\n{\n link_name: \"accounts\"\n ids: [\n \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-1", "text": "{\n \"id\": \"e689173e-c953-1e14-c215-512d0927e7a2\",\n \"role\": \"owner\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record linked to related records.\n \n related_records\n \n Array\n \n Records that were associated.\n \nResponse\n \"record\": {\n \"id\": \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\": \"Slender Broadband Inc - 1000 units\",\n \"date_entered\": \"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-2", "text": "\"date_modified\": \"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",\n \"last_activity_date\": \"2013-02-28T18:21:00+00:00\",\n \"deleted\": false,\n \"assigned_user_id\": \"seed_max_id\",\n \"assigned_user_name\": \"Max Jensen\",\n \"team_name\": [\n {\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-3", "text": "\"primary\": false\n },\n {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"opportunity_type\": \"\",\n \"account_name\": \"Slender Broadband Inc\",\n \"account_id\": \"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"lead_source\": \"Campaign\",\n \"amount\": \"25000\",\n \"base_rate\": \"1\",\n \"amount_usdollar\": \"25000\",\n \"currency_id\": \"-99\",\n \"currency_name\": \"\",\n \"currency_symbol\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-4", "text": "\"currency_name\": \"\",\n \"currency_symbol\": \"\",\n \"date_closed\": \"2013-02-27\",\n \"date_closed_timestamp\": \"1361992480\",\n \"next_step\": \"\",\n \"sales_stage\": \"Needs Analysis\",\n \"sales_status\": \"New\",\n \"probability\": \"90\",\n \"best_case\": \"25000\",\n \"worst_case\": \"25000\",\n \"commit_stage\": \"include\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n \"related_records\": [\n {\n \"id\": \"e689173e-c953-1e14-c215-512d0927e7a2\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-5", "text": "\"name\": \"Gus Dales\",\n \"date_entered\": \"2013-02-26T19:12:00+00:00\",\n \"date_modified\": \"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",\n \"deleted\": false,\n \"assigned_user_id\": \"seed_sally_id\",\n \"assigned_user_name\": \"Sally Bronsen\",\n \"team_name\": [\n {\n \"id\": \"West\",\n \"name\": \"West\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-6", "text": "{\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"salutation\": \"\",\n \"first_name\": \"Gus\",\n \"last_name\": \"Dales\",\n \"full_name\": \"Gus Dales\",\n \"title\": \"Director Operations\",\n \"linkedin\": \"\",\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"department\": \"\",\n \"do_not_call\": false,\n \"phone_home\": \"(661) 120-2292\",\n \"email\": [\n {\n \"email_address\": \"section.sugar.section@example.it\",\n \"opt_out\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-7", "text": "\"opt_out\": \"1\",\n \"invalid_email\": \"0\",\n \"primary_address\": \"0\"\n },\n {\n \"email_address\": \"support.qa.kid@example.co.uk\",\n \"opt_out\": \"0\",\n \"invalid_email\": \"0\",\n \"primary_address\": \"1\"\n }\n ],\n \"phone_mobile\": \"(294) 447-9707\",\n \"phone_work\": \"(036) 840-3216\",\n \"phone_other\": \"\",\n \"phone_fax\": \"\",\n \"email1\": \"support.qa.kid@example.co.uk\",\n \"email2\": \"section.sugar.section@example.it\",\n \"invalid_email\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-8", "text": "\"invalid_email\": false,\n \"email_opt_out\": false,\n \"primary_address_street\": \"48920 San Carlos Ave\",\n \"primary_address_street_2\": \"\",\n \"primary_address_street_3\": \"\",\n \"primary_address_city\": \"Persistance\",\n \"primary_address_state\": \"CA\",\n \"primary_address_postalcode\": \"54556\",\n \"primary_address_country\": \"USA\",\n \"alt_address_street\": \"\",\n \"alt_address_street_2\": \"\",\n \"alt_address_street_3\": \"\",\n \"alt_address_city\": \"\",\n \"alt_address_state\": \"\",\n \"alt_address_postalcode\": \"\",\n \"alt_address_country\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-9", "text": "\"alt_address_country\": \"\",\n \"assistant\": \"\",\n \"assistant_phone\": \"\",\n \"picture\": \"\",\n \"email_and_name1\": \"\",\n \"lead_source\": \"Support Portal User Registration\",\n \"account_name\": \"Arts & Crafts Inc\",\n \"account_id\": \"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"opportunity_role_fields\": \"\",\n \"opportunity_role_id\": \"\",\n \"opportunity_role\": \"Technical Advisor\",\n \"reports_to_id\": \"\",\n \"report_to_name\": \"\",\n \"portal_name\": \"GusDales145\",\n \"portal_active\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-10", "text": "\"portal_active\": true,\n \"portal_password\": \"$1$JxYr6tmM$b.O6.KF42jP46RadSwz0N0\",\n \"portal_password1\": \"\",\n \"portal_app\": \"\",\n \"preferred_language\": \"en_us\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"c_accept_status_fields\": \"\",\n \"m_accept_status_fields\": \"\",\n \"accept_status_id\": \"\",\n \"accept_status_name\": \"\",\n \"sync_contact\": \"\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-11", "text": "\"fields\": {\n }\n }\n },\n {\n \"id\": \"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\": \"Slender Broadband Inc - 1000 units\",\n \"date_entered\": \"2013-02-26T19:12:00+00:00\",\n \"date_modified\": \"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-12", "text": "\"description\": \"\",\n \"img\": \"\",\n \"last_activity_date\": \"2013-02-28T18:36:00+00:00\",\n \"deleted\": false,\n \"assigned_user_id\": \"seed_max_id\",\n \"assigned_user_name\": \"Max Jensen\",\n \"team_name\": [\n {\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": false\n },\n {\n \"id\": \"West\",\n \"name\": \"West\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"opportunity_type\": \"\",\n \"account_name\": \"Slender Broadband Inc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-13", "text": "\"account_name\": \"Slender Broadband Inc\",\n \"account_id\": \"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"lead_source\": \"Campaign\",\n \"amount\": \"25000\",\n \"base_rate\": \"1\",\n \"amount_usdollar\": \"25000\",\n \"currency_id\": \"-99\",\n \"currency_name\": \"\",\n \"currency_symbol\": \"\",\n \"date_closed\": \"2013-02-27\",\n \"date_closed_timestamp\": \"1361992480\",\n \"next_step\": \"\",\n \"sales_stage\": \"Needs Analysis\",\n \"sales_status\": \"New\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "d81be5d297e3-14", "text": "\"sales_status\": \"New\",\n \"probability\": \"90\",\n \"best_case\": \"25000\",\n \"worst_case\": \"25000\",\n \"commit_stage\": \"include\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10 (7.6.0)\n \n Added support for additional relationship values.\n \n v10 (7.1.5)\n \n Added //:record/link POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlink_POST/index.html"} {"id": "39bbd90646af-0", "text": "//sync_key/:sync_key_field_value GET\nOverview\nRetrieves the record with the given sync_key.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n//sync_key/:sync_key_field_value\nResponse Arguments\nBody: formatted JSON object.\nResponse\nSuccessful Response\nStatus 200\nFailed Response\nStatus 422\n{\n \"error\": \"invalid_parameter\",\n \"error_message\": \"Could not find record with :sync_key_field_value in module: \"\n}\nChange Log\nVersion\nChange\nv11_10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulesync_keysync_key_field_value_GET/index.html"} {"id": "39bbd90646af-1", "text": "}\nChange Log\nVersion\nChange\nv11_10\nAdded //sync_key/:sync_key_field_value\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulesync_keysync_key_field_value_GET/index.html"} {"id": "c347deff8b63-0", "text": "/KBContents/:record/useful PUT\nOverview\n Vote for Knowledge Base article.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the updated record.\n \nResponse\n{\n \"active_date\": \"2014-01-01\",\n \"active_rev\": 1,\n \"approved\": false,\n \"assigned_user_id\": \"seed_will_id\",\n \"assigned_user_link\": {\"full_name\": \"Will Westin\", \"id\": \"seed_will_id\"},\n \"assigned_user_name\": \"Will Westin\",\n \"attachment_list\": [],\n \"cases\": {\"name\": \"\", \"id\": \"\"},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsrecorduseful_PUT/index.html"} {"id": "c347deff8b63-1", "text": "\"cases\": {\"name\": \"\", \"id\": \"\"},\n \"category_id\": \"3e844f1c-5ce1-6d6d-496d-5714901e6666\",\n \"category_name\": \"Database\",\n \"created_by\": \"1\",\n \"created_by_link\": {\"full_name\": \"Administrator\", \"id\": \"1\"},\n \"created_by_name\": \"Administrator\",\n \"date_entered\": \"2016-04-18T07:43:43+00:00\",\n \"date_modified\": \"2016-04-18T07:43:43+00:00\",\n \"deleted\": false,\n \"description\": \"\",\n \"exp_date\": \"2014-12-31\",\n \"file_mime_type\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsrecorduseful_PUT/index.html"} {"id": "c347deff8b63-2", "text": "\"file_mime_type\": \"\",\n \"following\": false,\n \"id\": \"87758ab5-75eb-451f-2bd7-571490d29d7a\",\n \"is_external\": false,\n \"kbarticle_id\": \"8862943c-022e-0385-908e-5714908ac792\",\n \"kbarticle_name\": \"Resetting the device\",\n \"kbarticles_kbcontents\": {\"name\": \"Resetting the device\", \"id\": \"8862943c-022e-0385-908e-5714908ac792\"},\n \"kbdocument_body\": \"When things are not working as expected...\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsrecorduseful_PUT/index.html"} {"id": "c347deff8b63-3", "text": "\"kbdocument_body\": \"When things are not working as expected...\",\n \"kbdocument_id\": \"87a20b6b-3172-ad19-0ca5-571490bec118\",\n \"kbdocument_name\": \"Resetting the device\",\n \"kbdocuments_kbcontents\": {\"name\": \"Resetting the device\", \"id\": \"87a20b6b-3172-ad19-0ca5-571490bec118\"},\n \"kbsapprover_id\": \"\",\n \"kbsapprover_name\": \"\",\n \"kbsapprovers_kbcontents\": {\"full_name\": \"\", \"id\": \"\"},\n \"kbscase_id\": \"\",\n \"kbscase_name\": \"\",\n \"language\": \"en\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsrecorduseful_PUT/index.html"} {"id": "c347deff8b63-4", "text": "\"kbscase_name\": \"\",\n \"language\": \"en\",\n \"modified_by_name\": \"Administrator\",\n \"modified_user_id\": \"1\",\n \"modified_user_link\": {\"full_name\": \"Administrator\", \"id\": \"1\"},\n \"my_favorite\": false,\n \"name\": \"Resetting the device\",\n \"notuseful\": 1\n \"related_languages\": [\"en\"],\n \"revision\": 1\n \"status\": \"in-review\",\n \"tag\": [],\n \"team_count\": \"\",\n \"team_count_link\": {\"team_count\": \"\", \"id\": \"1\"},\n \"team_name\": [{\"id\": 1, \"name\": \"Global\", \"name_2\": \"\", \"primary\": true}],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsrecorduseful_PUT/index.html"} {"id": "c347deff8b63-5", "text": "\"useful\": 0,\n \"usefulness_user_vote\": \"-1\",\n \"viewcount\": 4\n}\nChange Log\nVersion\nChange\n v10\n \n Added /KBContents/:record/useful PUT endpoint.\n \n v10\n \n Added /KBContents/:record/notuseful PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsrecorduseful_PUT/index.html"} {"id": "b6208a5ac5ff-0", "text": "/Cases/clients/portal PUT\nOverview\n[ADMIN] Set a case as 'Requested For Close'\nSummary\nThis endpoint sets a case as 'Requested for Close' in the portal on a Sugar Serve instance.\nRequest Arguments\nThis endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n\n\nReturns the fields for the updated Cases record.\nResponse\n{\n \"id\":\"d6582610-d69b-11ea-afe4-acde48001122\",\n \"name\":\"Need to purchase additional licenses\",\n \"date_entered\":\"2020-08-04T21:44:16+00:00\",\n \"date_modified\":\"2020-08-04T21:56:03+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Casesclientsportal_PUT/index.html"} {"id": "b6208a5ac5ff-1", "text": "\"modified_user_id\":\"19dc0582-d69c-11ea-95e6-acde48001122\",\n \"modified_by_name\":\"Sugar Customer Support Portal \",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"deleted\":false,\n \"case_number\":150,\n \"type\":\"Product\",\n \"status\":\"Pending Input\",\n \"priority\":\"P2\",\n \"resolution\":\"\",\n \"work_log\":\"\",\n \"follow_up_datetime\":\"\",\n \"widget_follow_up_datetime\":\"\",\n \"resolved_datetime\":\"\",\n \"hours_to_resolution\":null,\n \"business_hours_to_resolution\":null,\n \"pending_processing\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Casesclientsportal_PUT/index.html"} {"id": "b6208a5ac5ff-2", "text": "\"pending_processing\":false,\n \"account_name\":\"Gifted Holdings AG\",\n \"business_center_id\":\"\",\n \"source\":\"\",\n \"request_close\":true,\n \"request_close_date\":\"2020-08-04T21:56:03+00:00\",\n \"portal_viewable\":true,\n \"widget_status\":\"\",\n \"primary_contact_name\":\"\",\n \"team_count\":\"\",\n \"team_name\":[{\"id\":\"West\",\"name\":\"West\",\"name_2\":\"\",\"primary\":true,\"selected\":false}],\n \"first_response_target_datetime\":\"\",\n \"first_response_actual_datetime\":\"\",\n \"hours_to_first_response\":null,\n \"business_hrs_to_first_response\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Casesclientsportal_PUT/index.html"} {"id": "b6208a5ac5ff-3", "text": "\"business_hrs_to_first_response\":null,\n \"first_response_var_from_target\":null,\n \"first_response_sla_met\":\"\",\n \"first_response_user_id\":\"\",\n \"first_response_user_name\":\"\",\n \"first_response_sent\":false,\n \"_acl\":{\"edit\":\"no\",\"create\":\"no\",\"fields\":{}},\"_module\":\"Cases\"\n}\nChange Log\nVersion\nChange\nv11_10\nAdded /Cases/clients/portal\u00c2\u00a0PUT endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Casesclientsportal_PUT/index.html"} {"id": "822855b7abb4-0", "text": "/Quotes/config GET\nOverview\n Quote Config GET Help\nSummary\n This endpoint returns dependent and related fields for all fields used in the Quoted Line Items\n area of the Quote record.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n The list of config fields will be returned.\n \nResponse\n{\n \"summary_columns\": [\n {\n \"name\": \"deal_tot\",\n \"label\": \"LBL_LIST_DEAL_TOT\",\n \"css_class\": \"quote-totals-row-item\",\n \"related_fields\": [\n \"deal_tot_discount_percentage\"\n ],\n \"type\": \"currency\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-1", "text": "],\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"new_sub\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"label\": \"LBL_NEW_SUB\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"tax\",\n \"label\": \"LBL_TAX_TOTAL\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"shipping\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-2", "text": "\"type\": \"currency\",\n \"label\": \"LBL_SHIPPING\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"total\",\n \"label\": \"LBL_LIST_GRAND_TOTAL\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n }\n ],\n \"worksheet_columns\": [\n {\n \"name\": \"line_num\",\n \"label\": null,\n \"widthClass\": \"cell-xsmall\",\n \"css_class\": \"line_num tcenter\",\n \"type\": \"line-num\",\n \"readonly\": true\n },\n {\n \"name\": \"quantity\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-3", "text": "},\n {\n \"name\": \"quantity\",\n \"label\": \"LBL_QUANTITY\",\n \"widthClass\": \"cell-small\",\n \"css_class\": \"quantity\",\n \"type\": \"float\",\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"product_template_name\",\n \"label\": \"LBL_ITEM_NAME\",\n \"widthClass\": \"cell-large\",\n \"type\": \"quote-data-relate\",\n \"required\": true,\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"mft_part_num\",\n \"label\": \"LBL_MFT_PART_NUM\",\n \"type\": \"base\",\n \"labelModule\": \"Products\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-4", "text": "\"labelModule\": \"Products\"\n },\n {\n \"name\": \"discount_price\",\n \"label\": \"LBL_DISCOUNT_PRICE\",\n \"type\": \"currency\",\n \"convertToBase\": true,\n \"showTransactionalAmount\": true,\n \"related_fields\": [\n \"discount_price\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"discount\",\n \"type\": \"fieldset\",\n \"css_class\": \"quote-discount-percent\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"fields\": [\n {\n \"name\": \"discount_amount\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-5", "text": "\"fields\": [\n {\n \"name\": \"discount_amount\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"type\": \"discount\",\n \"convertToBase\": true,\n \"showTransactionalAmount\": true\n },\n {\n \"type\": \"discount-select\",\n \"name\": \"discount_select\",\n \"no_default_action\": true,\n \"buttons\": [\n {\n \"type\": \"rowaction\",\n \"name\": \"select_discount_amount_button\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"event\": \"button:discount_select_change:click\"\n },\n {\n \"type\": \"rowaction\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-6", "text": "},\n {\n \"type\": \"rowaction\",\n \"name\": \"select_discount_percent_button\",\n \"label\": \"LBL_DISCOUNT_PERCENT\",\n \"event\": \"button:discount_select_change:click\"\n }\n ],\n \"label\": \"LBL_DISCOUNT_AS_PERCENT\"\n }\n ],\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"total_amount\",\n \"label\": \"LBL_LINE_ITEM_TOTAL\",\n \"type\": \"currency\",\n \"widthClass\": \"cell-medium\",\n \"showTransactionalAmount\": true,\n \"related_fields\": [\n \"total_amount\",\n \"currency_id\",\n \"base_rate\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-7", "text": "\"currency_id\",\n \"base_rate\"\n ],\n \"labelModule\": \"Quotes\"\n }\n ],\n \"footer_rows\": [\n {\n \"name\": \"new_sub\",\n \"type\": \"currency\"\n },\n {\n \"name\": \"tax\",\n \"type\": \"currency\"\n },\n {\n \"name\": \"shipping\",\n \"type\": \"quote-footer-currency\",\n \"css_class\": \"quote-footer-currency\",\n \"default\": \"0.00\"\n },\n {\n \"name\": \"total\",\n \"type\": \"currency\",\n \"css_class\": \"grand-total\"\n }\n ],\n \"summary_columns_related_fields\": [\n \"base_rate\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-8", "text": "\"summary_columns_related_fields\": [\n \"base_rate\",\n \"deal_tot\",\n \"deal_tot_usdollar\",\n \"shipping\",\n \"subtotal\",\n \"subtotal_usdollar\",\n \"tax\",\n \"taxable_subtotal\"\n ],\n \"worksheet_columns_related_fields\": [\n \"base_rate\",\n \"deal_calc\",\n \"discount_amount\",\n \"discount_price\",\n \"discount_select\",\n \"quantity\",\n \"subtotal\",\n \"tax_class\",\n \"total_amount\",\n \"description\",\n \"quote_id\",\n \"name\",\n \"product_template_id\",\n \"product_template_name\"\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-9", "text": "\"product_template_name\"\n ],\n \"footer_rows_related_fields\": [\n \"deal_tot\",\n \"deal_tot_usdollar\",\n \"shipping\",\n \"subtotal\",\n \"subtotal_usdollar\",\n \"tax\",\n \"taxable_subtotal\"\n ],\n \"dependentFields\": {\n \"Quotes\": {\n \"currency_id\": {\n \"related\": {\n \"subtotal\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"discount\": {\n \"module\": \"Quotes\",\n \"field\": \"discount\",\n \"reason\": \"related_fields\"\n },\n \"new_sub\": {\n \"module\": \"Quotes\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-10", "text": "},\n \"new_sub\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub\",\n \"reason\": \"related_fields\"\n },\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n },\n \"shipping\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping\",\n \"reason\": \"related_fields\"\n },\n \"subtotal_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"base_rate\": {\n \"related\": {\n \"subtotal\": {\n \"module\": \"Quotes\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-11", "text": "\"subtotal\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"discount\": {\n \"module\": \"Quotes\",\n \"field\": \"discount\",\n \"reason\": \"related_fields\"\n },\n \"new_sub\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub\",\n \"reason\": \"related_fields\"\n },\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n },\n \"shipping\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping\",\n \"reason\": \"related_fields\"\n },\n \"subtotal_usdollar\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-12", "text": "},\n \"subtotal_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"related_fields\"\n }\n },\n \"locked\": {\n \"subtotal_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"formula\"\n },\n \"deal_tot_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_usdollar\",\n \"reason\": \"formula\"\n }\n }\n },\n \"taxable_subtotal\": {\n \"locked\": {\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"formula\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-13", "text": "\"field\": \"tax\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"taxrate_value\": {\n \"locked\": {\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"subtotal_usdollar\": {\n \"locked\": {\n \"deal_tot_discount_percentage\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-14", "text": "\"deal_tot_discount_percentage\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_discount_percentage\",\n \"reason\": \"formula\"\n }\n }\n },\n \"subtotal\": {\n \"locked\": {\n \"subtotal_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"formula\"\n }\n }\n },\n \"deal_tot_usdollar\": {\n \"locked\": {\n \"deal_tot_discount_percentage\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_discount_percentage\",\n \"reason\": \"formula\"\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-15", "text": "\"reason\": \"formula\"\n }\n }\n },\n \"deal_tot\": {\n \"locked\": {\n \"deal_tot_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_usdollar\",\n \"reason\": \"formula\"\n }\n }\n },\n \"tax\": {\n \"locked\": {\n \"total\": {\n \"module\": \"Quotes\",\n \"field\": \"total\",\n \"reason\": \"formula\"\n }\n }\n },\n \"shipping\": {\n \"locked\": {\n \"total\": {\n \"module\": \"Quotes\",\n \"field\": \"total\",\n \"reason\": \"formula\"\n }\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-16", "text": "}\n }\n }\n },\n \"ProductBundles\": {\n \"subtotal\": {\n \"locked\": {\n \"new_sub\": {\n \"module\": \"ProductBundles\",\n \"field\": \"new_sub\",\n \"reason\": \"formula\"\n }\n }\n },\n \"currency_id\": {\n \"related\": {\n \"subtotal\": {\n \"module\": \"ProductBundles\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"deal_tot\": {\n \"module\": \"ProductBundles\",\n \"field\": \"deal_tot\",\n \"reason\": \"related_fields\"\n },\n \"new_sub\": {\n \"module\": \"ProductBundles\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-17", "text": "\"new_sub\": {\n \"module\": \"ProductBundles\",\n \"field\": \"new_sub\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"base_rate\": {\n \"related\": {\n \"subtotal\": {\n \"module\": \"ProductBundles\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"deal_tot\": {\n \"module\": \"ProductBundles\",\n \"field\": \"deal_tot\",\n \"reason\": \"related_fields\"\n },\n \"new_sub\": {\n \"module\": \"ProductBundles\",\n \"field\": \"new_sub\",\n \"reason\": \"related_fields\"\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-18", "text": "\"reason\": \"related_fields\"\n }\n }\n },\n \"new_sub\": {\n \"locked\": {\n \"new_sub\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub\",\n \"reason\": \"rollup\"\n },\n \"total\": {\n \"module\": \"Quotes\",\n \"field\": \"total\",\n \"reason\": \"rollup\"\n }\n }\n },\n \"deal_tot\": {\n \"locked\": {\n \"new_sub\": {\n \"module\": \"ProductBundles\",\n \"field\": \"new_sub\",\n \"reason\": \"formula\"\n }\n }\n },\n \"taxable_subtotal\": {\n \"locked\": {\n \"taxable_subtotal\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-19", "text": "\"locked\": {\n \"taxable_subtotal\": {\n \"module\": \"Quotes\",\n \"field\": \"taxable_subtotal\",\n \"reason\": \"rollup\"\n }\n }\n }\n },\n \"Products\": {\n \"subtotal\": {\n \"locked\": {\n \"subtotal\": {\n \"module\": \"ProductBundles\",\n \"field\": \"subtotal\",\n \"reason\": \"rollup\"\n }\n }\n },\n \"quantity\": {\n \"locked\": {\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"total_amount\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-20", "text": "\"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"discount_price\": {\n \"locked\": {\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"currency_id\": {\n \"related\": {\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"discount_price\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-21", "text": "\"module\": \"Products\",\n \"field\": \"discount_price\",\n \"reason\": \"related_fields\"\n },\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount\",\n \"reason\": \"related_fields\"\n },\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"base_rate\": {\n \"related\": {\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"discount_price\",\n \"reason\": \"related_fields\"\n },\n \"discount_amount\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-22", "text": "},\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount\",\n \"reason\": \"related_fields\"\n },\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"deal_calc\": {\n \"locked\": {\n \"deal_tot\": {\n \"module\": \"ProductBundles\",\n \"field\": \"deal_tot\",\n \"reason\": \"rollup\"\n }\n }\n },\n \"discount_select\": {\n \"related\": {\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-23", "text": "\"module\": \"Products\",\n \"field\": \"discount_amount\",\n \"reason\": \"related_fields\"\n },\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n }\n },\n \"locked\": {\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n }\n }\n },\n \"discount_amount\": {\n \"locked\": {\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"total_amount\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-24", "text": "}\n },\n \"related\": {\n \"total_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"total_amount\": {\n \"locked\": {\n \"taxable_subtotal\": {\n \"module\": \"ProductBundles\",\n \"field\": \"taxable_subtotal\",\n \"reason\": \"rollup\"\n }\n }\n },\n \"tax_class\": {\n \"locked\": {\n \"taxable_subtotal\": {\n \"module\": \"ProductBundles\",\n \"field\": \"taxable_subtotal\",\n \"reason\": \"rollup\"\n }\n }\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-25", "text": "}\n }\n }\n }\n },\n \"relatedFields\": {\n \"Products\": {\n \"name\": {\n \"locked\": {\n \"product_template_name\": {\n \"module\": \"Products\",\n \"field\": \"name\",\n \"reason\": \"formula\"\n }\n }\n },\n \"subtotal\": {\n \"locked\": {\n \"quantity\": {\n \"module\": \"Products\",\n \"field\": \"subtotal\",\n \"reason\": \"formula\"\n },\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"subtotal\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-26", "text": "\"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"quantity\": {\n \"module\": \"Products\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"total_amount\": {\n \"locked\": {\n \"quantity\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-27", "text": "\"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n },\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n },\n \"discount_select\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n },\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-28", "text": "\"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n },\n \"quantity\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n },\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n },\n \"discount_select\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n },\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"total_amount\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-29", "text": "\"module\": \"Products\",\n \"field\": \"total_amount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"manufacturer_name\": {\n \"related\": {\n \"manufacturer_id\": {\n \"module\": \"Products\",\n \"field\": \"manufacturer_name\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"cost_price\": {\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"cost_price\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"cost_price\",\n \"reason\": \"related_fields\"\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-30", "text": "\"reason\": \"related_fields\"\n }\n }\n },\n \"discount_price\": {\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"discount_price\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"discount_price\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"discount_amount\": {\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-31", "text": "},\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount\",\n \"reason\": \"related_fields\"\n },\n \"discount_select\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"discount_rate_percent\": {\n \"locked\": {\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"discount_rate_percent\",\n \"reason\": \"formula\"\n },\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"discount_rate_percent\",\n \"reason\": \"formula\"\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-32", "text": "\"reason\": \"formula\"\n }\n }\n },\n \"discount_amount_usdollar\": {\n \"locked\": {\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"discount_amount_usdollar\",\n \"reason\": \"formula\"\n }\n }\n },\n \"deal_calc\": {\n \"locked\": {\n \"discount_select\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"formula\"\n },\n \"discount_price\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-33", "text": "},\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"formula\"\n },\n \"quantity\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"formula\"\n },\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-34", "text": "\"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"related_fields\"\n },\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"related_fields\"\n },\n \"quantity\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"related_fields\"\n },\n \"discount_amount\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"deal_calc_usdollar\": {\n \"locked\": {\n \"deal_calc\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-35", "text": "\"deal_calc\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"deal_calc_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"list_price\": {\n \"related\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-36", "text": "}\n },\n \"list_price\": {\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"list_price\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"list_price\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"cost_usdollar\": {\n \"locked\": {\n \"cost_price\": {\n \"module\": \"Products\",\n \"field\": \"cost_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"cost_usdollar\",\n \"reason\": \"formula\"\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-37", "text": "\"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"cost_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"cost_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"discount_usdollar\": {\n \"locked\": {\n \"discount_price\": {\n \"module\": \"Products\",\n \"field\": \"discount_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"discount_usdollar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-38", "text": "\"module\": \"Products\",\n \"field\": \"discount_usdollar\",\n \"reason\": \"formula\"\n }\n }\n },\n \"list_usdollar\": {\n \"locked\": {\n \"list_price\": {\n \"module\": \"Products\",\n \"field\": \"list_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"list_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"list_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-39", "text": "},\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"list_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"book_value\": {\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"book_value\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"book_value\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"book_value_usdollar\": {\n \"locked\": {\n \"book_value\": {\n \"module\": \"Products\",\n \"field\": \"book_value_usdollar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-40", "text": "\"field\": \"book_value_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"book_value_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Products\",\n \"field\": \"book_value_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Products\",\n \"field\": \"book_value_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"date_closed_timestamp\": {\n \"locked\": {\n \"date_closed\": {\n \"module\": \"Products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-41", "text": "\"date_closed\": {\n \"module\": \"Products\",\n \"field\": \"date_closed_timestamp\",\n \"reason\": \"formula\"\n }\n }\n }\n },\n \"Quotes\": {\n \"subtotal\": {\n \"locked\": {\n \"product_bundles\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal\",\n \"reason\": \"related_fields\"\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-42", "text": "\"reason\": \"related_fields\"\n }\n }\n },\n \"subtotal_usdollar\": {\n \"locked\": {\n \"subtotal\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-43", "text": "\"module\": \"Quotes\",\n \"field\": \"subtotal_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"shipping\": {\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"shipping_usdollar\": {\n \"locked\": {\n \"shipping\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-44", "text": "\"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"shipping_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"discount\": {\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"discount\",\n \"reason\": \"related_fields\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-45", "text": "\"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"discount\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"deal_tot\": {\n \"locked\": {\n \"product_bundles\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot\",\n \"reason\": \"formula\"\n }\n }\n },\n \"deal_tot_discount_percentage\": {\n \"locked\": {\n \"subtotal_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_discount_percentage\",\n \"reason\": \"formula\"\n },\n \"deal_tot_usdollar\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-46", "text": "},\n \"deal_tot_usdollar\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_discount_percentage\",\n \"reason\": \"formula\"\n }\n }\n },\n \"deal_tot_usdollar\": {\n \"locked\": {\n \"deal_tot\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"deal_tot_usdollar\",\n \"reason\": \"formula\"\n }\n }\n },\n \"new_sub\": {\n \"locked\": {\n \"product_bundles\": {\n \"module\": \"Quotes\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-47", "text": "\"product_bundles\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"new_sub_usdollar\": {\n \"locked\": {\n \"new_sub\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-48", "text": "\"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"new_sub_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"taxable_subtotal\": {\n \"locked\": {\n \"product_bundles\": {\n \"module\": \"Quotes\",\n \"field\": \"taxable_subtotal\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-49", "text": "\"module\": \"Quotes\",\n \"field\": \"taxable_subtotal\",\n \"reason\": \"formula\"\n }\n }\n },\n \"tax\": {\n \"locked\": {\n \"taxable_subtotal\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"formula\"\n },\n \"taxrate_value\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-50", "text": "\"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n },\n \"taxrate_value\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n },\n \"taxable_subtotal\": {\n \"module\": \"Quotes\",\n \"field\": \"tax\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"tax_usdollar\": {\n \"locked\": {\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"tax_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"tax_usdollar\",\n \"reason\": \"formula\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-51", "text": "\"field\": \"tax_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"tax_usdollar\",\n \"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"tax_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n },\n \"total\": {\n \"locked\": {\n \"product_bundles\": {\n \"module\": \"Quotes\",\n \"field\": \"total\",\n \"reason\": \"formula\"\n },\n \"tax\": {\n \"module\": \"Quotes\",\n \"field\": \"total\",\n \"reason\": \"formula\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-52", "text": "\"field\": \"total\",\n \"reason\": \"formula\"\n },\n \"shipping\": {\n \"module\": \"Quotes\",\n \"field\": \"total\",\n \"reason\": \"formula\"\n }\n }\n },\n \"total_usdollar\": {\n \"locked\": {\n \"total\": {\n \"module\": \"Quotes\",\n \"field\": \"total_usdollar\",\n \"reason\": \"formula\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"total_usdollar\",\n \"reason\": \"formula\"\n }\n },\n \"related\": {\n \"currency_id\": {\n \"module\": \"Quotes\",\n \"field\": \"total_usdollar\",\n \"reason\": \"related_fields\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-53", "text": "\"reason\": \"related_fields\"\n },\n \"base_rate\": {\n \"module\": \"Quotes\",\n \"field\": \"total_usdollar\",\n \"reason\": \"related_fields\"\n }\n }\n }\n }\n },\n \"productsFields\": {\n \"date_entered\": {\n \"type\": \"datetime\",\n \"studio\": {\n \"portaleditview\": false\n },\n \"readonly\": true,\n \"label\": \"LBL_DATE_ENTERED\"\n },\n \"date_modified\": {\n \"type\": \"datetime\",\n \"studio\": {\n \"portaleditview\": false\n },\n \"readonly\": true,\n \"label\": \"LBL_DATE_MODIFIED\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-54", "text": "\"label\": \"LBL_DATE_MODIFIED\"\n },\n \"modified_by_name\": {\n \"type\": \"relate\",\n \"link\": \"modified_user_link\",\n \"readonly\": true,\n \"label\": \"LBL_MODIFIED\"\n },\n \"created_by_name\": {\n \"type\": \"relate\",\n \"link\": \"created_by_link\",\n \"readonly\": true,\n \"label\": \"LBL_CREATED\"\n },\n \"description\": {\n \"type\": \"text\",\n \"label\": \"LBL_DESCRIPTION\"\n },\n \"revenuelineitem_name\": {\n \"type\": \"relate\",\n \"link\": \"revenuelineitems\",\n \"studio\": \"visible\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-55", "text": "\"studio\": \"visible\",\n \"label\": \"LBL_REVENUELINEITEM_NAME\"\n },\n \"product_template_name\": {\n \"type\": \"relate\",\n \"link\": \"product_templates_link\",\n \"studio\": {\n \"editview\": false,\n \"detailview\": false,\n \"quickcreate\": false\n },\n \"label\": \"LBL_PRODUCT_TEMPLATE\"\n },\n \"subtotal\": {\n \"type\": \"currency\",\n \"default\": \"0\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\",\n \"discount_price\",\n \"quantity\"\n ],\n \"label\": \"LBL_SUBTOTAL\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-56", "text": "],\n \"label\": \"LBL_SUBTOTAL\"\n },\n \"total_amount\": {\n \"default\": \"0.00\",\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\",\n \"quantity\",\n \"discount_price\",\n \"discount_select\",\n \"discount_amount\"\n ],\n \"label\": \"LBL_CALCULATED_LINE_ITEM_AMOUNT\"\n },\n \"contact_name\": {\n \"type\": \"relate\",\n \"link\": \"contact_link\",\n \"label\": \"LBL_CONTACT_NAME\"\n },\n \"manufacturer_name\": {\n \"type\": \"relate\",\n \"link\": \"manufacturers\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-57", "text": "\"type\": \"relate\",\n \"link\": \"manufacturers\",\n \"related_fields\": [\n \"manufacturer_id\"\n ],\n \"label\": \"LBL_MANUFACTURER_NAME\"\n },\n \"category_name\": {\n \"type\": \"relate\",\n \"link\": \"product_categories_link\",\n \"studio\": {\n \"editview\": false,\n \"detailview\": false,\n \"quickcreate\": false\n },\n \"label\": \"LBL_CATEGORY_NAME\"\n },\n \"mft_part_num\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_MFT_PART_NUM\"\n },\n \"vendor_part_num\": {\n \"type\": \"varchar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-58", "text": "\"type\": \"varchar\",\n \"label\": \"LBL_VENDOR_PART_NUM\"\n },\n \"date_purchased\": {\n \"type\": \"date\",\n \"label\": \"LBL_DATE_PURCHASED\"\n },\n \"discount_rate_percent\": {\n \"type\": \"decimal\",\n \"label\": \"LBL_DISCOUNT_RATE\"\n },\n \"discount_amount_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"editview\": false,\n \"mobile\": false\n },\n \"label\": \"LBL_DISCOUNT_RATE_USDOLLAR\"\n },\n \"discount_select\": {\n \"type\": \"bool\",\n \"default\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-59", "text": "\"type\": \"bool\",\n \"default\": true,\n \"label\": \"LBL_DISCOUNT_AS_PERCENT\"\n },\n \"deal_calc\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\",\n \"discount_price\",\n \"quantity\",\n \"discount_amount\"\n ],\n \"label\": \"LBL_DISCOUNT_TOTAL\"\n },\n \"deal_calc_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"editview\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-60", "text": "\"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_DISCOUNT_TOTAL_USDOLLAR\"\n },\n \"list_price\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_LIST_PRICE\"\n },\n \"cost_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"editview\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_COST_USDOLLAR\"\n },\n \"discount_usdollar\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-61", "text": "},\n \"discount_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"editview\": false,\n \"mobile\": false\n },\n \"label\": \"LBL_DISCOUNT_USDOLLAR\"\n },\n \"list_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"editview\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_LIST_USDOLLAR\"\n },\n \"tax_class\": {\n \"type\": \"enum\",\n \"default\": \"Taxable\",\n \"label\": \"LBL_TAX_CLASS\"\n },\n \"website\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-62", "text": "},\n \"website\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_URL\"\n },\n \"weight\": {\n \"type\": \"decimal\",\n \"label\": \"LBL_WEIGHT\"\n },\n \"quantity\": {\n \"type\": \"decimal\",\n \"default\": true,\n \"label\": \"LBL_QUANTITY\"\n },\n \"support_name\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SUPPORT_NAME\"\n },\n \"support_description\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SUPPORT_DESCRIPTION\"\n },\n \"support_contact\": {\n \"type\": \"varchar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-63", "text": "\"support_contact\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SUPPORT_CONTACT\"\n },\n \"support_term\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SUPPORT_TERM\"\n },\n \"date_support_expires\": {\n \"type\": \"date\",\n \"label\": \"LBL_DATE_SUPPORT_EXPIRES\"\n },\n \"date_support_starts\": {\n \"type\": \"date\",\n \"label\": \"LBL_DATE_SUPPORT_STARTS\"\n },\n \"pricing_formula\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_PRICING_FORMULA\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-64", "text": "\"label\": \"LBL_PRICING_FORMULA\"\n },\n \"pricing_factor\": {\n \"type\": \"int\",\n \"label\": \"LBL_PRICING_FACTOR\"\n },\n \"serial_number\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SERIAL_NUMBER\"\n },\n \"asset_number\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_ASSET_NUMBER\"\n },\n \"book_value\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_BOOK_VALUE\"\n },\n \"book_value_usdollar\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-65", "text": "},\n \"book_value_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"editview\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_BOOK_VALUE_USDOLLAR\"\n },\n \"book_value_date\": {\n \"type\": \"date\",\n \"label\": \"LBL_BOOK_VALUE_DATE\"\n },\n \"date_closed\": {\n \"type\": \"date\",\n \"label\": \"LBL_DATE_CLOSED\"\n },\n \"next_step\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_NEXT_STEP\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-66", "text": "\"label\": \"LBL_NEXT_STEP\"\n },\n \"campaign_name\": {\n \"type\": \"relate\",\n \"link\": \"campaign_products\",\n \"label\": \"LBL_CAMPAIGN\"\n },\n \"opportunity_name\": {\n \"type\": \"relate\",\n \"link\": \"opportunities\",\n \"label\": \"LBL_OPPORTUNITY_NAME\"\n },\n \"type_name\": {\n \"type\": \"relate\",\n \"link\": \"product_types_link\",\n \"label\": \"LBL_TYPE\"\n },\n \"tag\": {\n \"type\": \"tag\",\n \"link\": \"tag_link\",\n \"studio\": {\n \"portal\": false,\n \"base\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-67", "text": "\"portal\": false,\n \"base\": {\n \"popuplist\": false\n },\n \"mobile\": {\n \"wirelesseditview\": true,\n \"wirelessdetailview\": true\n }\n },\n \"sortable\": false,\n \"label\": \"LBL_TAGS\"\n },\n \"team_name\": {\n \"type\": \"relate\",\n \"link\": \"team_link\",\n \"studio\": {\n \"portallistview\": false,\n \"portalrecordview\": false\n },\n \"label\": \"LBL_TEAMS\"\n },\n \"base_rate\": {\n \"type\": \"text\",\n \"label\": \"LBL_CURRENCY_RATE\"\n },\n \"name\": {\n \"type\": \"name\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-68", "text": "},\n \"name\": {\n \"type\": \"name\",\n \"link\": true,\n \"label\": \"LBL_NAME\",\n \"default\": true\n },\n \"account_name\": {\n \"type\": \"relate\",\n \"link\": \"account_link\",\n \"label\": \"LBL_ACCOUNT_NAME\",\n \"related_fields\": [\n \"account_id\"\n ]\n },\n \"status\": {\n \"type\": \"enum\",\n \"default\": \"\",\n \"label\": \"LBL_STATUS\"\n },\n \"quote_name\": {\n \"type\": \"relate\",\n \"link\": true,\n \"label\": \"LBL_ASSOCIATED_QUOTE\",\n \"related_fields\": [\n \"quote_id\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-69", "text": "\"related_fields\": [\n \"quote_id\"\n ],\n \"default\": true\n },\n \"discount_price\": {\n \"type\": \"currency\",\n \"default\": \"0\",\n \"related_fields\": [\n \"discount_price\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_DISCOUNT_PRICE\"\n },\n \"cost_price\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"cost_price\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_COST_PRICE\"\n },\n \"discount_amount\": {\n \"type\": \"discount\",\n \"default\": \"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-70", "text": "\"type\": \"discount\",\n \"default\": \"0\",\n \"related_fields\": [\n \"discount_select\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_DISCOUNT_AMOUNT\"\n },\n \"assigned_user_name\": {\n \"link\": \"assigned_user_link\",\n \"type\": \"relate\",\n \"label\": \"LBL_ASSIGNED_TO\"\n }\n },\n \"quotesFields\": {\n \"modified_by_name\": {\n \"type\": \"relate\",\n \"link\": \"modified_user_link\",\n \"readonly\": true,\n \"label\": \"LBL_MODIFIED\"\n },\n \"created_by_name\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-71", "text": "},\n \"created_by_name\": {\n \"type\": \"relate\",\n \"link\": \"created_by_link\",\n \"readonly\": true,\n \"label\": \"LBL_CREATED\"\n },\n \"description\": {\n \"type\": \"text\",\n \"label\": \"LBL_DESCRIPTION\"\n },\n \"shipper_name\": {\n \"type\": \"relate\",\n \"link\": \"shippers\",\n \"label\": \"LBL_SHIPPING_PROVIDER\"\n },\n \"taxrate_name\": {\n \"type\": \"relate\",\n \"link\": \"taxrates\",\n \"label\": \"LBL_TAXRATE\"\n },\n \"show_line_nums\": {\n \"type\": \"bool\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-72", "text": "\"show_line_nums\": {\n \"type\": \"bool\",\n \"default\": 1,\n \"label\": \"LBL_SHOW_LINE_NUMS\"\n },\n \"quote_type\": {\n \"type\": \"enum\",\n \"label\": \"LBL_QUOTE_TYPE\"\n },\n \"original_po_date\": {\n \"type\": \"date\",\n \"label\": \"LBL_ORIGINAL_PO_DATE\"\n },\n \"payment_terms\": {\n \"type\": \"enum\",\n \"label\": \"LBL_PAYMENT_TERMS\"\n },\n \"date_quote_closed\": {\n \"type\": \"date\",\n \"label\": \"LBL_DATE_QUOTE_CLOSED\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-73", "text": "},\n \"date_order_shipped\": {\n \"type\": \"date\",\n \"label\": \"LBL_LIST_DATE_QUOTE_CLOSED\"\n },\n \"order_stage\": {\n \"type\": \"enum\",\n \"label\": \"LBL_ORDER_STAGE\"\n },\n \"purchase_order_num\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_PURCHASE_ORDER_NUM\"\n },\n \"subtotal\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_SUBTOTAL\"\n },\n \"subtotal_usdollar\": {\n \"type\": \"currency\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-74", "text": "\"subtotal_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"wirelesseditview\": false,\n \"wirelessdetailview\": false,\n \"wirelesslistview\": false,\n \"wireless_basic_search\": false,\n \"wireless_advanced_search\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_SUBTOTAL_USDOLLAR\"\n },\n \"shipping\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"default\": \"0\",\n \"label\": \"LBL_SHIPPING\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-75", "text": "\"label\": \"LBL_SHIPPING\"\n },\n \"shipping_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"wirelesseditview\": false,\n \"wirelessdetailview\": false,\n \"wirelesslistview\": false,\n \"wireless_basic_search\": false,\n \"wireless_advanced_search\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_SHIPPING_USDOLLAR\"\n },\n \"discount\": {\n \"type\": \"currency\",\n \"default\": \"0\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-76", "text": "\"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_DISCOUNT_TOTAL\"\n },\n \"deal_tot\": {\n \"type\": \"currency\",\n \"label\": \"LBL_DEAL_TOT\"\n },\n \"deal_tot_discount_percentage\": {\n \"type\": \"float\",\n \"default\": \"0\",\n \"label\": \"LBL_DEAL_TOT_PERCENTAGE\"\n },\n \"deal_tot_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"wirelesseditview\": false,\n \"wirelessdetailview\": false,\n \"wirelesslistview\": false,\n \"wireless_basic_search\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-77", "text": "\"wireless_basic_search\": false,\n \"wireless_advanced_search\": false,\n \"mobile\": false\n },\n \"label\": \"LBL_DEAL_TOT_USDOLLAR\"\n },\n \"new_sub\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_NEW_SUB\"\n },\n \"new_sub_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"wirelesseditview\": false,\n \"wirelessdetailview\": false,\n \"wirelesslistview\": false,\n \"wireless_basic_search\": false,\n \"wireless_advanced_search\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-78", "text": "\"wireless_advanced_search\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_NEW_SUB_USDOLLAR\"\n },\n \"taxable_subtotal\": {\n \"type\": \"currency\",\n \"label\": \"LBL_TAXABLE_SUBTOTAL\"\n },\n \"tax\": {\n \"type\": \"currency\",\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\",\n \"taxrate_value\",\n \"taxable_subtotal\"\n ],\n \"default\": \"0\",\n \"label\": \"LBL_TAX\"\n },\n \"tax_usdollar\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-79", "text": "},\n \"tax_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {\n \"wirelesseditview\": false,\n \"wirelessdetailview\": false,\n \"wirelesslistview\": false,\n \"wireless_basic_search\": false,\n \"wireless_advanced_search\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_TAX_USDOLLAR\"\n },\n \"billing_address_street\": {\n \"type\": \"text\",\n \"label\": \"LBL_BILLING_ADDRESS_STREET\"\n },\n \"billing_address_city\": {\n \"type\": \"varchar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-80", "text": "\"type\": \"varchar\",\n \"label\": \"LBL_BILLING_ADDRESS_CITY\"\n },\n \"billing_address_state\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_BILLING_ADDRESS_STATE\"\n },\n \"billing_address_postalcode\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_BILLING_ADDRESS_POSTAL_CODE\"\n },\n \"billing_address_country\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_BILLING_ADDRESS_COUNTRY\"\n },\n \"shipping_address_street\": {\n \"type\": \"text\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-81", "text": "\"shipping_address_street\": {\n \"type\": \"text\",\n \"label\": \"LBL_SHIPPING_ADDRESS_STREET\"\n },\n \"shipping_address_city\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SHIPPING_ADDRESS_CITY\"\n },\n \"shipping_address_state\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SHIPPING_ADDRESS_STATE\"\n },\n \"shipping_address_postalcode\": {\n \"type\": \"varchar\",\n \"label\": \"LBL_SHIPPING_ADDRESS_POSTAL_CODE\"\n },\n \"shipping_address_country\": {\n \"type\": \"varchar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-82", "text": "\"type\": \"varchar\",\n \"label\": \"LBL_SHIPPING_ADDRESS_COUNTRY\"\n },\n \"shipping_account_name\": {\n \"type\": \"relate\",\n \"link\": \"shipping_accounts\",\n \"label\": \"LBL_SHIPPING_ACCOUNT_NAME\"\n },\n \"shipping_contact_name\": {\n \"type\": \"relate\",\n \"link\": \"shipping_contacts\",\n \"label\": \"LBL_SHIPPING_CONTACT_NAME\"\n },\n \"shipping_contact_id\": {\n \"type\": \"relate\",\n \"link\": \"shipping_contacts\",\n \"label\": \"LBL_SHIPPING_CONTACT_ID\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-83", "text": "},\n \"billing_contact_name\": {\n \"type\": \"relate\",\n \"link\": \"billing_contacts\",\n \"label\": \"LBL_BILLING_CONTACT_NAME\"\n },\n \"billing_contact_id\": {\n \"type\": \"relate\",\n \"link\": \"billing_contacts\",\n \"label\": \"LBL_BILLING_CONTACT_ID\"\n },\n \"bundles\": {\n \"type\": \"collection\",\n \"label\": \"LBL_PRODUCT_BUNDLES\"\n },\n \"opportunity_name\": {\n \"type\": \"relate\",\n \"link\": \"opportunities\",\n \"label\": \"LBL_OPPORTUNITY_NAME\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-84", "text": "\"label\": \"LBL_OPPORTUNITY_NAME\"\n },\n \"opportunity_id\": {\n \"type\": \"relate\",\n \"link\": \"opportunities\",\n \"label\": \"LBL_OPPORTUNITY_ID\"\n },\n \"tag\": {\n \"type\": \"tag\",\n \"link\": \"tag_link\",\n \"studio\": {\n \"portal\": false,\n \"base\": {\n \"popuplist\": false\n },\n \"mobile\": {\n \"wirelesseditview\": true,\n \"wirelessdetailview\": true\n }\n },\n \"sortable\": false,\n \"label\": \"LBL_TAGS\"\n },\n \"team_name\": {\n \"type\": \"relate\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-85", "text": "},\n \"team_name\": {\n \"type\": \"relate\",\n \"link\": \"team_link\",\n \"studio\": {\n \"portallistview\": false,\n \"portalrecordview\": false\n },\n \"label\": \"LBL_TEAMS\"\n },\n \"base_rate\": {\n \"type\": \"text\",\n \"label\": \"LBL_CURRENCY_RATE\"\n },\n \"quote_num\": {\n \"type\": \"int\",\n \"readonly\": true,\n \"label\": \"LBL_LIST_QUOTE_NUM\",\n \"default\": true\n },\n \"name\": {\n \"type\": \"name\",\n \"label\": \"LBL_LIST_QUOTE_NAME\",\n \"default\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-86", "text": "\"default\": true,\n \"link\": true\n },\n \"billing_account_name\": {\n \"type\": \"relate\",\n \"link\": \"billing_accounts\",\n \"label\": \"LBL_LIST_ACCOUNT_NAME\",\n \"default\": true,\n \"sortable\": false\n },\n \"quote_stage\": {\n \"type\": \"enum\",\n \"label\": \"LBL_QUOTE_STAGE\",\n \"default\": true\n },\n \"total\": {\n \"type\": \"currency\",\n \"label\": \"LBL_TOTAL\",\n \"default\": true,\n \"related_fields\": [\n \"currency_id\"\n ]\n },\n \"total_usdollar\": {\n \"type\": \"currency\",\n \"studio\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-87", "text": "\"type\": \"currency\",\n \"studio\": {\n \"wirelesseditview\": false,\n \"wirelessdetailview\": false,\n \"wirelesslistview\": false,\n \"wireless_basic_search\": false,\n \"wireless_advanced_search\": false,\n \"mobile\": false\n },\n \"related_fields\": [\n \"currency_id\",\n \"base_rate\"\n ],\n \"label\": \"LBL_LIST_AMOUNT_USDOLLAR\",\n \"default\": true\n },\n \"date_quote_expected_closed\": {\n \"type\": \"date\",\n \"label\": \"LBL_LIST_DATE_QUOTE_EXPECTED_CLOSED\",\n \"default\": true\n },\n \"assigned_user_name\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-88", "text": "\"default\": true\n },\n \"assigned_user_name\": {\n \"link\": \"assigned_user_link\",\n \"type\": \"relate\",\n \"label\": \"LBL_LIST_ASSIGNED_TO_NAME\",\n \"default\": true,\n \"sortable\": false\n },\n \"date_modified\": {\n \"type\": \"datetime\",\n \"studio\": {\n \"portaleditview\": false\n },\n \"readonly\": true,\n \"default\": true,\n \"label\": \"LBL_DATE_MODIFIED\"\n },\n \"date_entered\": {\n \"type\": \"datetime\",\n \"studio\": {\n \"portaleditview\": false\n },\n \"readonly\": true,\n \"default\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "822855b7abb4-89", "text": "},\n \"readonly\": true,\n \"default\": true,\n \"label\": \"LBL_DATE_ENTERED\"\n }\n }\n}\nChange Log\nVersion\nChange\n v11.3\n \n Added /Quotes/config GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_GET/index.html"} {"id": "5d01164baed3-0", "text": "//:record/link/:link_name/:remote_id POST\nOverview\n Creates a relationship to a pre-existing record.\nQuery String Parameters\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record linked to the related record.\n \n related_record\n \n Array\n \n The record that was associated.\n \nResponse\n{\n \"record\":{\n \"id\":\"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\":\"Slender Broadband Inc - 1000 units\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-1", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-28T18:21:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-2", "text": "},\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"opportunity_type\":\"\",\n \"account_name\":\"Slender Broadband Inc\",\n \"account_id\":\"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"lead_source\":\"Campaign\",\n \"amount\":\"25000\",\n \"base_rate\":\"1\",\n \"amount_usdollar\":\"25000\",\n \"currency_id\":\"-99\",\n \"currency_name\":\"\",\n \"currency_symbol\":\"\",\n \"date_closed\":\"2013-02-27\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-3", "text": "\"date_closed\":\"2013-02-27\",\n \"date_closed_timestamp\":\"1361992480\",\n \"next_step\":\"\",\n \"sales_stage\":\"Needs Analysis\",\n \"sales_status\":\"New\",\n \"probability\":\"90\",\n \"best_case\":\"25000\",\n \"worst_case\":\"25000\",\n \"commit_stage\":\"include\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n \"related_record\":{\n \"id\":\"e689173e-c953-1e14-c215-512d0927e7a2\",\n \"name\":\"Gus Dales\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-4", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Gus\",\n \"last_name\":\"Dales\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-5", "text": "\"first_name\":\"Gus\",\n \"last_name\":\"Dales\",\n \"full_name\":\"Gus Dales\",\n \"title\":\"Director Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(661) 120-2292\",\n \"email\":[\n {\n \"email_address\":\"section.sugar.section@example.it\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"support.qa.kid@example.co.uk\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-6", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(294) 447-9707\",\n \"phone_work\":\"(036) 840-3216\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"support.qa.kid@example.co.uk\",\n \"email2\":\"section.sugar.section@example.it\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"48920 San Carlos Ave\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Persistance\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-7", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"54556\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Arts & Crafts Inc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-8", "text": "\"account_name\":\"Arts & Crafts Inc\",\n \"account_id\":\"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"Technical Advisor\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"GusDales145\",\n \"portal_active\":true,\n \"portal_password\":\"$1$JxYr6tmM$b.O6.KF42jP46RadSwz0N0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "5d01164baed3-9", "text": "\"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/:remote_id POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_POST/index.html"} {"id": "f894d5e06847-0", "text": "//:record/link/:link_name/count GET\nOverview\n Lists related filtered records.\nSummary\n This endpoint will return a set of related records filtered by an expression. The filter can be applied to multiple\n fields and have multiple and/or conditions in it. Care will need to be taken to make sure this filter has\n appropriate indexes on the server side otherwise the runtime of the endpoint will be very long. Related fields can\n be searched by specifying the field name as: \"link_name.remote_field\", so if you wished to search the Accounts\n module by a related member account you would use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-1", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned. This argument\n can be combined with the view argument.\n \n Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-2", "text": "in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-3", "text": "would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-4", "text": "$contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-5", "text": "Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-6", "text": "}\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\n Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-7", "text": "Array\n \n An array of results containing matched records.\n \nRepsonse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-8", "text": "\"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-9", "text": "\"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-10", "text": "\"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-11", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-12", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-13", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-14", "text": "\"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-15", "text": "\"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-16", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-17", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-18", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "f894d5e06847-19", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namecount_GET/index.html"} {"id": "9535bcad345e-0", "text": "/pmse_Inbox/changeCaseUser/:cas_id GET\nOverview\n Deprecated endpoint.\nSummary\nThis endpoint is deprecated and will be removed in a future release.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxchangeCaseUsercas_id_GET/index.html"} {"id": "e7ee454e9c94-0", "text": "/pmse_Inbox/case/:id/:idflow GET\nOverview\n Retrieve information of the process record \nSummary\n This endpoint gets information for a process record \nRequest Arguments\nName\nType\nDescription\nRequired\nid\nstring\nThe id of the process requiring action\ntrue\nidflow\nstring\nThe id of the process trigger sequence\ntrue\nResponse Arguments\nName\nType\nDescription\ncase\nobject\nProcess record\nResponse\n{\n \"case\":\n {\n \"flow\":\n {\n \"id\":\"b2d418ba-28ef-11e6-8ae6-6c4008960436\",\n \"name\":\"\",\n \"date_entered\":\"2016-06-02 18:27:42\",\n \"date_modified\":\"2016-06-02 18:27:42\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "e7ee454e9c94-1", "text": "\"date_modified\":\"2016-06-02 18:27:42\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":\"0\",\n \"cas_id\":\"3\",\n \"cas_index\":\"3\",\n \"pro_id\":\"6e172e2c-2842-11e6-a4bb-6c4008960436\",\n \"cas_previous\":\"2\",\n \"cas_reassign_level\":\"0\",\n \"bpmn_id\":\"7c62acc2-2842-11e6-9b9c-6c4008960436\",\n \"bpmn_type\":\"bpmnActivity\",\n \"cas_assignment_method\":\"static\",\n \"cas_user_id\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "e7ee454e9c94-2", "text": "\"cas_user_id\":\"1\",\n \"cas_thread\":\"1\",\n \"cas_flow_status\":\"FORM\",\n \"cas_sugar_module\":\"Accounts\",\n \"cas_sugar_object_id\":\"b2103fd0-28ef-11e6-8916-6c4008960436\",\n \"cas_sugar_action\":\"None\",\n \"cas_adhoc_type\":\"\",\n \"cas_adhoc_parent_id\":\"\",\n \"cas_adhoc_actions\":\"[\\u0022link_cancel\\u0022,\\u0022approve\\u0022,\\u0022reject\\u0022,\\u0022edit\\u0022]\",\n \"cas_task_start_date\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "e7ee454e9c94-3", "text": "\"cas_task_start_date\":null,\n \"cas_delegate_date\":\"2016-06-02 18:27:42\",\n \"cas_start_date\":null,\n \"cas_finish_date\":null,\n \"cas_due_date\":null,\n \"cas_queue_duration\":\"0\",\n \"cas_duration\":\"0\",\n \"cas_delay_duration\":\"0\",\n \"cas_started\":\"0\",\n \"cas_finished\":\"0\",\n \"cas_delayed\":\"0\",\n \"assigned_user_id\":\"1\",\n \"au_first_name\":null,\n \"au_last_name\":\"Administrator\",\n \"cbu_first_name\":null,\n \"cbu_last_name\":\"Administrator\",\n \"mbu_first_name\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "e7ee454e9c94-4", "text": "\"mbu_first_name\":null,\n \"mbu_last_name\":\"Administrator\",\n \"my_favorite\":null\n },\n \"reclaim\":false,\n \"buttons\":\n [\n {\n \"type\":\"button\",\n \"name\":\"cancel_button\",\n \"label\":\"Cancel\",\n \"css_class\":\"btn-invisible btn-link\",\n \"showOn\":\"edit\",\n \"events\":\n {\n \"click\":\"button:cancel_button:click\"\n }\n },\n {\n \"type\":\"rowaction\",\n \"event\":\"case:approve\",\n \"name\":\"approve_button\",\n \"label\":\"Approve\",\n \"css_class\":\"btn btn-success\"\n },\n {\n \"type\":\"rowaction\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "e7ee454e9c94-5", "text": "},\n {\n \"type\":\"rowaction\",\n \"event\":\"case:reject\",\n \"name\":\"reject_button\",\n \"label\":\"Reject\",\n \"css_class\":\"btn btn-danger\"\n },\n {\n \"type\":\"actiondropdown\",\n \"name\":\"main_dropdown\",\n \"primary\":true,\n \"showOn\":\"view\",\n \"buttons\":\n [\n {\n \"type\":\"rowaction\", \n \"event\":\"button:edit_button:click\",\n \"name\":\"edit_button\",\n \"label\":\"Edit\",\n \"acl_action\":\"edit\"\n },\n {\n \"type\":\"rowaction\",\n \"name\":\"history\",\n \"label\":\"History\",\n \"event\":\"case:history\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "e7ee454e9c94-6", "text": "\"event\":\"case:history\"\n },\n {\n \"type\":\"rowaction\",\n \"name\":\"status\",\n \"label\":\"Status\",\n \"event\":\"case:status\"\n },\n {\n \"type\":\"rowaction\",\n \"name\":\"add-notes\",\n \"label\":\"Show Notes\",\n \"event\":\"case:add:notes\"\n }\n ]\n }\n ],\n \"readonly\":[],\n \"required\":[],\n \"title\":\n {\n \"time\":\n {\n \"expected_time_warning\":false,\n \"expected_time_message\":false,\n \"expected_time_view\":false,\n \"expected_time\":\"\"\n },\n \"process\":\"PD1\",\n \"rec_name\":\"ABC3\",\n \"activity\":\"Activity # 1\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "e7ee454e9c94-7", "text": "\"rec_name\":\"ABC3\",\n \"activity\":\"Activity # 1\"\n },\n \"inboxId\":\"b2b6e20e-28ef-11e6-bba8-6c4008960436\",\n \"flowId\":\"b2d418ba-28ef-11e6-8ae6-6c4008960436\"\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxcaseididflow_GET/index.html"} {"id": "01c07b553b8b-0", "text": "/Administration/config/:category GET\nOverview\n[ADMIN] Get Configuration Settings for a Category.\nSummary\nThis endpoint gets configuration values for a given category. This endpoint is only available to administrators.\nRequest\nGET /Administration/config/:category\n\u00c2\u00a0\nResponse Example\n{\n \"a_config\": \"good\"\n}\nChange Log\nVersion\nChange\nv11.13\nAdded\u00c2\u00a0Administration/config/:category\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationconfigcategory_GET/index.html"} {"id": "8d981a4368b6-0", "text": "/integrate//:sync_key_field_name/:sync_key_field_value PUT\nOverview\nUpserts based on sync_key_field_name. If a record can be found with sync_key_field_name, then update. If the record does not exist, then create it.\u00c2\u00a0Note that the PATCH method is recommended over the PUT method.\nNote:\u00c2\u00a0This endpoint cannot be used to set the sync_key_field_name for an existing Sugar record. To do so, it is recommended to use the set sync key endpoint to update the matching Sugar record ID. Once the sync_key_field_name is set for the record, then it is possible to leverage this endpoint.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nsync_key_field_name\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulesync_key_field_namesync_key_field_value_PUT/index.html"} {"id": "8d981a4368b6-1", "text": "The module the record belongs to\nTrue\nsync_key_field_name\nString\nThe name of the field that contains sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n/integrate//:sync_key_field_name/:sync_key_field_value\nResponse Arguments\nName\nType\nDescription\nrecord\nString\nThe ID of the record that was upserted.\nResponse\nStatus 201: For a created record\nStatus 200: For an updated record\n{ record: \"a0328573-a252-a27c-3530-4e4297d4c9e1\"} \nChange Log\nVersion\nChange\nv11_10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulesync_key_field_namesync_key_field_value_PUT/index.html"} {"id": "8d981a4368b6-2", "text": "Change Log\nVersion\nChange\nv11_10\nAdded /integrate//:sync_key_field_name/:sync_key_field_value\u00c2\u00a0PUT endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulesync_key_field_namesync_key_field_value_PUT/index.html"} {"id": "d22b95024802-0", "text": "/Mail/attachment POST\nOverview\n Upload an email attachment\nQuery String Parameters\n This endpoint does not accept any query string parameters.\nInput Parameters\nName\nType\nDescription\nRequired\n email_attachment\n \n String\n \n The file to upload.\n \n True\n \nInput Example\n{\"email_attachment\":\"@\\/path\\/to\\/ExampleDocument.txt\"}\nResult\nName\nType\nDescription\n \n \n \n \n Returns the fields for the newly created email record.\n \nOutput Example\n{\n \"guid\": \"61b19f41-0ac9-0f2f-d9c5-51eecaf89396\",\n \"name\": \"ExampleDocument.txt\",\n \"nameForDisplay\": \"ExampleDocument.txt\"\n}\nChange Log\nVersion", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailattachment_POST/index.html"} {"id": "d22b95024802-1", "text": "\"nameForDisplay\": \"ExampleDocument.txt\"\n}\nChange Log\nVersion\nChange\n v11\n \n Last version in which /Mail/attachment POST is available. Use\n /Notes/temp/file/filename POST in conjunction with\n /Emails/:record/link/attachments POST instead.\n \n v10\n \n Added /Mail/attachment POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mailattachment_POST/index.html"} {"id": "2e9eeb9ba419-0", "text": "/pmse_Inbox/reassignFlows/:record GET\nOverview\n Retrieve information to reassign processes \nSummary\n This endpoint gets information necessary to reassign a process \nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nstring\nThe id of the process trigger sequence\ntrue\nResponse Arguments\nName\nType\nDescription\nsuccess\nboolean\nResult of the routing operation\nnext_offset\ninteger\nNext offset for more results\nrecords\n:\nList of process attributes \nResponse\n{\n \"success\":true,\n \"next_offset\":-1,\n \"records\":\n [\n {\n \"cas_id\":\"2\",\n \"cas_index\":\"3\",\n \"cas_task_start_date\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxreassignFlowsrecord_GET/index.html"} {"id": "2e9eeb9ba419-1", "text": "\"cas_task_start_date\":null,\n \"cas_delegate_date\":\"2016-06-01T16:18:59-07:00\",\n \"cas_flow_status\":\"FORM\",\n \"cas_user_id\":\"seed_sarah_id\",\n \"cas_due_date\":\"\",\n \"cas_sugar_module\":\"Accounts\",\n \"bpmn_id\":\"7c62acc2-2842-11e6-9b9c-6c4008960436\",\n \"act_name\":\"Activity # 1\",\n \"act_assignment_method\":\"static\",\n \"act_expected_time\":\"eyJ0aW1lIjpudWxsLCJ1bml0IjoiaG91ciJ9\",\n \"cas_expected_time\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxreassignFlowsrecord_GET/index.html"} {"id": "2e9eeb9ba419-2", "text": "\"cas_expected_time\":\"\",\n \"assigned_user\":\"Sarah Smith\"\n }\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxreassignFlowsrecord_GET/index.html"} {"id": "f06ae2b741ec-0", "text": "/pmse_Business_Rules/file/businessrules_import POST\nOverview\n Imports a Process Business Rules definition from a .pbr file\nSummary\n This endpoint will import a Process Business Rules definition from the\n uploaded .pbr file containing JSON encoded data.\nRequest Arguments\nName\nType\nDescription\nRequired\nN/A\nRequest\nNote: A JSON encoded .pbr file attachment should be included with\nthe request as part of the form-data.\nResponse Arguments\nName\nType\nDescription\nbusinessrules_import\nObject\nResult of the import operation\nResponse\n{\n \"businessrules_import\":\n {\n \"success\":true,\n \"id\":\"e4396c91-81cd-c097-8149-5733bab68316\"\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rulesfilebusinessrules_import_POST/index.html"} {"id": "6be80e65864d-0", "text": "/pmse_Inbox/reassignFlows PUT\nOverview\n Call methods to reassign processes \nSummary\n This endpoint reassigns a collection of processes \nRequest Arguments\nName\nType\nDescription\nRequired\nflow_data\narray\nCollection of flow data arrays, each containing a user_id property\ntrue\nResponse Arguments\nName\nType\nDescription\nsuccess\nboolean\nResult of the reassign operation\nResponse\n{\n \"success\":true,\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxreassignFlows_PUT/index.html"} {"id": "e810bb607e8f-0", "text": "//:record/file/:field POST\nOverview\n Attaches a file to a field on a record.\nRequest Arguments\nName\nType\nDescription\nRequired\n format\n \n String\n \n The data format. Currently accepts 'sugar-html-json'.\n \n True\n \n delete_if_fails\n \n Boolean\n \n Indicates whether the API is to mark related record deleted if the file upload fails.\n \n False\n \n oauth_token\n \n String\n \n The oauth_token value.\n \n False - Required if only if delete_if_fails is true.\n \n \n \n String\n \n The field and file to populate.\n \n Example: {\"\":\"@\\/path\\/to\\/ExampleDocument.txt\"}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_POST/index.html"} {"id": "e810bb607e8f-1", "text": "Example: {\"\":\"@\\/path\\/to\\/ExampleDocument.txt\"}\n True\n \nRequest\n{\n \"format\":\"sugar-html-json\",\n \"delete_if_fails\":true,\n \"oauth_token\":\"43b6b327-cc70-c301-3299-512ffb99ad97\",\n \"\":\"@\\/path\\/to\\/ExampleDocument.txt\"\n}\nResponse Arguments\nName\nType\nDescription\n content-type\n \n String\n \n The files content type.\n \n content-length\n \n Integer\n \n The files content length.\n \n name\n \n String\n \n The files name.\n \n uri\n \n String\n \n The URI of the file.\n \nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_POST/index.html"} {"id": "e810bb607e8f-2", "text": "String\n \n The URI of the file.\n \nResponse\n{\n \"content-type\":\"text\\/plain\",\n \"content-length\":16,\n \"name\":\"ExampleDocument.txt\",\n \"uri\":\"http:\\/\\/sugarcrm\\/rest\\/v10\\/Notes\\/ca66c92f-5a8b-28b4-4fc8-512d099b790b\\/file\\/?format=sugar-html-json&delete_if_fails=1&oauth_token=6ec91cf3-1f97-25b9-e0b1-512f8971b2d4\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/file/:field POST endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_POST/index.html"} {"id": "e810bb607e8f-3", "text": "Added //:record/file/:field POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_POST/index.html"} {"id": "3dc3dfe7a634-0", "text": "/pmse_Project/:record/verify GET\nOverview\n Verifies whether the Process Definition has any pending processes\nSummary\n This endpoint will verify whether the Process Definition identified by the\n record input parameter has any currently pending processes\n based on it.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe Process Definition record ID\nTrue\nResponse Arguments\nName\nType\nDescription\nN/A\nResponse\nNote: The response is a string of either \"true\" or \"false\"\nindicating whether any pending processes exist.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectrecordverify_GET/index.html"} {"id": "085e0172cf49-0", "text": "//:record/subscribe POST\nSummary:\nThis endpoint creates a subscription record in the Subscriptions table, from a specified record and module. It allows the user to be subscribed to activity stream messages for the record being subscribed to, or \"followed\".\nQuery Parameters:\nThis endpoint does not accept any parameters.\nInput Example:\nThis endpoint does not accept any input.\nOutput Example:\n If successful, the endpoint responds with the GUID of the subscription record.\n\"96ad733c-df51-dd9d-1888-514112ef0595\"\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordsubscribe_POST/index.html"} {"id": "dcc9fbc55320-0", "text": "/Reports/:record/records GET\nOverview\n An API to deliver filtered records from a saved report.\nSummary\n This endpoint will return a list of records from a saved report filtered by an expression.\nRequest Arguments\nName\nType\nDescription\nRequired\n group_filters\n \n String\n \n The group filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: group_filters[0][name]=value.\n \n By specifying the whole filter as a single JSON-encoded string.\n Example: group_filters=[{\"name\":\"value\"}].\n \n Example: group_filters[0][industry]=Engineering.\n \n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordrecords_GET/index.html"} {"id": "dcc9fbc55320-1", "text": "False\n \n use_saved_filters\n \n Boolean\n \n Flag to indicate whether or not to apply saved runtime filters if exists. The default value is false.\n Example: use_saved_filters=true.\n \n False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \nRequest Example\nGET /rest/v10/Reports/:id/records?group_filters[0][industry]=Engineering&use_saved_filters=true&offset=0&max_num=20\nResponse Arguments\nName\nType\nDescription\n records", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordrecords_GET/index.html"} {"id": "dcc9fbc55320-2", "text": "Response Arguments\nName\nType\nDescription\n records\n \n Array\n \n An array of results containing matched records.\n \n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \nResponse\n{\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordrecords_GET/index.html"} {"id": "dcc9fbc55320-3", "text": "\"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ],\n \"next_offset\": -1\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordrecords_GET/index.html"} {"id": "a41f3a658d35-0", "text": "/pmse_Inbox/:record/file/:field GET\nOverview\n Returns the process status image file \nSummary\n This endpoint returns the process status image file. \nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nstring\nThe id of the record or image to get\ntrue\nfield\nstring\nThe image type field to get the image from\ntrue\n_project\nstring\nIf set, will get an image for a project instead of a process\nfalse\nResponse\nThere is no Response to this endpoint\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxrecordfilefield_GET/index.html"} {"id": "277cb05038ef-0", "text": "//:record PUT\nOverview\n Update a record of the specified type.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"New Account Name\",\n \"phone_office\":\"(555) 888-5555\",\n \"website\":\"www.newsite.com\",\n \"meetings\": {\n {\n \"add\": [\"21e3385e-404f-b470-407e-54044e3d8024\"],\n \"delete\": [\"21e3385e-404f-b470-407e-54044e3d8023\"],\n \"create\": [\n {\n \"name\": \"Test Meeting\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_PUT/index.html"} {"id": "277cb05038ef-1", "text": "{\n \"name\": \"Test Meeting\"\n }\n ]\n }\n}\nLink fields\n It is possible to add or delete record relations to other records and create new related records.\nAction\nType\nDescription\nadd\n List\n \n List of related records ID. See RelateRecordApi\n for details.\n \ndelete\n List\n \n List of related records ID.\n \ncreate\n List\n \n List of name to value arrays of related records.\n \nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the updated record.\n \nResponse\n{\n \"id\":\"f222265a-b755-da89-0bc7-512d09b800b6\",\n \"name\":\"New Account Name\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_PUT/index.html"} {"id": "277cb05038ef-2", "text": "\"name\":\"New Account Name\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-27T22:49:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-26T19:12:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sarah_id\",\n \"assigned_user_name\":\"Sarah Smith\",\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_PUT/index.html"} {"id": "277cb05038ef-3", "text": "{\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Hospitality\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"9 IBM Path\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"San Francisco\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_PUT/index.html"} {"id": "277cb05038ef-4", "text": "\"billing_address_city\":\"San Francisco\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"43635\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(555) 888-5555\",\n \"phone_alternate\":\"\",\n \"website\":\"www.newsite.com\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"9 IBM Path\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"San Francisco\",\n \"shipping_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_PUT/index.html"} {"id": "277cb05038ef-5", "text": "\"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"43635\",\n \"shipping_address_country\":\"USA\",\n \"email1\":\"kid86@example.net\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":false,\n \"invalid_email\":false,\n \"email\":[\n {\n \"email_address\":\"kid86@example.net\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.dev@example.name\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_PUT/index.html"} {"id": "277cb05038ef-6", "text": "\"primary_address\":\"0\"\n }\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_PUT/index.html"} {"id": "3f998151f7b9-0", "text": "//record_list/:record_list_id DELETE\nOverview\n An API to delete lists of records\nSummary\n Delete record list. Only DELETE request allowed.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nstring\n Module name\n \nTrue\nrecord_list_id\nguid\n record list id\n \nTrue\nRequest Example\nDELETE /rest/v10/:module/record_list/:id\nResponse Arguments\n Return boolean true.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_listrecord_list_id_DELETE/index.html"} {"id": "185d15c180bb-0", "text": "/Calls/:record PUT\nOverview\n Update a calendar event record of the specified type.\nRequest Arguments\nName\nType\nDescription\nRequired\n all_recurrences\n \n Boolean\n \n Flag to update all events in a series.\n \n False\n \nRequest\nhttp://{site_url}/rest/v10/Meetings/2c9e5c09-6824-0d14-f5cb-5130321ac3cf?all_recurrences=true\n{\n \"name\":\"Department Meeting\",\n \"description\":\"Weekly Department Meeting\",\n \"date_start\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"date_end\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"repeat_type\":\"Weekly\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Callsrecord_PUT/index.html"} {"id": "185d15c180bb-1", "text": "\"repeat_type\":\"Weekly\",\n \"repeat_interval\":\"1\", /* Every Week */\n \"repeat_dow\":\"25\", /* Tue and Fri */\n \"repeat_count\":\"4\", /* 4 Recurrences */\n \"repeat_until\":\"\",\n}\nResponse Arguments\nName\nDescription\nStart Date\nEnd Date\n \n \n Returns the fields for the updated record.\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Callsrecord_PUT/index.html"} {"id": "dcf71b9243f7-0", "text": "/connectors GET\nOverview\n Gets general info about connectors.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResult Arguments\nResponse\n{\n \"connectors\": {\n \"ext_rest_twitter\": {\n \"testing_enabled\": true,\n \"test_passed\": false,\n \"eapm_bean\": false,\n \"field_mapping\": {\n \"beans\": {\n \"Accounts\": {\n \"name\": \"name\",\n \"id\": \"id\"\n },\n \"Contacts\": {\n \"name\": \"full_name\",\n \"id\": \"id\"\n },\n \"Leads\": {\n \"name\": \"account_name\",\n \"id\": \"id\"\n },\n \"Prospects\": {\n \"name\": \"account_name\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectors_GET/index.html"} {"id": "dcf71b9243f7-1", "text": "\"Prospects\": {\n \"name\": \"account_name\",\n \"id\": \"id\"\n }\n }\n },\n \"id\": \"ext_rest_twitter\",\n \"name\": \"Twitter\"\n },\n \"ext_eapm_google\": {\n \"testing_enabled\": false,\n \"test_passed\": false,\n \"eapm_bean\": false,\n \"field_mapping\": [],\n \"id\": \"ext_eapm_google\",\n \"name\": \"Google\"\n },\n \"ext_eapm_gotomeeting\": {\n \"testing_enabled\": false,\n \"test_passed\": false,\n \"eapm_bean\": false,\n \"field_mapping\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectors_GET/index.html"} {"id": "dcf71b9243f7-2", "text": "\"field_mapping\": [],\n \"id\": \"ext_eapm_gotomeeting\",\n \"name\": \"GoToMeeting\"\n },\n \"ext_eapm_ibmsmartcloud\": {\n \"testing_enabled\": false,\n \"test_passed\": false,\n \"eapm_bean\": false,\n \"field_mapping\": [],\n \"id\": \"ext_eapm_ibmsmartcloud\",\n \"name\": \"IBM SmartCloud\"\n },\n \"ext_eapm_webex\": {\n \"testing_enabled\": false,\n \"test_passed\": false,\n \"eapm_bean\": false,\n \"field_mapping\": [],\n \"id\": \"ext_eapm_webex\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectors_GET/index.html"} {"id": "dcf71b9243f7-3", "text": "\"id\": \"ext_eapm_webex\",\n \"name\": \"WebEx\"\n },\n \"ext_eapm_lotuslive\": {\n \"testing_enabled\": false,\n \"test_passed\": false,\n \"eapm_bean\": false,\n \"field_mapping\": [],\n \"id\": \"ext_eapm_lotuslive\",\n \"name\": \"LotusLive\"\n },\n \"ext_rest_dnb\": {\n \"testing_enabled\": false,\n \"test_passed\": false,\n \"eapm_bean\": false,\n \"field_mapping\": {\n \"beans\": {\n \"Accounts\": {\n \"name\": \"name\",\n \"id\": \"id\"\n }\n }\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectors_GET/index.html"} {"id": "dcf71b9243f7-4", "text": "\"id\": \"id\"\n }\n }\n },\n \"id\": \"ext_rest_dnb\",\n \"name\": \"DNB\"\n },\n \"_hash\": \"\\u0000d4751e1632fd5d1d2c9069a1f176e6f\"\n },\n \"_hash\": \"2cd9132603ead4f79715c69ee98e64f1\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added / GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/connectors_GET/index.html"} {"id": "1c0ebce0fb2a-0", "text": "//recent-product POST\nOverview\n Opportunity Recent Product Help\nSummary\n This endpoint retrieves top 10 recently used Quoted/Revenue Line Items based on the module to display them in the\n \"Product Catalog Quick Picks\" dashlet in the reverse chronological order.\nRequest Arguments\nNone\nResponse Arguments\nNONE\nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"c1b4680e-c7f2-11e8-9380-7831c1c14620\",\n \"name\":\"Brain Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-1", "text": "\"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Smallville Resources Inc 362299XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"370.000000\",\n \"discount_price\":\"854.370000\",\n \"list_price\":\"863.000000\",\n \"cost_usdollar\":\"370.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-2", "text": "\"cost_usdollar\":\"370.000000\",\n \"discount_usdollar\":\"854.370000\",\n \"list_usdollar\":\"863.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"10.00\",\n \"qty_in_stock\":106,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"PercentageDiscount\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-3", "text": "\"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c186a612-c7f2-11e8-9fee-7831c1c14620\",\n \"name\":\"Bradford Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-4", "text": "\"category_id\":\"c185dbb0-c7f2-11e8-a6b7-7831c1c14620\",\n \"mft_part_num\":\"Mississippi Bank Group 133834XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"528.000000\",\n \"discount_price\":\"533.333333\",\n \"list_price\":\"745.000000\",\n \"cost_usdollar\":\"528.000000\",\n \"discount_usdollar\":\"533.333333\",\n \"list_usdollar\":\"745.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"33.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-5", "text": "\"website\":null,\n \"weight\":\"33.00\",\n \"qty_in_stock\":70,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b60434-c7f2-11e8-8964-7831c1c14620\",\n \"name\":\"Billie Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-6", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Kringle Bell IncK.A. Tower \\u0026 Co 694143XYZ987\",\n \"vendor_part_num\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-7", "text": "\"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"403.000000\",\n \"discount_price\":\"927.000000\",\n \"list_price\":\"927.000000\",\n \"cost_usdollar\":\"403.000000\",\n \"discount_usdollar\":\"927.000000\",\n \"list_usdollar\":\"927.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"16.00\",\n \"qty_in_stock\":148,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-8", "text": "\"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"IsList\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c18e0448-c7f2-11e8-86b0-7831c1c14620\",\n \"name\":\"Arla Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-9", "text": "\"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c18b8b64-c7f2-11e8-8c1a-7831c1c14620\",\n \"mft_part_num\":\"24\\/7 Couriers 795391XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"398.000000\",\n \"discount_price\":\"402.020202\",\n \"list_price\":\"941.000000\",\n \"cost_usdollar\":\"398.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-10", "text": "\"cost_usdollar\":\"398.000000\",\n \"discount_usdollar\":\"402.020202\",\n \"list_usdollar\":\"941.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"22.00\",\n \"qty_in_stock\":145,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"Base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-11", "text": "\"Base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c181bd32-c7f2-11e8-b4eb-7831c1c14620\",\n \"name\":\"Allyson Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-12", "text": "\"category_id\":\"c18112d8-c7f2-11e8-b753-7831c1c14620\",\n \"mft_part_num\":\"Ink Conglomerate Inc 921535XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"534.000000\",\n \"discount_price\":\"842.000000\",\n \"list_price\":\"905.000000\",\n \"cost_usdollar\":\"534.000000\",\n \"discount_usdollar\":\"842.000000\",\n \"list_usdollar\":\"905.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "1c0ebce0fb2a-13", "text": "\"website\":null,\n \"weight\":\"20.00\",\n \"qty_in_stock\":26,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"Fixed\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Opportunities/recent_product POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecent-product_POST/index.html"} {"id": "b122dd529708-0", "text": "/pmse_Inbox/delete_notes/:id DELETE\nOverview\n Deletes a process note \nSummary\nTBD\nRequest Arguments\nName\nType\nDescription\nRequired\nid\nstring\nThe note id to delete\ntrue\nResponse Arguments\nName\nType\nDescription\nid\nstring\nId of the deleted note\nResponse\n{\n \"id\":\"da13553a-298a-11e6-b125-6c4008960436\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxdelete_notesid_DELETE/index.html"} {"id": "e8dc0fa6b6e0-0", "text": "/ GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "e8dc0fa6b6e0-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_GET/index.html"} {"id": "20ed14a57f35-0", "text": "/pmse_Project/ActivityDefinition/:record PUT\nOverview\n Updates the definition data for an activity\nSummary\n This endpoint will update the Process Definition activity identified by the\n record input parameter with the data provided in the request\n payload.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe value for the act_uid field in the pmse_bpmn_activity record\nTrue\nRequest Payload\n{\n \"data\":\n {\n \"act_field_module\":\"Accounts\",\n \"act_fields\":\"[{\\\"name\\\":\\\"Assigned to\\\",\\\"field\\\":\\\"assigned_user_id\\\",\\\"value\\\":\\\"owner\\\",\\\"type\\\":\\\"user\\\",\\\"label\\\":\\\"Record owner\\\"}]\"\n }\n}\nResponse Arguments\nName\nType\nDescription\nsuccess\nBoolean\nThe status of the update operation\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectActivityDefinitionrecord_PUT/index.html"} {"id": "20ed14a57f35-1", "text": "Type\nDescription\nsuccess\nBoolean\nThe status of the update operation\nResponse\n{\n \"success\":true\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectActivityDefinitionrecord_PUT/index.html"} {"id": "c4398b8e4b62-0", "text": "/Quotes/config POST\nOverview\n Quote Config POST Help\nSummary\n This endpoint allows customizations to be made to the Quoted Line Items section of the Quote record.\nRequest Arguments\nName\nType\nDescription\nRequired\n worksheet_columns\n \n array\n \n A viewdef \"fields\"-style definition of the columns you want to display in the QLI section. These get\n written out to the custom/Products/clients/base/views/quote-data-group-list/quote-data-group-list.php file.\n \n True\n \n worksheet_column_related_fields\n \n array\n \n Array of the related field names needed for data to be returned for use by the quote-data-group-list\n \n True\n \n summary_columns\n \n array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-1", "text": "True\n \n summary_columns\n \n array\n \n A viewdef \"fields\"-style definition of the columns you want to display in the Quote Summary header section.\n These get written out to the\n custom/Quotes/clients/base/views/quote-data-grand-totals-header/quote-data-grand-totals-header.php file.\n \n True\n \n summary_columns_related_fields\n \n array\n \n Array of the related field names needed for data to be\n returned for use by the quote-data-grand-totals-header\n \n True\n \n footer_rows\n \n array\n \n A viewdef \"fields\"-style definition of the columns you want to display in the Quote Grand Totals", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-2", "text": "Footer section. These get written out to the\n custom/Quotes/clients/base/views/quote-data-grand-totals-footer/quote-data-grand-totals-footer.php file.\n \n True\n \n footer_rows_related_fields\n \n array\n \n Array of the related field names needed for data to be\n returned for use by the quote-data-grand-totals-footer\n \n True\n \nSample Request\n{\n \"summary_columns\": [\n {\n \"name\": \"deal_tot\",\n \"label\": \"LBL_LIST_DEAL_TOT\",\n \"css_class\": \"quote-totals-row-item\",\n \"related_fields\": [", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-3", "text": "\"related_fields\": [\n \"deal_tot_discount_percentage\"\n ],\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"new_sub\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"label\": \"LBL_NEW_SUB\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"tax\",\n \"label\": \"LBL_TAX_TOTAL\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"shipping\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-4", "text": "},\n {\n \"name\": \"shipping\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"label\": \"LBL_SHIPPING\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"total\",\n \"label\": \"LBL_LIST_GRAND_TOTAL\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n }\n ],\n \"summary_columns_related_fields\": [\n \"base_rate\",\n \"deal_tot\",\n \"deal_tot_usdollar\",\n \"shipping\",\n \"subtotal\",\n \"subtotal_usdollar\",\n \"tax\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-5", "text": "\"subtotal\",\n \"subtotal_usdollar\",\n \"tax\",\n \"taxable_subtotal\"\n ],\n \"worksheet_columns\": [\n {\n \"name\": \"line_num\",\n \"label\": null,\n \"widthClass\": \"cell-xsmall\",\n \"css_class\": \"line_num tcenter\",\n \"type\": \"line-num\",\n \"readonly\": true\n },\n {\n \"name\": \"quantity\",\n \"label\": \"LBL_QUANTITY\",\n \"widthClass\": \"cell-small\",\n \"css_class\": \"quantity\",\n \"type\": \"float\",\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"product_template_name\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-6", "text": "},\n {\n \"name\": \"product_template_name\",\n \"label\": \"LBL_ITEM_NAME\",\n \"widthClass\": \"cell-large\",\n \"type\": \"quote-data-relate\",\n \"required\": true,\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"mft_part_num\",\n \"label\": \"LBL_MFT_PART_NUM\",\n \"type\": \"base\",\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"discount_price\",\n \"label\": \"LBL_DISCOUNT_PRICE\",\n \"type\": \"currency\",\n \"convertToBase\": true,\n \"showTransactionalAmount\": true,\n \"related_fields\": [", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-7", "text": "\"showTransactionalAmount\": true,\n \"related_fields\": [\n \"discount_price\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"discount\",\n \"type\": \"fieldset\",\n \"css_class\": \"quote-discount-percent\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"fields\": [\n {\n \"name\": \"discount_amount\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"type\": \"discount\",\n \"convertToBase\": true,\n \"showTransactionalAmount\": true\n },\n {\n \"type\": \"discount-select\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-8", "text": "},\n {\n \"type\": \"discount-select\",\n \"name\": \"discount_select\",\n \"no_default_action\": true,\n \"buttons\": [\n {\n \"type\": \"rowaction\",\n \"name\": \"select_discount_amount_button\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"event\": \"button:discount_select_change:click\"\n },\n {\n \"type\": \"rowaction\",\n \"name\": \"select_discount_percent_button\",\n \"label\": \"LBL_DISCOUNT_PERCENT\",\n \"event\": \"button:discount_select_change:click\"\n }\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-9", "text": "}\n ],\n \"label\": \"LBL_DISCOUNT_AS_PERCENT\"\n }\n ],\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"total_amount\",\n \"label\": \"LBL_LINE_ITEM_TOTAL\",\n \"type\": \"currency\",\n \"widthClass\": \"cell-medium\",\n \"showTransactionalAmount\": true,\n \"related_fields\": [\n \"total_amount\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"labelModule\": \"Quotes\"\n }\n ],\n \"worksheet_columns_related_fields\": [\n \"base_rate\",\n \"deal_calc\",\n \"discount_amount\",\n \"discount_price\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-10", "text": "\"discount_amount\",\n \"discount_price\",\n \"discount_select\",\n \"quantity\",\n \"subtotal\",\n \"tax_class\",\n \"total_amount\",\n \"description\",\n \"quote_id\",\n \"name\",\n \"product_template_id\",\n \"product_template_name\"\n ],\n \"footer_rows\": [\n {\n \"name\": \"new_sub\",\n \"type\": \"currency\"\n },\n {\n \"name\": \"tax\",\n \"type\": \"currency\"\n },\n {\n \"name\": \"shipping\",\n \"type\": \"quote-footer-currency\",\n \"css_class\": \"quote-footer-currency\",\n \"default\": \"0.00\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-11", "text": "\"default\": \"0.00\"\n },\n {\n \"name\": \"total\",\n \"type\": \"currency\",\n \"css_class\": \"grand-total\"\n }\n ],\n \"footer_rows_related_fields\": [\n \"deal_tot\",\n \"deal_tot_usdollar\",\n \"shipping\",\n \"subtotal\",\n \"subtotal_usdollar\",\n \"tax\",\n \"taxable_subtotal\"\n ]\n}\nResponse Arguments\nNONE\nResponse\nSaved Config or SugarApiExceptionInvalidParameter\n{\n \"summary_columns\": [\n {\n \"name\": \"deal_tot\",\n \"label\": \"LBL_LIST_DEAL_TOT\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-12", "text": "\"label\": \"LBL_LIST_DEAL_TOT\",\n \"css_class\": \"quote-totals-row-item\",\n \"related_fields\": [\n \"deal_tot_discount_percentage\"\n ],\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"new_sub\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"label\": \"LBL_NEW_SUB\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"tax\",\n \"label\": \"LBL_TAX_TOTAL\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-13", "text": "\"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"shipping\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"label\": \"LBL_SHIPPING\",\n \"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"total\",\n \"label\": \"LBL_LIST_GRAND_TOTAL\",\n \"css_class\": \"quote-totals-row-item\",\n \"type\": \"currency\",\n \"labelModule\": \"Quotes\"\n }\n ],\n \"worksheet_columns\": [\n {\n \"name\": \"line_num\",\n \"label\": null,\n \"widthClass\": \"cell-xsmall\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-14", "text": "\"label\": null,\n \"widthClass\": \"cell-xsmall\",\n \"css_class\": \"line_num tcenter\",\n \"type\": \"line-num\",\n \"readonly\": true\n },\n {\n \"name\": \"quantity\",\n \"label\": \"LBL_QUANTITY\",\n \"widthClass\": \"cell-small\",\n \"css_class\": \"quantity\",\n \"type\": \"float\",\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"product_template_name\",\n \"label\": \"LBL_ITEM_NAME\",\n \"widthClass\": \"cell-large\",\n \"type\": \"quote-data-relate\",\n \"required\": true,\n \"labelModule\": \"Quotes\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-15", "text": "\"labelModule\": \"Quotes\"\n },\n {\n \"name\": \"mft_part_num\",\n \"label\": \"LBL_MFT_PART_NUM\",\n \"type\": \"base\",\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"discount_price\",\n \"label\": \"LBL_DISCOUNT_PRICE\",\n \"type\": \"currency\",\n \"convertToBase\": true,\n \"showTransactionalAmount\": true,\n \"related_fields\": [\n \"discount_price\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"discount\",\n \"type\": \"fieldset\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-16", "text": "\"name\": \"discount\",\n \"type\": \"fieldset\",\n \"css_class\": \"quote-discount-percent\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"fields\": [\n {\n \"name\": \"discount_amount\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"type\": \"discount\",\n \"convertToBase\": true,\n \"showTransactionalAmount\": true\n },\n {\n \"type\": \"discount-select\",\n \"name\": \"discount_select\",\n \"no_default_action\": true,\n \"buttons\": [\n {\n \"type\": \"rowaction\",\n \"name\": \"select_discount_amount_button\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-17", "text": "\"name\": \"select_discount_amount_button\",\n \"label\": \"LBL_DISCOUNT_AMOUNT\",\n \"event\": \"button:discount_select_change:click\"\n },\n {\n \"type\": \"rowaction\",\n \"name\": \"select_discount_percent_button\",\n \"label\": \"LBL_DISCOUNT_PERCENT\",\n \"event\": \"button:discount_select_change:click\"\n }\n ],\n \"label\": \"LBL_DISCOUNT_AS_PERCENT\"\n }\n ],\n \"labelModule\": \"Products\"\n },\n {\n \"name\": \"total_amount\",\n \"label\": \"LBL_LINE_ITEM_TOTAL\",\n \"type\": \"currency\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-18", "text": "\"type\": \"currency\",\n \"widthClass\": \"cell-medium\",\n \"showTransactionalAmount\": true,\n \"related_fields\": [\n \"total_amount\",\n \"currency_id\",\n \"base_rate\"\n ],\n \"labelModule\": \"Quotes\"\n }\n ],\n \"footer_rows\": [\n {\n \"name\": \"new_sub\",\n \"type\": \"currency\"\n },\n {\n \"name\": \"tax\",\n \"type\": \"currency\"\n },\n {\n \"name\": \"shipping\",\n \"type\": \"quote-footer-currency\",\n \"css_class\": \"quote-footer-currency\",\n \"default\": \"0.00\"\n },\n {\n \"name\": \"total\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-19", "text": "},\n {\n \"name\": \"total\",\n \"type\": \"currency\",\n \"css_class\": \"grand-total\"\n }\n ],\n \"summary_columns_related_fields\": [\n \"base_rate\",\n \"deal_tot\",\n \"deal_tot_usdollar\",\n \"shipping\",\n \"subtotal\",\n \"subtotal_usdollar\",\n \"tax\",\n \"taxable_subtotal\"\n ],\n \"worksheet_columns_related_fields\": [\n \"base_rate\",\n \"deal_calc\",\n \"discount_amount\",\n \"discount_price\",\n \"discount_select\",\n \"quantity\",\n \"subtotal\",\n \"tax_class\",\n \"total_amount\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "c4398b8e4b62-20", "text": "\"subtotal\",\n \"tax_class\",\n \"total_amount\",\n \"description\",\n \"quote_id\",\n \"name\",\n \"product_template_id\",\n \"product_template_name\"\n ],\n \"footer_rows_related_fields\": [\n \"deal_tot\",\n \"deal_tot_usdollar\",\n \"shipping\",\n \"subtotal\",\n \"subtotal_usdollar\",\n \"tax\",\n \"taxable_subtotal\"\n ]\n}\nChange Log\nVersion\nChange\n v11.3\n \n Added /Quotes/config POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesconfig_POST/index.html"} {"id": "d630fbce0df5-0", "text": "/Emails/:record/link/:link_name/:remote_id DELETE\nOverview\n Deletes an existing relationship between an email and another record.\nSummary\n The sender (link: from) cannot be removed. Replace the sender with a different sender instead. All other\n operations described in Relate Record API are\n supported.\nChange Log\nVersion\nChange\n v10\n \n Added /Emails/:record/link/:link_name/:remote_id DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "9a4e8d310be9-0", "text": "/bulk POST\nOverview\n Run API calls in bulk.\nSummary\n This request will run a sequence of API requests within one query. The requests are executed sequentially and their results\n are returned as one response. Some requests may return failure code, that does not interrupt the execution of the batch, \n and the overall request will still be considered successful. \nRequest Arguments\nName\nType\nDescription\nRequired\n requests\n \n Array\n \n The list of requests\n \n True\n \nEach of the requests can have the following fields:\nName\nType\nDescription\nRequired\n url\n \n String\n \n The request URL, starting with version.\n \n True\n \n data\n \n JSON String\n \n The data for the POST/PUT body. Must be a JSON-encoded string.\n \n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/bulk_POST/index.html"} {"id": "9a4e8d310be9-1", "text": "False\n \n headers\n \n Array\n \n The request headers\n \n False\n \n method\n \n String\n \n The HTTP method (default is GET)\n \n False\n \nRequest Example\n{\"requests\":\n[\n {\n \"url\": \"/v10/Accounts\", \"method\": \"POST\", \"data\": \"{\\\"name\\\": \\\"test123\\\"}\"\n },\n {\n \"url\": \"/v10/Accounts\", \"method\": \"GET\"\n }\n]\n}\nResponse\nThe response will contain an array of response objects, each of them will correspond to the individual request. The following fields are in the response objects:\nName\nType\nDescription\n contents\n \n Array or String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/bulk_POST/index.html"} {"id": "9a4e8d310be9-2", "text": "Name\nType\nDescription\n contents\n \n Array or String\n \n The response contents, can be JSON object or string depending on what the individual request is supposed to return. \n \n headers\n \n Array\n \n The response headers \n \n status\n \n Integer\n \n HTTP status code of the response. Will be 2XX for successful requests and 4XX or 5XX for errors. \n \nResponse Example\n[\n {\n \"contents\": {\n \"my_favorite\": false,\n \"following\": true,\n \"id\": \"7d2e21a6-8a76-a74f-bb53-535620211304\",\n \"name\": \"test123\",\n \"date_entered\": \"2014-04-22T03:56:24-04:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/bulk_POST/index.html"} {"id": "9a4e8d310be9-3", "text": "\"_module\": \"Accounts\"\n },\n \"headers\": [],\n \"status\": 200\n },\n {\n \"contents\": {\n \"next_offset\": -1,\n \"records\": [\n {\n \"my_favorite\": false,\n \"following\": true,\n \"id\": \"7d2e21a6-8a76-a74f-bb53-535620211304\",\n \"name\": \"test123\",\n \"date_entered\": \"2014-04-22T03:56:24-04:00\",\n \"date_modified\": \"2014-04-22T03:56:24-04:00\",\n\t\t\t\t}\n ]\n },\n \"headers\": [],\n \"status\": null\n }\n]\nChange Log\nVersion", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/bulk_POST/index.html"} {"id": "9a4e8d310be9-4", "text": "\"status\": null\n }\n]\nChange Log\nVersion\nChange\n v10\n \n Added /bulk POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/bulk_POST/index.html"} {"id": "9e029a20cacb-0", "text": "/ConsoleConfiguration/config POST\nOverview\nSaves configuration changes in the database.\nRequest Arguments\nThis endpoint does not accept any request arguments.\nURL Example\n/rest/v11_9/ConsoleConfiguration/config\nRequest Payload Example\n{\n \"is_setup\":true,\n \"enabled_modules\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":[\n \t \"Cases\"\n \t],\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":[\n \t \"Accounts\",\n \t \"Opportunities\"\n \t]\n },\n \"order_by_primary\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-1", "text": "]\n },\n \"order_by_primary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t \"Cases\":\"follow_up_datetime:asc\"\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t \"Accounts\":\"next_renewal_date:asc\",\n \t \"Opportunities\":\"date_closed:asc\"\n \t}\n },\n \"order_by_secondary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t \"Cases\":\"\"\n \t},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-2", "text": "\"Cases\":\"\"\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t \"Accounts\":\"\",\n \t\"Opportunities\":\"\"\n \t}\n },\n \"filter_def\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t \"Cases\":[\n \t {\n \t \"status\":{\n \t \"$not_in\":[\n \t \"Closed\",\n \t \"Rejected\",\n \t \"Duplicate\"\n \t ]\n \t }\n \t },\n \t {\n \t\"$owner\":\"\"\n \t }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-3", "text": "{\n \t\"$owner\":\"\"\n \t }\n \t ]\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \"Accounts\":[\n \t{\n \t \"$owner\":\"\"\n \t}\n ],\n \"Opportunities\":[\n \t{\n \t \"sales_status\":{\n \t\"$not_in\":[\n \t \"Closed Won\",\n \t \"Closed Lost\"\n \t]\n \t }\n \t},\n \t{\n \t\"$owner\":\"\"\n \t}\n ]\n \t}\n },\n \"defaults\":{\n \t\"is_setup\":0,\n \t\"enabled_modules\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-4", "text": "\"is_setup\":0,\n \t\"enabled_modules\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":[\n \t \"Cases\"\n \t\t],\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":[\n \t \"Accounts\",\n \t \"Opportunities\"\n \t]\n \t},\n \t\"order_by_primary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t \"Cases\":\"follow_up_datetime:asc\"\n \t},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-5", "text": "},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t \"Accounts\":\"next_renewal_date:asc\",\n \t \"Opportunities\":\"date_closed:asc\"\n \t}\n \t},\n \t\"order_by_secondary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t \"Cases\":\"\"\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t \"Accounts\":\"\",\n \t \"Opportunities\":\"\"\n \t}\n \t},\n \t\"filter_def\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-6", "text": "}\n \t},\n \t\"filter_def\":{\n \t \"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t\"Cases\":[\n \t {\n \t\"status\":{\n \t \"$not_in\":[\n \t \"Closed\",\n \t \"Rejected\",\n \t \"Duplicate\"\n \t ]\n \t}\n \t },\n \t {\n \t\"$owner\":\"\"\n \t }\n \t]\n \t },\n \t \"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t \"Accounts\":[\n \t {\n \t \"$owner\":\"\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-7", "text": "{\n \t \"$owner\":\"\"\n \t }\n \t ],\n \t \"Opportunities\":[\n \t {\n \t \"sales_status\":{\n \t \"$not_in\":[\n \t \"Closed Won\",\n \t \"Closed Lost\"\n \t ]\n \t }\n \t },\n \t {\n \t \"$owner\":\"\"\n \t }\n \t ]\n \t }\n }\n },\n \"labels\":{\n \t\"Cases\":[\n \t {\n \t\"label\":\"LBL_LIST_PRIORITY/LBL_STATUS\",\n \t\"labelValue\":\"Priority/Status\"\n \t },\n \t {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-8", "text": "},\n \t {\n \t \"label\":\"LBL_LIST_SUBJECT/LBL_SERVICE_LEVEL\",\n \t \"labelValue\":\"Subject/Service Level\"\n \t }\n \t]\n },\n \"viewdefs\":{\n \"Cases\":{\n \t\"base\":{\n \t \"view\":{\n \t \"multi-line-list\":{\n \t\"panels\":[\n \t {\n \t \"label\":\"LBL_LABEL_1\",\n \t \"fields\":[\n \t {\n \t \"name\":\"case_number\",\n \t \"label\":\"LBL_AGENT_WORKBENCH_NUMBER\",\n \t \"subfields\":[\n \t {\n \t \"default\":true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-9", "text": "{\n \t \"default\":true,\n \t \"enabled\":true,\n \t\"name\":\"case_number\",\n \t\"label\":\"LBL_AGENT_WORKBENCH_NUMBER\"\n \t }\n \t ]\n \t },\n \t {\n \t \"name\":\"Priority/Status\",\n \t \"label\":\"LBL_LIST_PRIORITY/LBL_STATUS\",\n \t \"subfields\":[\n \t {\n \t \"default\":true,\n \t \"enabled\":true,\n \t \"name\":\"priority\",\n \t \"label\":\"LBL_LIST_PRIORITY\",\n \t \"type\":\"enum\"\n \t },\n \t {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-10", "text": "},\n \t {\n \t \"default\":true,\n \t \"enabled\":true,\n \t \"name\":\"status\",\n \t \"label\":\"LBL_STATUS\",\n \t \"type\":\"case-status\",\n \t \"widget_name\":\"widget_status\"\n \t }\n \t ]\n \t },\n \t {\n \t \"name\":\"Subject/Service Level\",\n \t \"label\":\"LBL_LIST_SUBJECT/LBL_SERVICE_LEVEL\",\n \t \"subfields\":[\n \t {\n \t \"default\":true,\n \t \"enabled\":true,\n \t \"name\":\"name\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-11", "text": "\"enabled\":true,\n \t \"name\":\"name\",\n \t \"label\":\"LBL_LIST_SUBJECT\",\n \t \"link\":false\n \t },\n \t {\n \t \"default\":true,\n \t \"enabled\":true,\n \t \"name\":\"service_level\",\n \t \"label\":\"LBL_SERVICE_LEVEL\",\n \t \"type\":\"enum\",\n \t \"enum_module\":\"Accounts\",\n \t \"link\":false\n \t }\n \t ]\n \t }\n \t ]\n }\n ],\n \"collectionOptions\":{\n \t\"limit\":100,\n \t\"params\":{\n \t \"max_num\":100,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-12", "text": "\"params\":{\n \t \"max_num\":100,\n \t \"order_by\":\"follow_up_datetime\",\n \t \"nulls_last\":true\n \t}\n },\n \"filterDef\":[\n \t{\n \t \"status\":{\n \t \"$not_in\":[\n \t\"Closed\",\n \t\"Rejected\",\n \t\"Duplicate\"\n \t ]\n \t },\n \t \"$owner\":\"\"\n \t}\n ]\n \t }\n \t }\n \t}\n }\n }\n}\nResponse Arguments\nResponse\n{\n \"is_setup\":1,\n \"enabled_modules\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-13", "text": "{\n \"is_setup\":1,\n \"enabled_modules\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":[\n \t\"Cases\"\n \t],\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":[\n \t\"Accounts\",\n \t\"Opportunities\"\n \t]\n },\n \"order_by_primary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t\"Cases\":\"follow_up_datetime:asc\"\n \t},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-14", "text": "\"Cases\":\"follow_up_datetime:asc\"\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t\"Accounts\":\"next_renewal_date:asc\",\n \t\"Opportunities\":\"date_closed:asc\"\n \t}\n },\n \"order_by_secondary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t\"Cases\":\"\"\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t\"Accounts\":\"\",\n \t\"Opportunities\":\"\"\n \t}\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-15", "text": "\"Opportunities\":\"\"\n \t}\n },\n \"filter_def\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t\"Cases\":[\n \t{\n \t\"status\":{\n \t\"$not_in\":[\n \t\"Closed\",\n \t\"Rejected\",\n \t\"Duplicate\"\n \t]\n \t}\n \t},\n \t{\n \t\"$owner\":\"\"\n \t}\n \t]\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t\"Accounts\":[\n \t{\n \t\"$owner\":\"\"\n \t}\n \t],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-16", "text": "{\n \t\"$owner\":\"\"\n \t}\n \t],\n \t\"Opportunities\":[\n \t{\n \t\"sales_status\":{\n \t\"$not_in\":[\n \t\"Closed Won\",\n \t\"Closed Lost\"\n \t]\n \t}\n \t},\n \t{\n \t\"$owner\":\"\"\n \t}\n \t]\n \t}\n },\n \"defaults\":{\n \t\"is_setup\":0,\n \t\"enabled_modules\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":[\n \t\"Cases\"\n \t],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-17", "text": "\"Cases\"\n \t],\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":[\n \t\"Accounts\",\n \t\"Opportunities\"\n \t]\n \t},\n \t\"order_by_primary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t\"Cases\":\"follow_up_datetime:asc\"\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t\"Accounts\":\"next_renewal_date:asc\",\n \t\"Opportunities\":\"date_closed:asc\"\n \t}\n \t},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-18", "text": "}\n \t},\n \t\"order_by_secondary\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t\"Cases\":\"\"\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t\"Accounts\":\"\",\n \t\"Opportunities\":\"\"\n \t}\n \t},\n \t\"filter_def\":{\n \t\"c108bb4a-775a-11e9-b570-f218983a1c3e\":{\n \t\"Cases\":[\n \t{\n \t\"status\":{\n \t\"$not_in\":[\n \t\"Closed\",\n \t\"Rejected\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-19", "text": "\"Closed\",\n \t\"Rejected\",\n \t\"Duplicate\"\n \t]\n \t}\n \t},\n \t{\n \t\"$owner\":\"\"\n \t}\n \t]\n \t},\n \t\"da438c86-df5e-11e9-9801-3c15c2c53980\":{\n \t\"Accounts\":[\n \t{\n \t\"$owner\":\"\"\n \t}\n \t],\n \t\"Opportunities\":[\n \t{\n \t\"sales_status\":{\n \t\"$not_in\":[\n \t\"Closed Won\",\n \t\"Closed Lost\"\n \t]\n \t}\n \t},\n \t{\n \t\"$owner\":\"\"\n \t}\n \t]\n \t}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "9e029a20cacb-20", "text": "\"$owner\":\"\"\n \t}\n \t]\n \t}\n \t}\n }\n}\nResponse Codes and Error Messages\nThis API does not return new errors other than the ones that may be returned by its parent API - ConfigModule API. The following error responses are possible:\n403 (SugarAPIExceptionNotAuthorized) : Sent if the user attempts to access a module that they are forbidden to access.\nChange Log\nVersion\nChange\nv11.9\nAdded /ConsoleConfiguration/config POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationconfig_POST/index.html"} {"id": "f8d15829356c-0", "text": "/rssfeed GET\nOverview\n Consumes an RSS feed as a proxy and returns the feed up to a certain number of entries.\nRequest Arguments\nName\nType\nDescription\nRequired\nfeed_url\nString\nA fully qualified URL to an RSS feed.\nTrue\nlimit\nInteger\nMaximum number of entries to fetch. If not provided, the API will return up to $sugar_config['rss_feed_max_entries'] or 20 if no config option is set.\nFalse\nRequest\nhttp://{site_url}/rest/v10/rssfeed?feed_url=http%3A%2F%2Ffqd.rssfeed.url%2F&limit=10\nNote: GET endpoint parameters are passed in the form of a query string.\nResponse Arguments\nName\nType\nDescription\ntitle\nString\nThe title of the RSS Feed. This can be blank.\nlink", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/rssfeed_GET/index.html"} {"id": "f8d15829356c-1", "text": "title\nString\nThe title of the RSS Feed. This can be blank.\nlink\nString\nThe URL to the source of the RSS Feed. This can be blank.\ndescription\nString\nA description of the feed. This can be blank.\npublication_date\nTimestamp\nA timestamp of when the feed was published.\nentries\nArray\n An array of entries, each of which will contain the following values:\n title\ndescription\nlink\npublication_date\nsource\nauthor\nResponse\n{\n \"feed\":{\n \"title\":\"Sample Feed Title\",\n \"link\":\"http:\\/\\/www.samplefeed.com\\/feed-link-url.htm\",\n \"description\":\"A sample of a feed description\",\n \"publication_date\":\"Tue, 10 Aug 2014 13:38:55 -0800\",\n \"entries\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/rssfeed_GET/index.html"} {"id": "f8d15829356c-2", "text": "\"entries\":[\n {\n \"title\":\"First entry title\",\n \"description\":\"A blurb about the first entry. This will be HTML encoded on return.\",\n \"link\":\"http:\\/\\/www.samplefeed.com\\/feed-entry-1.htm\",\n \"publication_date\":\"Tue, 10 Aug 2014 13:38:55 -0800\",\n \"source\":\"Reuters\",\n \"author\":\"John Doe\"\n },\n {\n \"title\":\"Second entry title\",\n \"description\":\"A blurb about the Second entry. This will be HTML encoded on return.\",\n \"link\":\"http:\\/\\/www.samplefeed.com\\/feed-entry-2.htm\",\n \"publication_date\":\"Tue, 10 Aug 2014 13:38:55 -0800\",\n \"source\":\"BBC\",\n \"author\":\"\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/rssfeed_GET/index.html"} {"id": "f8d15829356c-3", "text": "\"source\":\"BBC\",\n \"author\":\"\"\n }\n ]\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added / GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/rssfeed_GET/index.html"} {"id": "8881afe72224-0", "text": "/ExpressionEngine/:record/related GET\nRetrieve a Forecasting Information In SugarChart Format\nSummary:\n This endpoint is used to return the json Data for SugarCharts to use to display the needed chart.\nQuery Parameters:\nParam\nDescription\nOptional\ntimeperiod_id\nShow for a specific time period\n\u00c2\u00a0\nuser_id\nShow for a specific user\n\u00c2\u00a0\ndisplay_manager\nPipeline or Committed are valid values.\n\u00c2\u00a0\ndataset\nWhich Forecast dataset to show, valid values are likely, best, worst. Defaults to likely if one is not specified\nOptional\ngroup_by\nShow Which fields the y-axis shows on the chart. Can be any field in the opportunity module, defaults to Sales Stage\nOptional\nranges\nPipeline or Committed are valid values.\nOptional\nInput Example:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_GET/index.html"} {"id": "8881afe72224-1", "text": "Pipeline or Committed are valid values.\nOptional\nInput Example:\n{\n 'user_id':'seed_max_id,\n 'timeperiod_id':'36f7085a-5889-ea75-84c8-50f42bd1a5ba',\n 'display_manager':'false',\n 'group_by': 'forecast',\n 'dataset': 'likely',\n 'ranges': 'include',\n}\n \nOutput Example:\n { \"color\" : [ \"#8c2b2b\",\n \"#468c2b\",\n \"#2b5d8c\",\n \"#cd5200\",\n \"#e6bf00\",\n \"#7f3acd\",\n \"#00a9b8\",\n \"#572323\",\n \"#004d00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_GET/index.html"} {"id": "8881afe72224-2", "text": "\"#572323\",\n \"#004d00\",\n \"#000087\",\n \"#e48d30\",\n \"#9fba09\",\n \"#560066\",\n \"#009f92\",\n \"#b36262\",\n \"#38795c\",\n \"#3D3D99\",\n \"#99623d\",\n \"#998a3d\",\n \"#994e78\",\n \"#3d6899\",\n \"#CC0000\",\n \"#00CC00\",\n \"#0000CC\",\n \"#cc5200\",\n \"#ccaa00\",\n \"#6600cc\",\n \"#005fcc\"\n ],\n \"label\" : [ \"Include\" ],\n \"properties\" : [ { \"gauge_target_list\" : \"Array\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_GET/index.html"} {"id": "8881afe72224-3", "text": "\"goal_marker_color\" : [ \"#000000\",\n \"#7D12B2\"\n ],\n \"goal_marker_label\" : [ \"Quota\",\n \"Likely Case\"\n ],\n \"goal_marker_type\" : [ \"group\",\n \"pareto\"\n ],\n \"label_name\" : \"Include in Forecast\",\n \"labels\" : \"value\",\n \"legend\" : \"on\",\n \"print\" : \"on\",\n \"subtitle\" : \"\",\n \"thousands\" : \"\",\n \"title\" : null,\n \"type\" : \"bar chart\",\n \"value_name\" : \"Likely Case\"\n } ],\n \"values\" : [ { \"goalmarkervalue\" : [ \"111000.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_GET/index.html"} {"id": "8881afe72224-4", "text": "\"36000.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$36,000.00\"\n ],\n \"gvalue\" : 36000,\n \"gvaluelabel\" : \"$36,000.00\",\n \"label\" : \"January 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$36,000.00\" ],\n \"values\" : [ 36000 ]\n },\n { \"goalmarkervalue\" : [ \"111000.00\",\n \"61500.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$61,500.00\"\n ],\n \"gvalue\" : 25500,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_GET/index.html"} {"id": "8881afe72224-5", "text": "],\n \"gvalue\" : 25500,\n \"gvaluelabel\" : \"$25,500.00\",\n \"label\" : \"February 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$25,500.00\" ],\n \"values\" : [ 25500 ]\n },\n { \"goalmarkervalue\" : [ \"111000.00\",\n \"61500.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$61,500.00\"\n ],\n \"gvalue\" : 0,\n \"gvaluelabel\" : \"$0.00\",\n \"label\" : \"March 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$0.00\" ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_GET/index.html"} {"id": "8881afe72224-6", "text": "\"valuelabels\" : [ \"$0.00\" ],\n \"values\" : [ 0 ]\n }\n ]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_GET/index.html"} {"id": "7b7b52a20b20-0", "text": "/me/preference/:preference_name DELETE\nOverview\n Deletes a specific preference for the current user.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \u00c2\u00a0\n \n \u00c2\u00a0\n \n \u00c2\u00a0\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me/preference/:preference_name DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/mepreferencepreference_name_DELETE/index.html"} {"id": "e7bc2616d11e-0", "text": "/pmse_Project/:record/dproject GET\nOverview\n Exports a .bpm file with a Process Definition\nSummary\n This endpoint will retrieve a .bpm file containing JSON encoded data of a\n Process Definition identified by the record input parameter.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe Process Definition record ID\nTrue\nResponse Arguments\nName\nType\nDescription\nN/A\nResponse\nNote: The response is a MIME type application/bpm file attachment without any response parameters.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectrecorddproject_GET/index.html"} {"id": "47836fa70692-0", "text": "/pmse_Inbox/getLog GET\nOverview\n Return the text of the PMSE.log file \nSummary\n This endpoint gets the contents of the PMSE.log file \nRequest Arguments\nThere are no request arguments for this endpoint\nResponse Arguments\nName\nType\nDescription\nnone\nstring\nLog Entries from PMSE.log\nResponse\n\"Test Log Entry1\\nTest Log Entry2\\n\"\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxgetLog_GET/index.html"} {"id": "a3771e94ee96-0", "text": "/ForecastWorksheets/:timeperiod_id GET\nReturns a collection of ForecastWorksheet models\nSummary:\nThis end point is used to return the Worksheets for a user at a given timeperiod. If no timeperiod is provide it\n will use the default timeperiod, likewise if no user is provided, it will default to the logged in user.\nAlso this end points use the visibility requirements set forth by the application, that if the records being requested\n belong to you, you will get the draft version, If the worksheet is not yours, you will only see the committed version.\nUrl Parameters:\nParam\nDescription\nOptional\ntimeperiod_id\nShow for a specific time period, defaults to the current time period if one is not passed\nOptional\nuser_id\nShow for a specific user, defaults to current user if not defined\nOptional\nQuery Parameters:\nParam\nDescription\nOptional\ntype", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastWorksheetstimeperiod_id_GET/index.html"} {"id": "a3771e94ee96-1", "text": "Optional\nQuery Parameters:\nParam\nDescription\nOptional\ntype\nWhich type to return, currently the ones that are supported are, opportunity and product\nOptional\nPossible Errors\nError\nDescription\n412 - Invalid Parameter\nWhen the passed in timeperiod and/or user can not be found\n403 - Not Authorized\nIf you are not a manager, but you are tyring to view another sales rep forecast worksheet, you will receive a 403 Not Authorized Error\nUrl Example:\n /rest/v10/ForecastWorksheets/:timeperiod_id/:user_id\n \nOutput Example:\n { \"next_offset\": -1,\n \"records\": [\n {\n \"id\": \"ad3908c7-83a3-f360-c223-51117844c208\",\n \"name\": \"Grow-Fast Inc - 1000 units\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastWorksheetstimeperiod_id_GET/index.html"} {"id": "a3771e94ee96-2", "text": "\"name\": \"Grow-Fast Inc - 1000 units\",\n \"date_entered\": \"2013-02-05T21:22:00+00:00\",\n \"date_modified\": \"2013-02-05T21:22:00+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"img\": \"\",\n \"deleted\": \"0\",\n \"assigned_user_id\": \"seed_jim_id\",\n \"assigned_user_name\": \"Jim Brennan\",\n \"team_name\": [\n {\n \"id\": \"East\",\n \"name\": \"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastWorksheetstimeperiod_id_GET/index.html"} {"id": "a3771e94ee96-3", "text": "{\n \"id\": \"East\",\n \"name\": \"East\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"parent_id\": \"50b90565-e748-ed77-d9d7-511178f5acae\",\n \"parent_type\": \"Opportunities\",\n \"account_name\": \"\",\n \"account_id\": \"\",\n \"likely_case\": \"75000\",\n \"best_case\": \"75000\",\n \"worst_case\": \"75000\",\n \"base_rate\": \"1\",\n \"currency_id\": \"-99\",\n \"currency_name\": \"\",\n \"currency_symbol\": \"\",\n \"date_closed\": \"2013-02-10\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastWorksheetstimeperiod_id_GET/index.html"} {"id": "a3771e94ee96-4", "text": "\"date_closed\": \"2013-02-10\",\n \"date_closed_timestamp\": \"1360531443\",\n \"sales_stage\": \"Perception Analysis\",\n \"probability\": \"70\",\n \"commit_stage\": \"include\",\n \"draft\": \"1\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n }\n }]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastWorksheetstimeperiod_id_GET/index.html"} {"id": "7331baaf0a51-0", "text": "/RevenueLineItems/multi-quote POST\nConvert Multiple Revenue Line Item to a quote.\nSummary:\n This endpoint is used to convert multiple Revenue Line Items to a single quote\nQuery Parameters:\nParam\nDescription\nOptional\nValid Urls:\nPOST: /rest/v10/RevenueLineItems/multi-quote\nInput Example:\n {\n records : [\n 'id_1',\n 'id_2',\n ]\n opportunity_id:\"123-456-789-0\",\n account_id:\"12-3-4-5\"\n }\n \nOutput Example:\n {\n id:\"123-456-789-0\",\n name:\"My Test Quote\"\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/RevenueLineItemsmulti-quote_POST/index.html"} {"id": "8ac95d3387e5-0", "text": "/Documents/:record/file/:field PUT\nOverview\n This endpoint takes a file or image and saves it to a record that already contains an attachment in the specified field. The PUT method is very similar to the POST method but differs slightly in how the request is constructed. PUT requests should send the file data as the body of the request. Optionally, a filename query parameter can be sent with the request to assign a name. Additionally, the PUT \n method can accept base64 encoded file data which will be decoded by the endpoint\n if the content_transfer_encoding parameter is set to 'base64'.NOTE: In lieu of the content_transfer_encoding parameter, a\n request header of X-Content-Transfer-Encoding can also be sent with a value\n of 'base64'. In the event both the content transfer encoding header and request\n parameter are sent, the header will be used.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_PUT/index.html"} {"id": "8ac95d3387e5-1", "text": "parameter are sent, the header will be used.\nRequest Arguments\nName\nType\nDescription\nRequired\n filename\n \n String\n \n Filename to save the document as\n \n False\n \n content_transfer_encoding\n \n String\n \n When set to 'base64', indicates the file contents are base64 encoded\n and will result in the file contents being base64 decoded before being\n saved\n \n False\n \nRequest\nPUT /rest/v10/Notes/abcd-1234/file/field/ HTTP/1.1 Host: localhost Connection: keep-alive Content-Length: 23456 Content-Type: application/document-doc ...This is where the bin data would be\nResponse Arguments\nName\nType\nDescription\n field\n \n Array\n \n The fields containing file properties.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_PUT/index.html"} {"id": "8ac95d3387e5-2", "text": "field\n \n Array\n \n The fields containing file properties.\n \n field.content-type\n \n String\n \n The files content type.\n \n field.content-length\n \n Integer\n \n The files content length.\n \n field.name\n \n String\n \n The files name.\n \n field.width\n \n Integer\n \n The width of the image.\n \n field.height\n \n Integer\n \n The height of the image.\n \n field.uri\n \n String\n \n The URI of the file.\n \nResponse\n{\n \"picture\":{\n \"content-type\":\"image\\/png\",\n \"content-length\":72512,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_PUT/index.html"} {"id": "8ac95d3387e5-3", "text": "\"content-length\":72512,\n \"name\":\"1a7b8f5c-b11c-0094-c8d8-512e9daaa983\",\n \"width\":933,\n \"height\":519,\n \"uri\":\"http:\\/\\/sugarcrm\\/rest\\/v10\\/Contacts\\/fa300a0e-0ad1-b322-9601-512d0983c19a\\/file\\/picture\"\n }\n \"attachment\":{\n \"content-type\":\"application/document-doc\",\n \"content-length\":\"873921\",\n \"name\":\"myFile.doc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_PUT/index.html"} {"id": "8ac95d3387e5-4", "text": "\"name\":\"myFile.doc\",\n \"uri\": \"http:\\/\\/sugarcrm\\/rest\\/v10\\/Contacts\\/f2f9aa4d-99a8-e86e-f4d5-512d0986effa\\/file\\/attachment\"\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/file/:field PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Documentsrecordfilefield_PUT/index.html"} {"id": "a5e2db94006d-0", "text": "/Administration/packages/:id/disable GET\nOverview\n[ADMIN] PackageManager disable a package.\nSummary\nDisable the specified package. Package id hash must be provided. Package id could be found in installed package list.\nResponse\nReturns http status 200 OK and disabled package ID if request is successful.\n{\n\"id\": \"56365210-4cce-11ea-a7bf-acde48001122\"\n}\nOtherwise returns http status 4xx with errors.\n{\n\"error\": \"not_found\",\n\"error_message\": \"Could not find package by ID.\"\n}\nChange Log\nVersion\nChange\nv11.8\nAdded /Administration/packages/:id/disable\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackagesiddisable_GET/index.html"} {"id": "3f49179a8789-0", "text": "/Administration/elasticsearch/refresh/enable POST\nOverview\n [ADMIN] Elasticsearch enable refresh_interval\nSummary\n Enable refresh_interval for all indices managed by SugarCRM. This endpoint is only\n available to administrators.\nResponse\n{\n \"aabbcc_contactsleads\": 200,\n \"aabbcc_accountsonly\": 200,\n \"aabbcc_shared\": 200\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/refresh/enable POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchrefreshenable_POST/index.html"} {"id": "f18a248ad5e1-0", "text": "//:record/link/:link_name/filter/count GET\nOverview\n Lists related filtered records.\nSummary\n This endpoint will return a set of related records filtered by an expression. The filter can be applied to multiple\n fields and have multiple and/or conditions in it. Care will need to be taken to make sure this filter has\n appropriate indexes on the server side otherwise the runtime of the endpoint will be very long. Related fields can\n be searched by specifying the field name as: \"link_name.remote_field\", so if you wished to search the Accounts\n module by a related member account you would use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-1", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned. This argument\n can be combined with the view argument.\n \n Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-2", "text": "in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-3", "text": "would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-4", "text": "$contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-5", "text": "Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-6", "text": "}\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\n Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-7", "text": "Array\n \n An array of results containing matched records.\n \nRepsonse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-8", "text": "\"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-9", "text": "\"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-10", "text": "\"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-11", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-12", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-13", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-14", "text": "\"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-15", "text": "\"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-16", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-17", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-18", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "f18a248ad5e1-19", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_namefiltercount_GET/index.html"} {"id": "6c5e02a065c4-0", "text": "/Activities/filter GET\nActivities on the home page\nSummary:\n This endpoint lists activities across the entire sytstem. It uses a subscription model, and can be queried like a normal bean collection, but without search, ordering or filtering.\nQuery Parameters:\nParamDescriptionOptionalmax_numA maximum number of records to returnOptionaloffsetHow many records to skip over before records are returnedOptional\nInput Example:\nThis endpoint does not accept any input\nOutput Example:\n{\n \"next_offset\": 20, This will be set to -1 when there are no more records after this \"page\".\n \"records\": [{\n \"id\": \"22fb8b16-de1d-f1dc-b15b-51240efde177\",\n \"date_entered\": \"2013-02-19T23:47:11+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Activitiesfilter_GET/index.html"} {"id": "6c5e02a065c4-1", "text": "\"date_modified\": \"2013-02-19T23:47:11+00:00\",\n \"created_by\": \"1\",\n \"deleted\": \"0\",\n \"parent_id\": \"f5bb0331-2c0f-5c7c-b4db-5123caac0056\",\n \"parent_type\": \"Contacts\",\n \"activity_type\": \"post\", This will be the type of activity performed.\n \"data\": {\n \"value\": \"This is a test post on a contact I'm subscribed to.\"\n },\n \"comment_count\": 0, This will be set to the total number of comments on the post.\n \"last_comment\": { This will be the last comment on the post, which can be used to create a comment model on the frontend.\n \"deleted\": 0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Activitiesfilter_GET/index.html"} {"id": "6c5e02a065c4-2", "text": "\"deleted\": 0,\n \"data\": []\n },\n \"fields\": [],\n \"first_name\": null,\n \"last_name\": \"Administrator\",\n \"created_by_name\": \" Administrator\" This will be the locale-formatted full name of the user.\n }, ... ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Activitiesfilter_GET/index.html"} {"id": "e7a11cf48097-0", "text": "/help/exceptions GET\nOverview\n Fetches the documentation on which exceptions are thrown by the API, their \n HTTP codes, their default messages and a brief description of what the exception\n means.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n String\n \n Returns the html of the help doc\n \nResponse\n The HTML document of the exception help page.\nChange Log\nVersion\nChange\n v10\n \n Added /help/exceptions GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/helpexceptions_GET/index.html"} {"id": "dc6dce96fce0-0", "text": "/Administration/aws GET\nOverview\n[ADMIN] Gets Amazon Web Services configs from Sugar Serve.\nSummary\nThis endpoint gets configuration values for Amazon Web Services. This endpoint is only available to administrators of Sugar Serve.\nRequest Arguments\nThis endpoint does not accept any arguments.\nResponse\n{\n \"aws_connect_instance_name\": \"my-aws-instance\",\n \"aws_connect_region\": \"us-east-2\"\n}\nChange Log\nVersion\nChange\nv11_10\nAdded /Administration/aws\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationaws_GET/index.html"} {"id": "b88f908754ab-0", "text": "/pmse_Inbox/filter GET\nOverview\n Returns a list of Processes by user \nSummary\n This endpoint gets a list of processes by user \nRequest Arguments\nName\nType\nDescription\nRequired\norder_by\nstring\nHow to sort the returned records, in a comma delimited list with the direction appended to the column name after a colon.\nfalse\nq\nstring\nA search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\nfalse\nfilter\nstring\nThe filter expression\nfalse\nfilter_id\nstring\nIdentifier for a preexisting filter. If filter is also set, the two filters are joined with an AND\nfalse\nmax_num\ninteger\nA maximum number of records to return. Default is 20.\nfalse\noffset\ninteger\nThe number of records to skip over before records are returned. Default is 0.\nfalse", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxfilter_GET/index.html"} {"id": "b88f908754ab-1", "text": "The number of records to skip over before records are returned. Default is 0.\nfalse\nfields\nstring\nComma delimited list of fields to return\nfalse\ndeleted\nboolean\nBoolean to show deleted records in the result set.\nfalse\nResponse Arguments\nName\nType\nDescription\nrecords\n:\nProcess records\nnext_offset\ninteger\nNext offset for results\nResponse\n{\n \"next_offset\":-1,\n \"records\":\n [\n {\n \"id\":\"839ccd22-2925-11e6-83f3-6c4008960436\",\n \"date_modified\":\"2016-06-02T17:52:55-07:00\",\n \"created_by\":\"1\",\n \"cas_finish_date\":\"\",\n \"assigned_user_id\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxfilter_GET/index.html"} {"id": "b88f908754ab-2", "text": "\"assigned_user_id\":\"1\",\n \"assigned_user_name\":\"Administrator\",\n \"assigned_user_link\":\n {\n \"full_name\":\"Administrator\",\n \"id\":\"1\",\n \"_acl\":\n {\n \"fields\":\n {\n \"pwd_last_changed\":\n {\n \"write\":\"no\",\n \"create\":\"no\"\n },\n \"last_login\":\n {\n \"write\":\"no\",\n \"create\":\"no\"\n }\n },\n \"delete\":\"no\",\n \"_hash\":\"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"_acl\":\n {\n \"fields\":{}\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxfilter_GET/index.html"} {"id": "b88f908754ab-3", "text": "\"_acl\":\n {\n \"fields\":{}\n },\n \"_module\":\"pmse_Project\\/pmse_BpmFlow\",\n \"_locked_fields\":[],\n \"cas_id\":\"4\",\n \"act_assignment_method\":\"static\",\n \"cas_title\":\"PQR1\",\n \"pro_title\":\"PD1\",\n \"date_entered\":\"2016-06-02T17:52:55-07:00\",\n \"name\":\"PQR1\",\n \"cas_create_date\":\"2016-06-02T17:52:55-07:00\",\n \"flow_id\":\"839ccd22-2925-11e6-83f3-6c4008960436\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxfilter_GET/index.html"} {"id": "b88f908754ab-4", "text": "\"id2\":\"8380e512-2925-11e6-9600-6c4008960436\",\n \"task_name\":\"Activity # 1\",\n \"cas_assignment_method\":\"static\",\n \"cas_sugar_module\":\"Accounts\",\n \"cas_sugar_object_id\":\"82d5c470-2925-11e6-a269-6c4008960436\",\n \"prj_id\":\"6e025038-2842-11e6-b4f7-6c4008960436\",\n \"in_time\":true,\n \"cas_user_id\":\"1\",\n \"prj_created_by\":\"1\",\n \"cas_user_id_full_name\":\"Administrator\",\n \"prj_user_id_full_name\":\"Administrator\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxfilter_GET/index.html"} {"id": "b88f908754ab-5", "text": "\"prj_user_id_full_name\":\"Administrator\"\n },\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxfilter_GET/index.html"} {"id": "014041c40b2f-0", "text": "//append/:target POST\nOverview\n Append new node to target node as last child.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n target\n \n String\n \n The ID of record that will be used as target to append new node\n \n True\n \nRequest\n{\n \"name\" : \"Children Node 1\"\n}\nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\nThis endpoint returns a newly created bean\n {\n \"my_favorite\":false,\n \"following\":\"\",\n \"id\":\"59fa8dd7-0f2c-4bfd-364f-54495f77fa3f\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleappendtarget_POST/index.html"} {"id": "014041c40b2f-1", "text": "\"name\":\"Default title\",\n \"date_entered\":\"2014-10-23T23:03:22+03:00\",\n \"date_modified\":\"2014-10-23T23:03:22+03:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"doc_owner\":\"\",\n \"description\":\"\",\n \"deleted\":false,\n \"source_id\":\"\",\n \"source_type\":\"\",\n \"source_meta\":\"\",\n \"root\":\"be9b0c4a-8b78-1ffa-4f14-54481c2f6269\",\n \"lft\":118,\n \"rgt\":119,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleappendtarget_POST/index.html"} {"id": "014041c40b2f-2", "text": "\"lft\":118,\n \"rgt\":119,\n \"level\":1,\n \"_acl\":{\"fields\":{}},\n \"_module\":\"Categories\"\n }\nChange Log\nVersion\nChange\n v10\n \n Added //append/:target POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleappendtarget_POST/index.html"} {"id": "205ede9ec516-0", "text": "/Administration/elasticsearch/indices GET\nOverview\n [ADMIN] Elasticsearch index statistics\nSummary\n This endpoint returns the index statistics for the Elasticsearch backend. This endpoint is only available to\n administrators.\nResponse\n{\n \"autobr2583_shared\":{\n \"_shards\":{\n \"total\":1,\n \"successful\":1,\n \"failed\":0\n },\n \"indices\":{\n \"autobr2583_shared\":{\n \"index\":{\n \"primary_size_in_bytes\":1134148,\n \"size_in_bytes\":1134148\n },\n \"translog\":{\n \"operations\":1100\n },\n \"docs\":{\n \"num_docs\":1100,\n \"max_doc\":1100,\n \"deleted_docs\":0", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchindices_GET/index.html"} {"id": "205ede9ec516-1", "text": "\"max_doc\":1100,\n \"deleted_docs\":0\n },\n \"merges\":{\n \"current\":0,\n \"current_docs\":0,\n \"current_size_in_bytes\":0,\n \"total\":1,\n \"total_time_in_millis\":103,\n \"total_docs\":1000,\n \"total_size_in_bytes\":1138070\n },\n \"refresh\":{\n \"total\":13,\n \"total_time_in_millis\":177\n },\n \"flush\":{\n \"total\":0,\n \"total_time_in_millis\":0\n },\n \"shards\":[[{\n \"routing\":{\n \"state\":\"STARTED\",\n \"primary\":true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchindices_GET/index.html"} {"id": "205ede9ec516-2", "text": "\"state\":\"STARTED\",\n \"primary\":true,\n \"node\":\"4rjVEVuYQQqKl4sT1FUxNA\",\n \"relocating_node\":null,\n \"shard\":0,\n \"index\":\"autobr2583_shared\"\n },\n \"state\":\"STARTED\",\n \"index\":{\n \"size_in_bytes\":1134148\n },\n \"translog\":{\n \"id\":1427003304006,\n \"operations\":1100\n },\n \"docs\":{\n \"num_docs\":1100,\n \"max_doc\":1100,\n \"deleted_docs\":0\n },\n \"merges\":{\n \"current\":0,\n \"current_docs\":0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchindices_GET/index.html"} {"id": "205ede9ec516-3", "text": "\"current\":0,\n \"current_docs\":0,\n \"current_size_in_bytes\":0,\n \"total\":1,\n \"total_time_in_millis\":103,\n \"total_docs\":1000,\n \"total_size_in_bytes\":1138070\n },\n \"refresh\":{\n \"total\":13,\n \"total_time_in_millis\":177\n },\n \"flush\":{\n \"total\":0,\n \"total_time_in_millis\":0\n }\n }]]\n }\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/indices GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchindices_GET/index.html"} {"id": "f80c55768d32-0", "text": "/ POST\nOverview\n Create a new record of a specified type.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"Example Account\",\n \"account_type\":\"Customer\",\n \"description\":\"My Example Account\",\n \"meetings\": {\n {\n \"add\": [\"21e3385e-404f-b470-407e-54044e3d8023\"],\n \"create\": [\n {\n \"name\": \"Test Meeting\"\n }\n ]\n }\n }\n}\nLink fields\n It is possible to add record relations to other records and create new related records.\nAction\nType\nDescription\nadd\n List", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_POST/index.html"} {"id": "f80c55768d32-1", "text": "Action\nType\nDescription\nadd\n List\n \n List of related records ID. See RelateRecordApi\n for details.\n \ncreate\n List\n \n List of name to value arrays of related records.\n \nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the newly created record.\n \nResponse\n{\n \"id\":\"e91b1fa7-1bd8-3c71-be96-512e643f9ca4\",\n \"name\":\"Example Account\",\n \"date_entered\":\"2013-02-27T19:56:00+00:00\",\n \"date_modified\":\"2013-02-27T19:56:00+00:00\",\n \"modified_user_id\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_POST/index.html"} {"id": "f80c55768d32-2", "text": "\"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"My Example Account\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"\",\n \"assigned_user_name\":\"\",\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_POST/index.html"} {"id": "f80c55768d32-3", "text": "\"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"\",\n \"billing_address_state\":\"\",\n \"billing_address_postalcode\":\"\",\n \"billing_address_country\":\"\",\n \"rating\":\"\",\n \"phone_office\":\"\",\n \"phone_alternate\":\"\",\n \"website\":\"\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"\",\n \"shipping_address_street_2\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_POST/index.html"} {"id": "f80c55768d32-4", "text": "\"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"\",\n \"shipping_address_state\":\"\",\n \"shipping_address_postalcode\":\"\",\n \"shipping_address_country\":\"\",\n \"email1\":\"\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":\"\",\n \"invalid_email\":\"\",\n \"email\":[\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n}\nChange Log\nVersion\nChange", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_POST/index.html"} {"id": "f80c55768d32-5", "text": "}\n }\n}\nChange Log\nVersion\nChange\n v10 (7.6.0)\n \n Added support for link fields.\n \n v10\n \n Added / POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/module_POST/index.html"} {"id": "5d46a28343cb-0", "text": "//Activities GET\nActivities on a module's list view\nSummary:\n This endpoint lists activities across a particular module in the system. It uses a subscription model, and can be queried like a normal bean collection, but without search, ordering or filtering.\nQuery Parameters:\nParamDescriptionOptionalmax_numA maximum number of records to returnOptionaloffsetHow many records to skip over before records are returnedOptional\nInput Example:\nThis endpoint does not accept any input\nOutput Example:\n{\n \"next_offset\": 20, This will be set to -1 when there are no more records after this \"page\".\n \"records\": [{\n \"id\": \"22fb8b16-de1d-f1dc-b15b-51240efde177\",\n \"date_entered\": \"2013-02-19T23:47:11+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleActivities_GET/index.html"} {"id": "5d46a28343cb-1", "text": "\"date_modified\": \"2013-02-19T23:47:11+00:00\",\n \"created_by\": \"1\",\n \"deleted\": \"0\",\n \"parent_id\": \"f5bb0331-2c0f-5c7c-b4db-5123caac0056\",\n \"parent_type\": \"Contacts\",\n \"activity_type\": \"post\", This will be the type of activity performed.\n \"data\": {\n \"value\": \"This is a test post on a contact I'm subscribed to.\"\n },\n \"comment_count\": 0, This will be set to the total number of comments on the post.\n \"last_comment\": { This will be the last comment on the post, which can be used to create a comment model on the frontend.\n \"deleted\": 0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleActivities_GET/index.html"} {"id": "5d46a28343cb-2", "text": "\"deleted\": 0,\n \"data\": []\n },\n \"fields\": [],\n \"first_name\": null,\n \"last_name\": \"Administrator\",\n \"created_by_name\": \" Administrator\" This will be the locale-formatted full name of the user.\n }, ... ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleActivities_GET/index.html"} {"id": "4e30aaa863b6-0", "text": "/Administration/elasticsearch/replicas/status GET\nOverview\n [ADMIN] Elasticsearch index replica status\nSummary\n This endpoint returns the number of replicas for every index managed by SugarCRM. This endpoint is only\n available to administrators.\nResponse\n{\n \"aabbcc_contactsleads\": \"4\",\n \"aabbcc_accountsonly\": \"2\",\n \"aabbcc_shared\": \"1\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/replicas/status GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchreplicasstatus_GET/index.html"} {"id": "ca3cee881efe-0", "text": "/Administration/portalmodules GET\nOverview\n[ADMIN] Gets an array of modules currently enabled for Sugar Portal.\nSummary\nThis endpoint gets an array of modules currently enabled for Sugar Portal. This endpoint is only available to administrators.\nRequest Arguments\nThis endpoint does not accept any arguments.\nResponse Example\n[\n 'Home',\n 'Bugs',\n 'Cases',\n 'KBContents',\n]\nChange Log\nVersion\nChange\nv11.13\nAdded\u00c2\u00a0Administration/portalmodules\u00c2\u00a0GET endpoint\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/AdministrationportalmodulesGET/index.html"} {"id": "80124cdd7193-0", "text": "/Reports/:record/record_count GET\nOverview\n An API to get total number of filtered records from a saved report.\nSummary\n This endpoint will return total number of records from a saved report filtered by an expression.\nRequest Arguments\nName\nType\nDescription\nRequired\n group_filters\n \n String\n \n The group filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: group_filters[0][name]=value.\n \n By specifying the whole filter as a single JSON-encoded string.\n Example: group_filters=[{\"name\":\"value\"}].\n \n Example: group_filters[0][industry]=Engineering.\n \n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordrecord_count_GET/index.html"} {"id": "80124cdd7193-1", "text": "False\n \n use_saved_filters\n \n Boolean\n \n Flag to indicate whether or not to apply saved runtime filters if exists. The default value is false.\n Example: use_saved_filters=true.\n \n False\n \nRequest Example\nGET /rest/v10/Reports/:id/record_count?group_filters[0][industry]=Engineering\nResponse Arguments\nName\nType\nDescription\n record_count\n \n Integer\n \n Total number of filtered records.\n \nResponse\n{\n \"record_count\": 5\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordrecord_count_GET/index.html"} {"id": "d49cc1169547-0", "text": "/Emails POST\nOverview\n Create a new Emails record.\nSummary\n Used for creating an archived email, creating a draft to send later, or creating and sending an email.\nCreating an Archived Email\nRequest Arguments\nName\nType\nDescription\nRequired\n state\n \n String\n \n Use \"Archived\" to create an archived email. \"Archived\" is the default value if this argument is not\n provided.\n \n False\n \n name\n \n String\n \n The email's subject.\n \n False\n \n description_html\n \n String\n \n The email's HTML body.\n \n False\n \n description\n \n String\n \n The email's plain text body. This field is not necessary unless the text body is different from the HTML\n body.\n \n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-1", "text": "body.\n \n False\n \n raw_source\n \n String\n \n The complete raw source of the email showing the headers and content in one document.\n \n False\n \n date_sent\n \n String\n \n The date that the email was sent/received.\n \n False\n \n message_id\n \n String\n \n The email's unique identifier.\n \n False\n \n message_uid\n \n String\n \n Only use this field for importing emails downloaded from an IMAP server, as this is the email's IMAP\n UID.\n \n False\n \n assigned_user_id\n \n String\n \n The assigned user's ID.\n \n False\n \n parent_type\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-2", "text": "False\n \n parent_type\n \n String\n \n The parent record's module.\n \n False\n \n parent_id\n \n String\n \n The parent record's ID.\n \n False\n \n team_name\n \n List\n \n List of teams that can access the email.\n \n False\n \n from\n \n Object\n \n The email's sender. Existing EmailParticipants records cannot be used; only the create action is\n supported. Metadata about the sender is required to link the record.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the sender.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-3", "text": "for the sender.\n \nemail_address_id is the ID of the email address the sender used to send the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n True\n \n to\n \n Object\n \n The email's recipients found in the TO field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-4", "text": "for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n cc\n \n Object\n \n The email's recipients found in the CC field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-5", "text": "for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n bcc\n \n Object\n \n The email's recipients found in the BCC field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-6", "text": "for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n attachments\n \n Object\n \n The email's attachments. Existing Notes records cannot be used as email attachments; only the\n create action is supported. Metadata about each attachment is required to link the records.\n \nfilename_guid is the temporary file ID for an uploaded file to attach as a Notes record.\n \nupload_id is the ID of an existing file that the Notes record should reference as the\n attachment. This allows files to be shared by multiple Notes records, to preserve space.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-7", "text": "When using upload_id, file_source should be provided to indicate from where the\n file originated. The value should be the module of the record that shares its ID with the file.\n So when an attachment comes from an email template, file_source should be\n EmailTemplates. And when an attachment comes from a document, file_source should\n be DocumentRevisions.\n \n False\n \nRequest\n{\n \"state\": \"Archived\",\n \"name\": \"Re: Discuss Proposal\",\n \"description\": \"Now is a good time\",\n \"description_html\": \"

Now is a good time

\",\n \"date_sent\": \"2012-02-17T06:53:00-08:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-8", "text": "\"message_id\": \"\",\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\",\n \"team_name\": [{\n \"id\": \"1\",\n \"display_name\": \"Global\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],\n \"from\": {\n \"create\": [{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-9", "text": "}],\n \"from\": {\n \"create\": [{\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"\n }]\n },\n \"to\": {\n \"create\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\"\n }]\n },\n \"cc\": {\n \"create\": [{\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"79b9c194-7d79-11e7-8fc5-3c15c2d582c6\"\n }, {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-10", "text": "}, {\n \"parent_type\": \"Users\",\n \"parent_id\": \"79c2e800-7d79-11e7-84af-3c15c2d582c6\"\n \"email_address_id\": \"79cc341e-7d79-11e7-8748-3c15c2d582c6\"\n }]\n },\n \"bcc\": {\n \"create\": [{\n \"email_address_id\": \"ac804842-7d78-11e7-a809-3c15c2d582c6\"\n }]\n },\n \"attachments\": {\n \"create\": [{\n \"filename_guid\": \"afe9702e-53a3-0efb-6bbe-56c3580885ef\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-11", "text": "\"name\": \"Quote.pdf\",\n \"filename\": \"Quote.pdf\"\n }]\n }\n}\nResponse\n{\n \"id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"date_entered\": \"2016-02-25T11:53:07-08:00\",\n \"created_by\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"created_by_name\": \"Sarah Smith\",\n \"date_modified\": \"2016-02-25T11:53:07-08:00\",\n \"modified_by_name\": \"Sarah Smith\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-12", "text": "\"modified_by_name\": \"Sarah Smith\",\n \"modified_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"deleted\": false,\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"state\": \"Archived\",\n \"name\": \"Re: Discuss Proposal\",\n \"description\": \"Now is a good time\",\n \"description_html\": \"

Now is a good time

\",\n \"date_sent\": \"2012-02-17T06:53:00-08:00\",\n \"message_id\": \"\",\n \"message_uid\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-13", "text": "\"message_id\": \"\",\n \"message_uid\": \"\",\n \"reply_to_status\": false,\n \"total_attachments\": 1,\n \"parent_name\": \"Tom Davis\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"\n \"team_count\": \"\",\n \"team_name\": [{\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Emails\"\n}\nCreating a Draft\nRequest Arguments", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-14", "text": "\"_module\": \"Emails\"\n}\nCreating a Draft\nRequest Arguments\nName\nType\nDescription\nRequired\n state\n \n String\n \n Use \"Draft\" to save a draft.\n \n True\n \n outbound_email_id\n \n String\n \n The ID of the chosen SMTP configuration for sending an email. Only use this field when saving a draft\n or sending an email. The user's default SMTP configuration is used if one hasn't been chosen prior to\n sending.\n \n False\n \n name\n \n String\n \n The email's subject.\n \n False\n \n description_html\n \n String\n \n The email's HTML body.\n \n False\n \n description\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-15", "text": "False\n \n description\n \n String\n \n The email's plain text body. This field is not necessary unless the text body is different from the HTML\n body.\n \n False\n \n reply_to_id\n \n String\n \n Only use this field when saving a draft or sending an email that is a reply to another email. This is\n the ID of that other email.\n \n False\n \n parent_type\n \n String\n \n The parent record's module.\n \n False\n \n parent_id\n \n String\n \n The parent record's ID.\n \n False\n \n to\n \n Object\n \n The email's recipients found in the TO field. Existing EmailParticipants records cannot be used; only", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-16", "text": "the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n cc\n \n Object\n \n The email's recipients found in the CC field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-17", "text": "the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n bcc\n \n Object\n \n The email's recipients found in the BCC field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-18", "text": "the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n attachments\n \n Object\n \n The email's attachments. Existing Notes records cannot be used as email attachments; only the\n create action is supported. Metadata about each attachment is required to link the records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-19", "text": "filename_guid is the temporary file ID for an uploaded file to attach as a Notes record.\n \nupload_id is the ID of an existing file that the Notes record should reference as the\n attachment. This allows files to be shared by multiple Notes records, to preserve space.\n \n When using upload_id, file_source should be provided to indicate from where the\n file originated. The value should be the module of the record that shares its ID with the file.\n So when an attachment comes from an email template, file_source should be\n EmailTemplates. And when an attachment comes from a document, file_source should\n be DocumentRevisions.\n \n False\n \nRequest\n{\n \"state\": \"Draft\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-20", "text": "False\n \nRequest\n{\n \"state\": \"Draft\",\n \"outbound_email_id\": \"b80adf1a-7d78-11e7-855a-3c15c2d582c6\",\n \"name\": \"Re: Discuss Proposal\",\n \"description_html\": \"

Calling you now.

\",\n \"reply_to_id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\",\n \"to\": {\n \"create\": [{\n \"parent_type\": \"Leads\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-21", "text": "\"create\": [{\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"\n }]\n },\n \"cc\": {\n \"create\": [{\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"79b9c194-7d79-11e7-8fc5-3c15c2d582c6\"\n }, {\n \"parent_type\": \"Users\",\n \"parent_id\": \"79c2e800-7d79-11e7-84af-3c15c2d582c6\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-22", "text": "\"email_address_id\": \"79cc341e-7d79-11e7-8748-3c15c2d582c6\"\n }]\n },\n \"bcc\": {\n \"create\": [{\n \"email_address_id\": \"ac804842-7d78-11e7-a809-3c15c2d582c6\"\n }]\n },\n \"attachments\": {\n \"create\": [{\n \"upload_id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"name\": \"Contract.pdf\",\n \"filename\": \"Contract.pdf\",\n \"file_source\": \"DocumentRevisions\"\n }, {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-23", "text": "\"file_source\": \"DocumentRevisions\"\n }, {\n \"upload_id\": \"18a72782-4514-11e6-a5f7-3c15c2d582c6\",\n \"name\": \"survey.doc\",\n \"filename\": \"survey.doc\",\n \"file_source\": \"EmailTemplates\"\n }]\n }\n}\nResponse\n{\n \"id\": \"f3c85966-7d27-11e7-9e9e-3c15c2d582c6\",\n \"date_entered\": \"2016-02-25T11:53:07-08:00\",\n \"created_by\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-24", "text": "\"created_by_name\": \"Sarah Smith\",\n \"date_modified\": \"2016-02-25T11:53:07-08:00\",\n \"modified_by_name\": \"Sarah Smith\",\n \"modified_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"deleted\": false,\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"state\": \"Draft\",\n \"outbound_email_id\": \"b80adf1a-7d78-11e7-855a-3c15c2d582c6\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-25", "text": "\"name\": \"Re: Discuss Proposal\",\n \"description\": \"Now is a good time\",\n \"description_html\": \"

Now is a good time

\",\n \"date_sent\": \"2012-02-17T11:53:07-08:00\",\n \"message_id\": \"\",\n \"message_uid\": \"\",\n \"reply_to_id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"reply_to_status\": false,\n \"total_attachments\": 2,\n \"parent_name\": \"Tom Davis\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-26", "text": "\"team_count\": \"\",\n \"team_name\": [{\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Emails\"\n}\nSending an Email\nRequest Arguments\nName\nType\nDescription\nRequired\n state\n \n String\n \n Use \"Ready\" to send an email.\n \n True\n \n outbound_email_id\n \n String\n \n The ID of the chosen SMTP configuration for sending an email. Only use this field when saving a draft", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-27", "text": "or sending an email. The user's default SMTP configuration is used if one hasn't been chosen prior to\n sending.\n \n False\n \n name\n \n String\n \n The email's subject.\n \n False\n \n description_html\n \n String\n \n The email's HTML body.\n \n False\n \n description\n \n String\n \n The email's plain text body. This field is not necessary unless the text body is different from the HTML\n body.\n \n False\n \n reply_to_id\n \n String\n \n Only use this field when saving a draft or sending an email that is a reply to another email. This is\n the ID of that other email.\n \n False\n \n parent_type\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-28", "text": "False\n \n parent_type\n \n String\n \n The parent record's module.\n \n False\n \n parent_id\n \n String\n \n The parent record's ID.\n \n False\n \n to\n \n Object\n \n The email's recipients found in the TO field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-29", "text": "the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n cc\n \n Object\n \n The email's recipients found in the CC field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-30", "text": "the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n bcc\n \n Object\n \n The email's recipients found in the BCC field. Existing EmailParticipants records cannot be used; only\n the create action is supported. Metadata about each recipient is required to link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-31", "text": "the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n attachments\n \n Object\n \n The email's attachments. Existing Notes records cannot be used as email attachments; only the\n create action is supported. Metadata about each attachment is required to link the records.\n \nfilename_guid is the temporary file ID for an uploaded file to attach as a Notes record.\n \nupload_id is the ID of an existing file that the Notes record should reference as the\n attachment. This allows files to be shared by multiple Notes records, to preserve space.\n \n When using upload_id, file_source should be provided to indicate from where the", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-32", "text": "When using upload_id, file_source should be provided to indicate from where the\n file originated. The value should be the module of the record that shares its ID with the file.\n So when an attachment comes from an email template, file_source should be\n EmailTemplates. And when an attachment comes from a document, file_source should\n be DocumentRevisions.\n \n False\n \nRequest\n{\n \"state\": \"Ready\",\n \"outbound_email_id\": \"b80adf1a-7d78-11e7-855a-3c15c2d582c6\",\n \"name\": \"Discuss Proposal\",\n \"description_html\": \"

When is a good time for us to chat?

\",\n \"parent_type\": \"Leads\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-33", "text": "\"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\",\n \"to\": {\n \"create\": [{\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"\n }]\n },\n \"cc\": {\n \"create\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"79c2e800-7d79-11e7-84af-3c15c2d582c6\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-34", "text": "\"email_address_id\": \"79cc341e-7d79-11e7-8748-3c15c2d582c6\"\n }]\n },\n \"attachments\": {\n \"create\": [{\n \"upload_id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"name\": \"Contract.pdf\",\n \"filename\": \"Contract.pdf\",\n \"file_source\": \"DocumentRevisions\"\n }, {\n \"upload_id\": \"18a72782-4514-11e6-a5f7-3c15c2d582c6\",\n \"name\": \"survey.doc\",\n \"filename\": \"survey.doc\",\n \"file_source\": \"EmailTemplates\"\n }]\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-35", "text": "\"file_source\": \"EmailTemplates\"\n }]\n }\n}\nResponse\n{\n \"id\": \"a7795664-7def-11e7-8add-3c15c2d582c6\",\n \"date_entered\": \"2016-02-25T08:53:07-08:00\",\n \"created_by\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"created_by_name\": \"Sarah Smith\",\n \"date_modified\": \"2016-02-25T08:53:07-08:00\",\n \"modified_by_name\": \"Sarah Smith\",\n \"modified_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-36", "text": "\"deleted\": false,\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"state\": \"Archived\",\n \"outbound_email_id\": \"b80adf1a-7d78-11e7-855a-3c15c2d582c6\",\n \"name\": \"Discuss Proposal\",\n \"description\": \"When is a good time for us to chat?\",\n \"description_html\": \"

When is a good time for us to chat?

\",\n \"date_sent\": \"2012-02-17T08:53:07-08:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-37", "text": "\"message_id\": \"\",\n \"message_uid\": \"\",\n \"reply_to_id\": \"\",\n \"reply_to_status\": false,\n \"total_attachments\": 2,\n \"parent_name\": \"Tom Davis\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"\n \"team_count\": \"\",\n \"team_name\": [{\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "d49cc1169547-38", "text": "\"primary\": true,\n \"selected\": false\n }],\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Emails\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Emails POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emails_POST/index.html"} {"id": "e8aba870f2d3-0", "text": "//favorites GET\nOverview\n Opportunity Favorites Help\nSummary\n This endpoint returns all the favorite Quotes/Revenue Line Items in alphabetical order to be displayed in the\n \"Product Catalog Quick Picks\" dashlet.\nRequest Arguments\nName\nType\nDescription\nRequired\n pageNum\n \n integer\n \n An integer attribute in the payload data object which gets the page number for which the items need to be\n displayed based on the current page or the page clicked.\n \n False\n \nRequest\n{\n pageNum: 0\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n The list of config fields will be returned.\n \nResponse\n{\n \"totalPages\":5,\n \"pageNum\":0,\n \"max_num\":8,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-1", "text": "\"pageNum\":0,\n \"max_num\":8,\n \"records\":[\n {\n \"id\":\"c181bd32-c7f2-11e8-b4eb-7831c1c14620\",\n \"name\":\"Allyson Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-2", "text": "\"category_id\":\"c18112d8-c7f2-11e8-b753-7831c1c14620\",\n \"mft_part_num\":\"Ink Conglomerate Inc 921535XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"534.000000\",\n \"discount_price\":\"842.000000\",\n \"list_price\":\"905.000000\",\n \"cost_usdollar\":\"534.000000\",\n \"discount_usdollar\":\"842.000000\",\n \"list_usdollar\":\"905.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-3", "text": "\"website\":null,\n \"weight\":\"20.00\",\n \"qty_in_stock\":26,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"Fixed\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c18e0448-c7f2-11e8-86b0-7831c1c14620\",\n \"name\":\"Arla Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-4", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c18b8b64-c7f2-11e8-8c1a-7831c1c14620\",\n \"mft_part_num\":\"24\\/7 Couriers 795391XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-5", "text": "\"date_cost_price\":null,\n \"cost_price\":\"398.000000\",\n \"discount_price\":\"402.020202\",\n \"list_price\":\"941.000000\",\n \"cost_usdollar\":\"398.000000\",\n \"discount_usdollar\":\"402.020202\",\n \"list_usdollar\":\"941.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"22.00\",\n \"qty_in_stock\":145,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-6", "text": "\"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b60434-c7f2-11e8-8964-7831c1c14620\",\n \"name\":\"Billie Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-7", "text": "\"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Kringle Bell IncK.A. Tower \\u0026 Co 694143XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"403.000000\",\n \"discount_price\":\"927.000000\",\n \"list_price\":\"927.000000\",\n \"cost_usdollar\":\"403.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-8", "text": "\"cost_usdollar\":\"403.000000\",\n \"discount_usdollar\":\"927.000000\",\n \"list_usdollar\":\"927.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"16.00\",\n \"qty_in_stock\":148,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"IsList\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-9", "text": "\"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c186a612-c7f2-11e8-9fee-7831c1c14620\",\n \"name\":\"Bradford Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-10", "text": "\"category_id\":\"c185dbb0-c7f2-11e8-a6b7-7831c1c14620\",\n \"mft_part_num\":\"Mississippi Bank Group 133834XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"528.000000\",\n \"discount_price\":\"533.333333\",\n \"list_price\":\"745.000000\",\n \"cost_usdollar\":\"528.000000\",\n \"discount_usdollar\":\"533.333333\",\n \"list_usdollar\":\"745.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"33.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-11", "text": "\"website\":null,\n \"weight\":\"33.00\",\n \"qty_in_stock\":70,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b4680e-c7f2-11e8-9380-7831c1c14620\",\n \"name\":\"Brain Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-12", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Smallville Resources Inc 362299XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-13", "text": "\"date_cost_price\":null,\n \"cost_price\":\"370.000000\",\n \"discount_price\":\"854.370000\",\n \"list_price\":\"863.000000\",\n \"cost_usdollar\":\"370.000000\",\n \"discount_usdollar\":\"854.370000\",\n \"list_usdollar\":\"863.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"10.00\",\n \"qty_in_stock\":106,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"PercentageDiscount\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-14", "text": "\"pricing_formula\":\"PercentageDiscount\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1baf0e8-c7f2-11e8-ab05-7831c1c14620\",\n \"name\":\"Carley Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-15", "text": "\"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b8e4ec-c7f2-11e8-b435-7831c1c14620\",\n \"mft_part_num\":\"Hollywood Diner Ltd 10023XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"554.000000\",\n \"discount_price\":\"559.595960\",\n \"list_price\":\"927.000000\",\n \"cost_usdollar\":\"554.000000\",\n \"discount_usdollar\":\"559.595959\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-16", "text": "\"discount_usdollar\":\"559.595959\",\n \"list_usdollar\":\"927.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"30.00\",\n \"qty_in_stock\":58,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-17", "text": "\"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b77544-c7f2-11e8-8347-7831c1c14620\",\n \"name\":\"Carma Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-18", "text": "\"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Sea Region Inc 773472XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"332.000000\",\n \"discount_price\":\"745.000000\",\n \"list_price\":\"822.000000\",\n \"cost_usdollar\":\"332.000000\",\n \"discount_usdollar\":\"745.000000\",\n \"list_usdollar\":\"822.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"35.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-19", "text": "\"website\":null,\n \"weight\":\"35.00\",\n \"qty_in_stock\":1,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"Fixed\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b98c9e-c7f2-11e8-9740-7831c1c14620\",\n \"name\":\"Catrina Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-20", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b8e4ec-c7f2-11e8-b435-7831c1c14620\",\n \"mft_part_num\":\"Jungle Systems Inc 273034XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-21", "text": "\"date_cost_price\":null,\n \"cost_price\":\"577.000000\",\n \"discount_price\":\"582.770000\",\n \"list_price\":\"946.000000\",\n \"cost_usdollar\":\"577.000000\",\n \"discount_usdollar\":\"582.770000\",\n \"list_usdollar\":\"946.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"13.00\",\n \"qty_in_stock\":105,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"PercentageMarkup\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "e8aba870f2d3-22", "text": "\"pricing_formula\":\"PercentageMarkup\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Opportunities/favorites GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_GET/index.html"} {"id": "f581cea19cec-0", "text": "/Dashboards/ POST\n Create a new dashboard.\nNotice\nThis endpoint is not supported in v11. If you continue to use v10 of the API, your\n REST calls should behave as below. But, it is advisable to upgrade to v11.Migrating to v11:\n For more information on behavior in v11, refer to POST /.\n Recommended Replacement: POST /Dashboards\n The module name is no longer part of the path. To specify a module name, include it in the Request Body.\n For example, to create an Accounts module dashboard, usev11: POST /Dashboards with the following in the Request Body:\n{\"dashboard_module\":\"Accounts\"}\nRequest Arguments\nName\nType\nDescription\nRequired\n\n\nThe name value list of fields to populate.\nTrue\nRequest\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_POST/index.html"} {"id": "f581cea19cec-1", "text": "The name value list of fields to populate.\nTrue\nRequest\n{\n \"name\": \"New Dashboard for Accounts Module\",\n \"dashboard_module\": \"Accounts\",\n \"view_name\": \"records\",\n \"metadata\": {\n \"components\": [{\n \"rows\": [[{\n \"view\": {\n \"type\": \"dashablelist\",\n \"label\": \"TPL_DASHLET_MY_MODULE\",\n \"display_columns\": [\"name\",\"billing_address_city\"]\n },\n \"context\": {\"module\":\"Accounts\"},\n \"width\": 12\n }]],\n \"width\": 12\n }]\n }\n}\nResponse Arguments\nName\nType\nDescription\n\n\nReturns the fields for the newly created dashboard.\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_POST/index.html"} {"id": "f581cea19cec-2", "text": "\nReturns the fields for the newly created dashboard.\nResponse\n{\n \"id\": \"8f9cd3d1-ce5d-e8d4-12d8-56cf674d2600\",\n \"name\": \"New Dashboard for Accounts Module\",\n \"date_entered\": \"2016-02-25T12:44:27-08:00\",\n \"date_modified\": \"2016-02-25T12:44:27-08:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"deleted\": false,\n \"dashboard_module\": \"Accounts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_POST/index.html"} {"id": "f581cea19cec-3", "text": "\"deleted\": false,\n \"dashboard_module\": \"Accounts\",\n \"view_name\": \"records\",\n \"metadata\": {\n \"components\": [\n {\n \"rows\": [\n [\n {\n \"view\": {\n \"type\": \"dashablelist\",\n \"label\": \"TPL_DASHLET_MY_MODULE\",\n \"display_columns\": [\n \"name\",\n \"billing_address_city\"\n ]\n },\n \"context\": {\n \"module\": \"Accounts\"\n },\n \"width\": 12\n }\n ]\n ],\n \"width\": 12\n }\n ]\n },\n \"following\": \"\",\n \"my_favorite\": false,\n \"tag\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_POST/index.html"} {"id": "f581cea19cec-4", "text": "\"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"_acl\": {\n \"fields\": {}\n },\n \"view\": \"records\",\n \"_module\": \"Dashboards\"\n}\nChange Log\nVersion\nChange\nv11\nNo longer supported. Please use POST /Dashboards instead.\nv10\nAdded /Dashboards/ POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsmodule_POST/index.html"} {"id": "af73fbff2508-0", "text": "/ProductTemplates/tree POST\nProductTemplate API\nSummary:\n This endpoint is designed to return a paged recordset of one level of product templates and product categories in\n a N-level deep tree representing the relationship between categories and templates. The results are loosely\n filtered (wildcard before and after).\nQuery Parameters:\nParam\nDescription\nOptional\nfilter\nThe filter used to search Product Template and Product Category names. %filter% \ntrue\nroot\nThe ID of the root node you wish to retrieve. Defaults to null (the root level)\ntrue\noffset\nSpecifies the numeric value of the offset you wish to retrieve\ntrue\nmax_num\nSpecifies the numeric value of the max number of records you wish to receive. Default is 20.\ntrue\nResponse Parameters:\nParam\nDescription\nid\nThe id of the item (Product Category/Template) \nData", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ProductTemplatestree_POST/index.html"} {"id": "af73fbff2508-1", "text": "Description\nid\nThe id of the item (Product Category/Template) \nData\nThe name of the item\nstate\nSpecifies the open or closed state of the element. (used for categories)\nindex\nSpecifies the index of this element in the current level.\nResponse:\n { \n \"records\":[\n {\n \"id\":\"023d316a-d9d0-11e7-9f54-02425392a518\",\n \"type\":\"category\",\n \"data\":\"Christen Widgets\",\n \"state\":\"closed\",\n \"index\":0\n },\n {\n \"id\":\"01828a4a-d9d0-11e7-8989-02425392a518\",\n \"type\":\"category\",\n \"data\":\"Desktops\",\n \"state\":\"closed\",\n \"index\":1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ProductTemplatestree_POST/index.html"} {"id": "af73fbff2508-2", "text": "\"state\":\"closed\",\n \"index\":1\n }\n ],\n \"next_offset\":2\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ProductTemplatestree_POST/index.html"} {"id": "439d4789c370-0", "text": "//:record/pii GET\nOverview\n Returns personally identifiable information (pii) fields with current data and source of data capture for a specific record.\nVersion Requirements\n Minimum REST API Version required - 11.1\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of the module.\n \n True\n \n record\n \n String\n \n The record id.\n \n True\n \nResponse Arguments\nName\nType\nDescription\n records\n \n String\n \n Returns the set of PII field records for the given module record.\n \nResponse\n{\n \"fields\": [\n {\n \"field_name\": \"phone_mobile\",\n \"value\": \"(645) 604-0128\",\n \"event_type\": \"update\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordpii_GET/index.html"} {"id": "439d4789c370-1", "text": "\"event_type\": \"update\",\n \"date_modified\": \"2018-02-21T19:56:42+00:00\",\n \"source\": {\n \"subject\": {\n \"_type\": \"user\",\n \"id\": \"999b3b50-16dc-11e8-9c03-a45e60e64123\",\n \"_module\": \"Users\",\n \"client\": {\n \"_type\": \"rest-api\"\n },\n \"first_name\": \"Tim\",\n \"last_name\": \"Zhang\",\n \"name\": \"Tim Zhang\"\n },\n \"attributes\": {\n \"platform\": \"base\"\n }\n }\n },\n {\n \"field_name\": \"phone_work\",\n \"value\": \"(212) 692-3480\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordpii_GET/index.html"} {"id": "439d4789c370-2", "text": "\"value\": \"(212) 692-3480\",\n \"event_type\": \"update\",\n \"date_modified\": \"2018-02-21T19:56:42+00:00\",\n \"source\": {\n \"subject\": {\n \"_type\": \"user\",\n \"id\": \"654b3b50-16dc-11e8-9c03-a45e60e64465\",\n \"_module\": \"Users\",\n \"client\": {\n \"_type\": \"rest-api\"\n },\n \"first_name\": \"Jim\",\n \"last_name\": \"Conners\",\n \"name\": \"Jim Conners\"\n },\n \"attributes\": {\n \"platform\": \"base\"\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordpii_GET/index.html"} {"id": "439d4789c370-3", "text": "}\n }\n ]\n}\nChange Log\nVersion\nChange\n 11.1\n \n Added /pii GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordpii_GET/index.html"} {"id": "339d18c8e08e-0", "text": "/metadata//:segment GET\nOverview\n[ADMIN] Gets the desired segment for a given module.\nSummary\nGets the desired segment for a given module. This is used only for modules that are not visible and thus not in metatdata for the given context. This endpoint is only available to administrators.\nRequest Arguments\nThis endpoint does not accept any request arguments.\nResponse\n{\n \"fields\": {\n Any fields associated with the module\n }\n}\nChange Log\nVersion\nChange\nv11_11\nAdded /metadata//:segment\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/metadatamodulesegment_GET/index.html"} {"id": "0bcfc74b4616-0", "text": "//:record/link/activities GET\nActivities on a module's list view\nSummary:\n This endpoint lists activities across a particular module in the system. It does not use a subscription model unlike the other endpoints. It can be queried as a regular bean collection, but without search, ordering or filtering.\nQuery Parameters:\nParamDescriptionOptionalmax_numA maximum number of records to returnOptionaloffsetHow many records to skip over before records are returnedOptional\nInput Example:\nThis endpoint does not accept any input\nOutput Example:\n{\n \"next_offset\": 20, This will be set to -1 when there are no more records after this \"page\".\n \"records\": [{\n \"id\": \"22fb8b16-de1d-f1dc-b15b-51240efde177\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinkactivities_GET/index.html"} {"id": "0bcfc74b4616-1", "text": "\"date_entered\": \"2013-02-19T23:47:11+00:00\",\n \"date_modified\": \"2013-02-19T23:47:11+00:00\",\n \"created_by\": \"1\",\n \"deleted\": \"0\",\n \"parent_id\": \"f5bb0331-2c0f-5c7c-b4db-5123caac0056\",\n \"parent_type\": \"Contacts\",\n \"activity_type\": \"post\", This will be the type of activity performed.\n \"data\": {\n \"value\": \"This is a test post on a contact I'm subscribed to.\"\n },\n \"comment_count\": 0, This will be set to the total number of comments on the post.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinkactivities_GET/index.html"} {"id": "0bcfc74b4616-2", "text": "\"last_comment\": { This will be the last comment on the post, which can be used to create a comment model on the frontend.\n \"deleted\": 0,\n \"data\": []\n },\n \"fields\": [],\n \"first_name\": null,\n \"last_name\": \"Administrator\",\n \"created_by_name\": \" Administrator\" This will be the locale-formatted full name of the user.\n }, ... ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinkactivities_GET/index.html"} {"id": "bb85bd560409-0", "text": "/Administration/packages/:file_install/install GET\nOverview\n[ADMIN] PackageManager install a package.\nSummary\nInstalls the specified package. Package 'file_install' hash must be provided. file_install hash could be found in staging package list.\nResponse\nReturns http status 200 OK and newly installed package ID if request is successful.\n{\n\"id\": \"56365210-4cce-11ea-a7bf-acde48001122\"\n}\nOtherwise returns http status 4xx with errors.\n{\n\"error\": \"not_found\",\n\"error_message\": \"Could not find package by ID.\"\n}\nChange Log\nVersion\nChange\nv11.8\nAdded /Administration/packages/:file_install/install\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackagesfile_installinstall_GET/index.html"} {"id": "f1780efa4cc7-0", "text": "/CommentLog/:record GET\nOverview\n Retrieves a record.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the selected record.\n \nResponse\n{\n \"id\":\"bdd59d85-687b-1739-b00a-512d09f6db9e\",\n \"name\":\"Insight Marketing Inc\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/CommentLogrecord_GET/index.html"} {"id": "f1780efa4cc7-1", "text": "\"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-26T19:12:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/CommentLogrecord_GET/index.html"} {"id": "f1780efa4cc7-2", "text": "\"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Electronics\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"345 Sugar Blvd.\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"San Mateo\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"56019\",\n \"billing_address_country\":\"USA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/CommentLogrecord_GET/index.html"} {"id": "f1780efa4cc7-3", "text": "\"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(927) 136-9572\",\n \"phone_alternate\":\"\",\n \"website\":\"www.sectionvegan.de\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"345 Sugar Blvd.\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"San Mateo\",\n \"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"56019\",\n \"shipping_address_country\":\"USA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/CommentLogrecord_GET/index.html"} {"id": "f1780efa4cc7-4", "text": "\"shipping_address_country\":\"USA\",\n \"email1\":\"kid.support.vegan@example.info\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":false,\n \"invalid_email\":false,\n \"email\":[\n {\n \"email_address\":\"kid.support.vegan@example.info\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"phone.kid@example.cn\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/CommentLogrecord_GET/index.html"} {"id": "f1780efa4cc7-5", "text": "],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/CommentLogrecord_GET/index.html"} {"id": "17397de029e5-0", "text": "/Opportunities/:record PUT\nOverview\n Update a record of the specified type.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"New Account Name\",\n \"phone_office\":\"(555) 888-5555\",\n \"website\":\"www.newsite.com\",\n \"meetings\": {\n {\n \"add\": [\"21e3385e-404f-b470-407e-54044e3d8024\"],\n \"delete\": [\"21e3385e-404f-b470-407e-54044e3d8023\"],\n \"create\": [\n {\n \"name\": \"Test Meeting\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesrecord_PUT/index.html"} {"id": "17397de029e5-1", "text": "{\n \"name\": \"Test Meeting\"\n }\n ]\n }\n}\nLink fields\n It is possible to add or delete record relations to other records and create new related records.\nAction\nType\nDescription\nadd\n List\n \n List of related records ID. See RelateRecordApi\n for details.\n \ndelete\n List\n \n List of related records ID.\n \ncreate\n List\n \n List of name to value arrays of related records.\n \nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the updated record.\n \nResponse\n{\n \"id\":\"f222265a-b755-da89-0bc7-512d09b800b6\",\n \"name\":\"New Account Name\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesrecord_PUT/index.html"} {"id": "17397de029e5-2", "text": "\"name\":\"New Account Name\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-27T22:49:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-26T19:12:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sarah_id\",\n \"assigned_user_name\":\"Sarah Smith\",\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesrecord_PUT/index.html"} {"id": "17397de029e5-3", "text": "{\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Hospitality\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"9 IBM Path\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"San Francisco\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesrecord_PUT/index.html"} {"id": "17397de029e5-4", "text": "\"billing_address_city\":\"San Francisco\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"43635\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(555) 888-5555\",\n \"phone_alternate\":\"\",\n \"website\":\"www.newsite.com\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"9 IBM Path\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"San Francisco\",\n \"shipping_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesrecord_PUT/index.html"} {"id": "17397de029e5-5", "text": "\"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"43635\",\n \"shipping_address_country\":\"USA\",\n \"email1\":\"kid86@example.net\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":false,\n \"invalid_email\":false,\n \"email\":[\n {\n \"email_address\":\"kid86@example.net\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.dev@example.name\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesrecord_PUT/index.html"} {"id": "17397de029e5-6", "text": "\"primary_address\":\"0\"\n }\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Opportunitiesrecord_PUT/index.html"} {"id": "29ca16dab17e-0", "text": "/Administration/search/status GET\nOverview\n [ADMIN] Search status\nSummary\n This endpoint returns the status of the search backend including a list of the activated full text search modules.\n This endpoint is only available to administrators.\nResponse\n{\n \"available\":true,\n \"enabled_modules\":\n [\n \"Accounts\",\n \"Bugs\",\n \"Calls\",\n \"Campaigns\",\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/search/status GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsearchstatus_GET/index.html"} {"id": "93606141caee-0", "text": "/me PUT\nOverview\n Returns the current user object.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nResponse User Example\n{\n \"current_user\":{\n \"type\":\"user\",\n \"id\":\"1\",\n \"full_name\":\"Administrator\",\n \"timepref\":\"h:ia\",\n \"timezone\":\"America/Los_Angles\",\n \"user_name\":\"admin\"\n }\n}\nResponse Portal User Example\n{\n \"current_user\":{\n \"type\":\"support_portal\",\n \"id\":\"1234-567\",\n \"user_id\":\"abcd-123\",\n \"full_name\":\"Bill Williamson\",\n \"timepref\":\"h:ia\",\n \"timezone\":\"America/Denver\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/me_PUT/index.html"} {"id": "93606141caee-1", "text": "\"timezone\":\"America/Denver\",\n \"user_name\":\"SupportPortalApi\"\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/me_PUT/index.html"} {"id": "d933ac78d490-0", "text": "/Emails/filter GET\nOverview\n Lists filtered emails.\nSummary\n Adds additional operators to Filter API that are\n specific to Emails. A special macro, $current_user_id, is a convenience that allows for finding emails\n involving the current user.\nFilter By Sender\n This will return all emails sent by the current user, by the contact whose ID is\n fa300a0e-0ad1-b322-9601-512d0983c19a, using the email address sam@example.com, which is referenced by\n the ID b0701501-1fab-8ae7-3942-540da93f5017, or by the lead whose ID is\n 73b1087e-4bb6-11e7-acaa-3c15c2d582c6 using the email address wally@example.com, which is referenced by", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-1", "text": "the ID b651d834-4bb6-11e7-bfcf-3c15c2d582c6.\n{\n \"filter\": [{\n \"$from\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }, {\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"fa300a0e-0ad1-b322-9601-512d0983c19a\"\n }, {\n \"email_address_id\": \"b0701501-1fab-8ae7-3942-540da93f5017\"\n }, {\n \"parent_type\": \"Leads\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-2", "text": "}, {\n \"parent_type\": \"Leads\",\n \"parent_id\": \"73b1087e-4bb6-11e7-acaa-3c15c2d582c6\",\n \"email_address_id\": \"b651d834-4bb6-11e7-bfcf-3c15c2d582c6\"\n }]\n }]\n}\n Equivalent to:\n{\n \"filter\": [{\n \"from_collection\": {\n \"$in\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }, {\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"fa300a0e-0ad1-b322-9601-512d0983c19a\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-3", "text": "}, {\n \"email_address_id\": \"b0701501-1fab-8ae7-3942-540da93f5017\"\n }, {\n \"parent_type\": \"Leads\",\n \"parent_id\": \"73b1087e-4bb6-11e7-acaa-3c15c2d582c6\",\n \"email_address_id\": \"b651d834-4bb6-11e7-bfcf-3c15c2d582c6\"\n }]\n }\n }]\n}\nFilter By Recipients\n This would return all archived emails received by the current user.\n{\n \"filter\": [{\n \"$or\": [{\n \"$to\": [{\n \"parent_type\": \"Users\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-4", "text": "\"$to\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }],\n \"$cc\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }],\n \"$bcc\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]\n }]\n }, {\n \"state\": {\n \"$in\": [\n \"Archived\"\n ]\n }\n }]\n}\n Equivalent to:\n{\n \"filter\": [{\n \"$or\": [{\n \"to_collection\": {\n \"$in\": [{\n \"parent_type\": \"Users\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-5", "text": "\"$in\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]\n },\n \"cc_collection\": {\n \"$in\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]\n },\n \"bcc_collection\": {\n \"$in\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]\n }\n }]\n }, {\n \"state\": {\n \"$in\": [\n \"Archived\"\n ]\n }\n }]\n}\nFilter By Sender and Recipients\n This would return all archived emails sent by a contact to the current user.\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-6", "text": "This would return all archived emails sent by a contact to the current user.\n{\n \"filter\": [{\n \"$from\": [{\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"fa300a0e-0ad1-b322-9601-512d0983c19a\"\n }]\n }, {\n \"$or\": [{\n \"$to\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }],\n \"$cc\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }],\n \"$bcc\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-7", "text": "\"parent_id\": \"$current_user_id\"\n }]\n }]\n }, {\n \"state\": {\n \"$in\": [\n \"Archived\"\n ]\n }\n }]\n}\n Equivalent to:\n{\n \"filter\": [{\n \"from_collection\": {\n \"$in\": [{\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"fa300a0e-0ad1-b322-9601-512d0983c19a\"\n }]\n }\n }, {\n \"$or\": [{\n \"to_collection\": {\n \"$in\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "d933ac78d490-8", "text": "}]\n },\n \"cc_collection\": {\n \"$in\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]\n },\n \"bcc_collection\": {\n \"$in\": [{\n \"parent_type\": \"Users\",\n \"parent_id\": \"$current_user_id\"\n }]\n }\n }]\n }, {\n \"state\": {\n \"$in\": [\n \"Archived\"\n ]\n }\n }]\n}\nChange Log\nVersion\nChange\n v10\n \n Added the $from, $to, $cc, and $bcc operators to\n /Emails/filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsfilter_GET/index.html"} {"id": "05b0d8174eec-0", "text": "/Dashboards/:id/restore-metadata PUT\nOverview\nRestores the metadata for a module's dashboard to the default metadata.\nSummary\nThis endpoint is used to restore the default metadata for a module's dashboard.\nRequest Arguments\nName\nType\nDescription\nRequired\ndashboard_module\nstring\nThe module dashboard belongs to (e.g. Home, Cases, Accounts)\nTrue\ndashboard\nstring\nThe dashboard name (e.g. portal-home)\nTrue\nRequest\n{\n \"dashboard_module\":\"Home\",\n \"dashboard\":\"portal-home\"\n}\n\u00c2\u00a0\nResponse Example\n{\n \"id\":\"123\",\n \"name\":\"LBL_PORTAL_HOME\",\n \"dashboard_module\": \"Home\",\n \"view_name\": \"home\",\n \"metadata\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsidrestoremetadata_PUT/index.html"} {"id": "05b0d8174eec-1", "text": "\"view_name\": \"home\",\n \"metadata\": {\n \"css_class\": \"portal-home-dashboard\"\n \"components\": {...},\n },\n ...\n}\nChange Log\nVersion\nChange\nv11.13\nAdded\u00c2\u00a0/Dashboards//restore-metadata\u00c2\u00a0PUT endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboardsidrestoremetadata_PUT/index.html"} {"id": "45a56a068196-0", "text": "/Users/:record/freebusy GET\n Get a user's FreeBusy schedule\nSummary:\n This endpoint returns a list of time slots for which the specified person is busy.\nRequest\n GET /Users/:id/freebusy\n \nResponse\n {\n \"id\": \"foo\"\n \"module\": \"Users\",\n \"freebusy\": [\n {\n \"start\": \"2014-08-24T08:45:00-04:00\",\n \"end\": \"2014-08-24T09:15:00-04:00\"\n },\n {\n \"start\": \"2014-08-30T05:45:00-04:00\",\n \"end\": \"2014-08-30T06:15:00-04:00\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordfreebusy_GET/index.html"} {"id": "45a56a068196-1", "text": "},\n {\n \"start\": \"2014-09-12T15:45:00-04:00\",\n \"end\": \"2014-09-12T16:15:00-04:00\"\n }\n ]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordfreebusy_GET/index.html"} {"id": "b74ba610688f-0", "text": "/pmse_Project/validateCrmData/:data/:filter GET\nOverview\nValidates information about Fields, Modules, Users, Roles, etc.\nSummary\nThis endpoint will validate the existence of various data related to the Process Definition.\nRequest Arguments\nName\nType\nDescription\nRequired\ndata\nString\nThe type of data to be retrieved\nTrue\nfilter\nString\nFiltering criteria to be applied to data retrieved\nFalse\nkey\nString\nKey of the entry to search for within the given data and filter\nTrue\nRequest\nNote: \"key\" should be provided in the form of a URL query string.\nExample Request:\n/rest/v11_10/pmse_Project/validateCrmData/field/Accounts?key=data_entered\nResponse Arguments\nName\nType\nDescription\nresult\nBoolean", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectvalidateCrmDatadatafilter_GET/index.html"} {"id": "b74ba610688f-1", "text": "Response Arguments\nName\nType\nDescription\nresult\nBoolean\nThe result of the validation. True if the key exists in the specified data set; false otherwise\nResponse\n{\n result: true\n}\nChange Log\nVersion\nChange\nv11_10\nAdded /pmse_Project/validateCrmData/:data/:filter\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_ProjectvalidateCrmDatadatafilter_GET/index.html"} {"id": "0b1df92bc4a0-0", "text": "/Meetings/:record DELETE\nOverview\n Deletes either a single event record or a series of event records\nRequest Arguments\nName\nType\nDescription\nRequired\n all_recurrences\n \n Boolean\n \n Flag to delete all events in a series.\n \n False\n \nRequest\nhttp://{site_url}/rest/v10/Meetings/2c9e5c09-6824-0d14-f5cb-5130321ac3cf?all_recurrences=true\nResponse Arguments\nName\nType\nDescription\n id\n \n String\n \n Returns the ID of the deleted record.\n \nResponse\n{\n \"id\": \"11cf0d0a-40af-8cb1-9da0-5057a5f511f9\"\n}\nChange Log\nVersion\nChange", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Meetingsrecord_DELETE/index.html"} {"id": "0b1df92bc4a0-1", "text": "}\nChange Log\nVersion\nChange\n v10\n \n Added //:record DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Meetingsrecord_DELETE/index.html"} {"id": "99bc856d6682-0", "text": "/Calls POST\nOverview\n Create a single event or a series of event records.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"Department Meeting\",\n \"description\":\"Weekly Department Meeting\",\n \"date_start\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"date_end\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"repeat_type\":\"Weekly\",\n \"repeat_interval\":\"1\", /* Every Week */\n \"repeat_dow\":\"25\", /* Tue and Fri */\n \"repeat_count\":\"4\", /* 4 Recurrences */", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calls_POST/index.html"} {"id": "99bc856d6682-1", "text": "\"repeat_count\":\"4\", /* 4 Recurrences */\n \"repeat_until\":\"\",\n}\nResponse Arguments\nName\nDescription\nStart Date\nEnd Date\n \n \n Returns the fields for the newly created record.\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added / POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Calls_POST/index.html"} {"id": "f9a5d2ee5d7b-0", "text": "/Forecasts/:timeperiod_id/progressManager/:user_id GET\nProjected Manager Data\nSummary:\n This endpoint is used to return the json Data not already in client view for the Forecasts manager projected panel.\nQuery Parameters:\nParam\nDescription\nOptional\nuser_id\nShow for a specific user, defaults to current user if not defined\nOptional\ntimeperiod_id\nShow for a specific time period, defaults to the current time period if one is not passed\nOptional\nInput Example:\n{\n user_id:seed_sally_id\n timeperiod_id:36f7085a-5889-ea75-84c8-50f42bd1a5ba\n}\n \nOutput Example:\n{\n closed_amount: 0\n opportunities: 13\n pipeline_revenue: 470000\n quota_amount: 382000.000000\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_idprogressManageruser_id_GET/index.html"} {"id": "f9a5d2ee5d7b-1", "text": "quota_amount: 382000.000000\n}\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_idprogressManageruser_id_GET/index.html"} {"id": "75170d2d256d-0", "text": "/login/marketingContentUrl GET\nOverview\nReturns the SugarCRM marketing content URL that is managed by the marketing team.\nSummary\nThis API attempts to reach SugarCRM's marketing content URL. If the service is unreachable, a URL for the static content is returned.\nRequest Arguments\nName\nType\nDescription\nRequired\nselected_language\nString\nCode for the desired marketing content language. (Eg. \"en_us\", \"fr_FR\"). Providing a certain language code does not guarantee that content returned will be in the provided language. If an invalid language is specified, will assume \"en_us\".\nFalse. It uses the configured language if this parameter is missing. Defaults to \"en_us\".\nstatic\nBoolean\nIf set to true, return URL for static marketing content. Defaults to false.\nFalse. If this parameter is missing, the API defaults to the dynamic content url.\nResponse Arguments", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/loginmarketingContentUrl_GET/index.html"} {"id": "75170d2d256d-1", "text": "Response Arguments\nName\nType\nDescription\nurl\nString\nURL suitable for embedding in an iFrame that links to marketing content from SugarCRM.\nResponse\n\"https://www.sugarcrm.com/product-login-page-service/\"\nChange Log\nVersion\nChange\nv11_9\nAdded /login/marketingContentUrl\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/loginmarketingContentUrl_GET/index.html"} {"id": "0329e9f94331-0", "text": "/EmailAddresses POST\nOverview\n Create a new email address.\nSummary\n In the event that the email address already exists, that record will be returned without making any changes.\nRequest Arguments\nName\nType\nDescription\nRequired\n email_address\n \n String\n \n The email address.\n \n True\n \n invalid_email\n \n Boolean\n \ntrue if the email address is invalid. false is the default.\n \n False\n \n opt_out\n \n Boolean\n \ntrue if the email address is opted out. false is the default.\n \n False\n \nRequest\n{\n \"email_address\": \"eharmon@example.com\",\n \"invalid_email\": false,\n \"opt_out\": false\n}\nResponse Arguments\nName\nType\nDescription\n ", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmailAddresses_POST/index.html"} {"id": "0329e9f94331-1", "text": "}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the newly created record.\n \nResponse\n{\n \"id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"date_created\": \"2016-02-25T11:53:07-08:00\",\n \"date_modified\": \"2016-02-25T11:53:07-08:00\",\n \"deleted\": false,\n \"email_address\": \"eharmon@example.com\",\n \"email_address_caps\": \"EHARMON@EXAMPLE.COM\",\n \"invalid_email\": false,\n \"opt_out\": false,\n \"_acl\": {\n \"fields\": {}\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmailAddresses_POST/index.html"} {"id": "0329e9f94331-2", "text": "\"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"EmailAddresses\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /EmailAddresses POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/EmailAddresses_POST/index.html"} {"id": "d4b2236f05ec-0", "text": "/Forecasts/user/:user_id GET\nForecastsApi - user\nSummary:\n This endpoint is used to return a user's id, user_name, full_name, first_name, last_name, and is_manager param given a user's id.\nQuery Parameters:\nParam\nDescription\nOptional\nuser_id\nReturns user data for this specific user id\n\u00c2\u00a0\nInput Example:\n {\n user_id:seed_sally_id\n }\n \nOutput Example:\n {\n first_name: \"Sally\"\n full_name: \"Sally Bronsen\"\n id: \"seed_sally_id\"\n is_manager: false\n last_name: \"Bronsen\"\n user_name: \"sally\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsuseruser_id_GET/index.html"} {"id": "d4b2236f05ec-1", "text": "user_name: \"sally\"\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsuseruser_id_GET/index.html"} {"id": "cc895a3bf758-0", "text": "/Emails/:record/link/:link_name/:remote_id POST\nOverview\n Creates a relationship to a pre-existing email.\nSummary\n Cannot link existing Notes records as attachments (link: attachments) and existing EmailParticipants records\n as a sender (link: from) or recipients(links: to, cc, bcc). All other operations\n described in Relate Record API are supported.\nChange Log\nVersion\nChange\n v10\n \n Added /Emails/:record/link/:link_name/:remote_id POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecordlinklink_nameremote_id_POST/index.html"} {"id": "d526800d57cf-0", "text": "/integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value DELETE\nOverview\nRemoves a relationship based on lhs_sync_key_field_name and rhs_sync_key_field_name. If both the LHS and RHS records can be found with the respective fields, and those records are related, then remove the relationship of the RHS record to the LHS record.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nlhs_sync_key_field_name\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_DELETE/index.html"} {"id": "d526800d57cf-1", "text": "True\nlhs_sync_key_field_name\nString\nThe name of the LHS field that contains lhs_sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nlhs_sync_key_field_value\nString\nA unique ID for the LHS record identifying it in an external system\nTrue\nlink_name\nString\nA name for the link\nTrue\nrhs_sync_key_field_name\nString\nThe name of the RHS field that contains rhs_sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nrhs_sync_key_field_value\nString\nA unique ID for the RHS record identifying it in an external system\nTrue\nRequest", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_DELETE/index.html"} {"id": "d526800d57cf-2", "text": "A unique ID for the RHS record identifying it in an external system\nTrue\nRequest\n/integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value\nResponse Arguments\nName\nType\nDescription\nrecord\nString\nThe ID of the record.\nrelated_record\nString\nThe ID of the related record.\nResponse\nStatus 200\n{\n \"record\": \"a0328573-a252-a27c-3530-4e4297d4c9e1\",\n \"related_record\": \"a0328573-bc54-a554-3530-4e4297d4c9e1\"\n}\nStatus 422\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_DELETE/index.html"} {"id": "d526800d57cf-3", "text": "}\nStatus 422\n{\n \"error\": \"invalid_parameter\",\n \"error_message\": \"Could not find record with :xhs_sync_key_field_name::xhs_sync_key_field_value in module: \"\n}\nChange Log\nVersion\nChange\nv11_10\nAdded /integrate//:lhs_sync_key_field_name/:lhs_sync_key_field_value/link/:link_name/:rhs_sync_key_field_name/:rhs_sync_key_field_value\u00c2\u00a0DELETE endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulelhs_sync_key_field_namelhs_sync_key_field_valuelinklink_namerhs_sync_key_field_namerhs_sync_key_field_value_DELETE/index.html"} {"id": "ed709122004a-0", "text": "/css GET\nOverview\n Runs LessPHP for a platform and a theme and outputs an array of css files. If not found the css files\n will be compiled.\nRequest Arguments\nName\nType\nDescription\nRequired\nplatform\nString\nThe theme platform - /themes/clients/***PLATFORM***/themeName/. Accepted values are 'base' and 'portal'.\nNo. (defaults to base)\nthemeName\nString\nThe theme name - /themes/clients/platform/***THEMENAME***/.\nNo. (defaults to default)\nRequest\n{\n platform: 'portal',\n themeName: 'default'\n}\nResponse\n{\n url: [", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/css_GET/index.html"} {"id": "ed709122004a-1", "text": "themeName: 'default'\n}\nResponse\n{\n url: [\n 'cache/themes/clients/base/default/bootstrap_97c9cf53841dbe471c20d169e3533763.css',\n 'cache/themes/clients/base/default/sugar_14c42516aad866b7f80cc896ce5c5406.css',\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added / GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/css_GET/index.html"} {"id": "806251566877-0", "text": "//filter/count GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned.\n \n Example: name,account_type,description\n False", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-2", "text": "Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-3", "text": "False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example\n you would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-4", "text": "$equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-5", "text": "$is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-6", "text": "The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\nThere are two module expressions, they operate on modules instead of fields. The current module can be specified by\neither using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\nfilter the records in the current module to only your favorites. The only currently accepted module expressions are\n\"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-7", "text": "Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-8", "text": "\"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-9", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-10", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-11", "text": "\"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-12", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-13", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-14", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-15", "text": "\"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-16", "text": "\"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-17", "text": "\"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-18", "text": "\"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "806251566877-19", "text": "\"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefiltercount_GET/index.html"} {"id": "bbca3331e998-0", "text": "/pmse_Inbox/unattendedCases GET\nOverview\n Retrieves the processes to show on Unattended Process view \nSummary\n This endpoint gets the list of unattended processes \nRequest Arguments\nName\nType\nDescription\nRequired\nmodule_list\nstring\nIdentifier used to determine which field to filter against\ntrue\nq\nstring\nFilter applied to a field to determine which processes to return\nfalse\norder_by\nstring\nSort definition to apply to the result\nfalse\nResponse Arguments\nName\nType\nDescription\nnext_offset\ninteger\nNext offset for more results\nrecords\n:\nList of unattended process attributes\nResponse\n{\n \"next_offset\":\"-1\",\n \"records\":\n [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxunattendedCases_GET/index.html"} {"id": "bbca3331e998-1", "text": "\"records\":\n [\n {\n \"id\":\"3922976c-284f-11e6-9f40-6c4008960436\",\n \"assigned_user_id\":\"1\",\n \"date_modified\":\"2016-06-01 23:18:59\",\n \"date_entered\":\"2016-06-01T16:18:59-07:00\",\n \"name\":\"ABC2\",\n \"cas_id\":\"2\",\n \"cas_title\":\"ABC2\",\n \"cas_status\":\"IN PROGRESS\",\n \"pro_title\":\"PD1\",\n \"pro_id\":\"6e172e2c-2842-11e6-a4bb-6c4008960436\",\n \"cas_init_user\":\"1\",\n \"cas_user_full_name\":\"Sarah Smith\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxunattendedCases_GET/index.html"} {"id": "bbca3331e998-2", "text": "\"cas_user_full_name\":\"Sarah Smith\",\n \"prj_id\":\"6e025038-2842-11e6-b4f7-6c4008960436\",\n \"prj_user_id_full_name\":\"Administrator\",\n \"cas_sugar_object_id\":\"38beb03a-284f-11e6-b059-6c4008960436\",\n \"cas_sugar_module\":\"Accounts\",\n \"assigned_user_name\":\"Administrator\"\n }\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxunattendedCases_GET/index.html"} {"id": "9c7c5418969d-0", "text": "/Filters GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "9c7c5418969d-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Filters_GET/index.html"} {"id": "21898f181b1f-0", "text": "/Administration/elasticsearch/refresh/status GET\nOverview\n [ADMIN] Elasticsearch index refresh interval status\nSummary\n This endpoint returns the current refresh_interval for every index managed by SugarCRM. This endpoint is only\n available to administrators.\nResponse\n{\n \"aabbcc_contactsleads\": \"1s\",\n \"aabbcc_accountsonly\": \"1s\",\n \"aabbcc_shared\": \"1s\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/refresh/status GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchrefreshstatus_GET/index.html"} {"id": "dd8c987185ff-0", "text": "//audit/export GET\nOverview\nReturns a list of data changes for a specific module.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe name of the module.\nTrue\nQuery Parameters\nName\nType\nDescription\nRequired\nmax_num\nInteger\nA maximum number of Audit records to return. The default is 100 records.\nFalse\noffset\nInteger\nThe number of records to skip over before records are returned. The default is 0.\nFalse\nResponse Arguments\nName\nType\nDescription\nnext_offset\nInteger\nDisplays the next offset for retrieval of additional results. -1 will be returned when there are no more records.\nrecords\nArray\nAn array of results containing matched records.\nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleauditexport_GET/index.html"} {"id": "dd8c987185ff-1", "text": "{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"b569e480-237a-5921-4382-512ff555fee7\",\n \"parent_id\":\"ef1b40aa-5815-4f8d-e909-512d09617ac8\",\n \"date_created\":\"03\\/01\\/2013 12:26am\",\n \"created_by\":\"admin\",\n \"field_name\":\"Team ID:\",\n \"data_type\":\"team_list\",\n \"before_value_string\":\"East\",\n \"after_value_string\":\"Will\"\n },\n {\n \"id\":\"bc0bee72-8398-a0a6-d731-512ff5bfebc7\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleauditexport_GET/index.html"} {"id": "dd8c987185ff-2", "text": "\"parent_id\":\"ef1b40aa-5815-4f8d-e909-512d09617ac8\",\n \"date_created\":\"03\\/01\\/2013 12:26am\",\n \"created_by\":\"admin\",\n \"field_name\":\"Teams\",\n \"data_type\":\"id\",\n \"before_value_string\":\"East, Global, West\",\n \"after_value_string\":\"Jim, Will\"\n }\n ]\n}\nChange Log\nVersion\nChange\nv11_11\nAdded //audit/export GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleauditexport_GET/index.html"} {"id": "ad3945408d79-0", "text": "/Administration/elasticsearch/queue GET\nOverview\n [ADMIN] Elasticsearch queue statistics\nSummary\n This endpoint returns the queue statistics for the Elasticsearch backend. This endpoint is only available to\n administrators.\nResponse\n{\n \"total\":2238,\n \"queued\":{\n \"Cases\":\"250\",\n \"KBDocuments\":\"5\",\n \"Notes\":\"50\",\n \"Quotes\":\"2\",\n \"Accounts\":\"51\",\n \"Contacts\":\"201\",\n \"Leads\":\"201\",\n \"Opportunities\":\"150\",\n \"RevenueLineItems\":\"578\",\n \"Bugs\":\"50\",\n \"Contracts\":\"2\",\n \"Manufacturers\":\"2\",\n \"ProductCategories\":\"43\",\n \"Tasks\":\"200\",\n \"Calls\":\"50\",\n \"Emails\":\"200\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchqueue_GET/index.html"} {"id": "ad3945408d79-1", "text": "\"Calls\":\"50\",\n \"Emails\":\"200\",\n \"Meetings\":\"200\",\n \"Products\":\"3\"\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/queue GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchqueue_GET/index.html"} {"id": "55f40296fa1a-0", "text": "/Currencies GET\nReturns a collection of Currency models\nSummary:\nThis end point is used to return the Currencies defined in the application\nUrl Parameters:\nParam\nDescription\nOptional\nPossible Errors\nError\nDescription\nUrl Example:\n /rest/v10/Currencies\n \nOutput Example:\n {\n \"next_offset\": -1,\n \"records\": [\n {\n \"id\": \"-99\",\n \"name\": \"US Dollars\",\n \"symbol\": \"$\",\n \"iso4217\": \"USD\",\n \"conversion_rate\": 1,\n \"status\": \"Active\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Currencies\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Currencies_GET/index.html"} {"id": "55f40296fa1a-1", "text": "},\n \"_module\": \"Currencies\"\n },\n {\n \"id\": \"a3cba348-756c-935c-66ad-55d772c7960f\",\n \"name\": \"Euro\",\n \"symbol\": \"\u00e2\u0082\u00ac\",\n \"iso4217\": \"EUR\",\n \"conversion_rate\": 0.9,\n \"status\": \"Active\",\n \"date_modified\": \"2015-08-21T11:47:51-07:00\",\n \"created_by\": \"1\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Currencies\"\n }\n ]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Currencies_GET/index.html"} {"id": "0981ec500aa8-0", "text": "/pmse_Project/project/:record PUT\nOverview\n Updates the schema data from the Process Definition designer\nSummary\n This endpoint will update the Process Definition identified by the\n record input parameter with data provided in the request\n payload.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe Process Definition record ID\nTrue\nRequest Payload\n{\n \"data\":\n {\n \"activities\":{},\n \"gateways\":\n {\n \"407410601573ce3125db315056173234\":\n {\n \"action\":\"REMOVE\",\n \"gat_uid\":\"407410601573ce3125db315056173234\"\n }\n },\n \"events\":{},\n \"artifacts\":{},\n \"flows\":{},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_PUT/index.html"} {"id": "0981ec500aa8-1", "text": "\"artifacts\":{},\n \"flows\":{},\n \"prj_uid\":\"2119da13-f748-4741-3858-573caddda034\"\n },\n \"id\":\"2119da13-f748-4741-3858-573caddda034\",\n \"operation\":\"update\",\n \"wrapper\":\"Project\"\n}\nResponse Arguments\nName\nType\nDescription\nsuccess\nBoolean\nThe status of the update operation\nResponse\n{\n \"success\":true\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_PUT/index.html"} {"id": "dc75462b036d-0", "text": "//:record/link/:link_name/leancount GET\nOverview\n Lists related filtered records.\nSummary\n This endpoint will return a set of related records filtered by an expression. The filter can be applied to multiple\n fields and have multiple and/or conditions in it. Care will need to be taken to make sure this filter has\n appropriate indexes on the server side otherwise the runtime of the endpoint will be very long. Related fields can\n be searched by specifying the field name as: \"link_name.remote_field\", so if you wished to search the Accounts\n module by a related member account you would use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-1", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. The field date_modified will always be returned. This argument\n can be combined with the view argument.\n \n Example: name,account_type,description\n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-2", "text": "in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\n Example\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-3", "text": "would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-4", "text": "$contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-5", "text": "Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-6", "text": "}\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\n Example\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-7", "text": "Array\n \n An array of results containing matched records.\n \nRepsonse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-8", "text": "\"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Dale\",\n \"last_name\":\"Spivey\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-9", "text": "\"last_name\":\"Spivey\",\n \"full_name\":\"Dale Spivey\",\n \"title\":\"VP Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(523) 825-4311\",\n \"email\":[\n {\n \"email_address\":\"sugar.dev.sugar@example.co.jp\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.support@example.biz\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-10", "text": "\"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"phone_mobile\":\"(373) 861-0757\",\n \"phone_work\":\"(212) 542-9596\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"sugar.dev.sugar@example.co.jp\",\n \"email2\":\"the.support@example.biz\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"345 Sugar Blvd.\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-11", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"87261\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Campaign\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-12", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"DaleSpivey97\",\n \"portal_active\":true,\n \"portal_password\":\"$1$yKMAONHM$Y5S.8CY.WZCZCwfGD1a1Q\\/\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-13", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-14", "text": "\"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Florence\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-15", "text": "\"salutation\":\"\",\n \"first_name\":\"Florence\",\n \"last_name\":\"Haddock\",\n \"full_name\":\"Florence Haddock\",\n \"title\":\"Director Sales\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(729) 845-3137\",\n \"email\":[\n {\n \"email_address\":\"dev.vegan@example.de\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"section71@example.it\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-16", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(246) 233-1382\",\n \"phone_work\":\"(565) 696-6981\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"section71@example.it\",\n \"email2\":\"dev.vegan@example.de\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"111 Silicon Valley Road\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Denver\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-17", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"79900\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Smallville Resources Inc\",\n \"account_id\":\"d5db6292-5c24-eb61-e202-512d09f0134e\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-18", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"FlorenceHaddock169\",\n \"portal_active\":true,\n \"portal_password\":\"$1$nWFhTbK6$JF9BCGSqL\\/NCrbhueX5ia0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "dc75462b036d-19", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameleancount_GET/index.html"} {"id": "7cbba1a75b08-0", "text": "//sync_key/:sync_key_field_value DELETE\nOverview\nDeletes the record with the given sync_key.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n//sync_key/:sync_key_field_value\nResponse Arguments\nName\nType\nDescription\nrecord\nString\nThe ID of the record that was deleted.\nResponse\nStatus 200\n{ \"id\": \"a0328573-a252-a27c-3530-4e4297d4c9e1\"} \nChange Log\nVersion\nChange\nv11_10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulesync_keysync_key_field_value_DELETE/index.html"} {"id": "7cbba1a75b08-1", "text": "Change Log\nVersion\nChange\nv11_10\nAdded //sync_key/:sync_key_field_value\u00c2\u00a0DELETE endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulesync_keysync_key_field_value_DELETE/index.html"} {"id": "991e3b31334e-0", "text": "/Users/:record DELETE\nDelete a User and return its ID\nSummary:\n This endpoint is used to delete a User. Returns the ID of the deleted User.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecord_DELETE/index.html"} {"id": "d3b28072b7e8-0", "text": "/pmse_Emails_Templates/file/emailtemplates_import POST\nOverview\n Imports a Process Email Templates definition from a .pet file\nSummary\n This endpoint will import a Process Email Templates definition from the\n uploaded .pet file containing JSON encoded data.\nRequest Arguments\nName\nType\nDescription\nRequired\nN/A\nRequest\nNote: A JSON encoded .pet file attachment should be included with\nthe request as part of the form-data.\nResponse Arguments\nName\nType\nDescription\nemailtemplates_import\nObject\nResult of the import operation\nResponse\n{\n \"emailtemplates_import\":\n {\n \"success\":true,\n \"id\":\"aa5f7fd9-73a9-8338-fd1a-573635ce5c51\"\n }\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesfileemailtemplates_import_POST/index.html"} {"id": "d3b28072b7e8-1", "text": "}\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesfileemailtemplates_import_POST/index.html"} {"id": "76e6f844be8f-0", "text": "/Administration/settings/auth GET\nOverview\n [ADMIN] Fetch auth settings.\nSummary\n This endpoint will return auth settings. This endpoint is only available to administrators when IDM migration is turned on.\nResponse if enabled only local auth provider\n{\n \"enabledProviders\": [\n \"local\"\n ],\n \"local\": {\n \"password_requirements\": {\n \"minimum_length\": 6,\n \"maximum_length\": 0,\n \"require_upper\": true,\n \"require_lower\": true,\n \"require_number\": true,\n \"require_special\": false,\n \"password_regex\": \"\",\n \"regex_description\": \"\"\n },\n \"password_expiration\": {\n \"time\": 0,\n \"attempt\": 0\n }\n }\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "76e6f844be8f-1", "text": "\"attempt\": 0\n }\n }\n}\nResponse if enabled local and ldap auth providers\n{\n \"enabledProviders\": [\n \"local\",\n \"ldap\"\n ],\n \"local\": {\n \"password_requirements\": {\n \"minimum_length\": 6,\n \"maximum_length\": 0,\n \"require_upper\": true,\n \"require_lower\": true,\n \"require_number\": true,\n \"require_special\": false,\n \"password_regex\": \"\",\n \"regex_description\": \"\"\n },\n \"password_expiration\": {\n \"time\": 0,\n \"attempt\": 0\n }\n },\n \"ldap\": {\n \"user\": {\n \"mapping\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "76e6f844be8f-2", "text": "\"ldap\": {\n \"user\": {\n \"mapping\": {\n \"givenName\": \"first_name\",\n \"sn\": \"last_name\",\n \"mail\": \"email1\",\n \"telephoneNumber\": \"phone_work\",\n \"facsimileTelephoneNumber\": \"phone_fax\",\n \"mobile\": \"phone_mobile\",\n \"street\": \"address_street\",\n \"l\": \"address_city\",\n \"st\": \"address_state\",\n \"postalCode\": \"address_postalcode\",\n \"c\": \"address_country\"\n }\n },\n \"adapter_config\": {\n \"host\": \"127.0.0.1\",\n \"port\": \"389\",\n \"options\": {\n \"network_timeout\": 60,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "76e6f844be8f-3", "text": "\"options\": {\n \"network_timeout\": 60,\n \"timelimit\": 60\n },\n \"encryption\": \"none\"\n },\n \"adapter_connection_protocol_version\": 3,\n \"baseDn\": \"dc=openldap,dc=com\",\n \"uidKey\": \"uid\",\n \"filter\": \"({uid_key}={username})\",\n \"dnString\": null,\n \"entryAttribute\": null,\n \"autoCreateUser\": \"1\",\n \"searchDn\": \"cn=admin,ou=admins,dc=openldap,dc=com\",\n \"searchPassword\": \"admin&password\"\n }\n}\nResponse if enabled local and saml auth providers\n{\n \"enabledProviders\": [\n \"local\",\n \"saml\"\n ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "76e6f844be8f-4", "text": "\"local\",\n \"saml\"\n ],\n \"local\": {\n \"password_requirements\": {\n \"minimum_length\": 6,\n \"maximum_length\": 0,\n \"require_upper\": true,\n \"require_lower\": true,\n \"require_number\": true,\n \"require_special\": false,\n \"password_regex\": \"\",\n \"regex_description\": \"\"\n },\n \"password_expiration\": {\n \"time\": 0,\n \"attempt\": 0\n }\n },\n \"saml\": {\n \"strict\": true,\n \"debug\": false,\n \"sp\": {\n \"entityId\": \"logoutFlowWithRedirectBinding\",\n \"assertionConsumerService\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "76e6f844be8f-5", "text": "\"assertionConsumerService\": {\n \"url\": \"http://localhost/index.php?module=Users&action=Authenticate\",\n \"binding\": \"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\"\n },\n \"singleLogoutService\": {\n \"url\": \"http://localhost/index.php?module=Users&action=Logout\",\n \"binding\": \"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n },\n \"NameIDFormat\": \"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress\",\n \"x509cert\": \"\",\n \"privateKey\": \"\",\n \"provisionUser\": true,\n \"sugarCustom\": []\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "76e6f844be8f-6", "text": "\"provisionUser\": true,\n \"sugarCustom\": []\n },\n \"idp\": {\n \"entityId\": \"http://localhost:8080/simplesaml/saml2/idp/metadata.php\",\n \"singleSignOnService\": {\n \"url\": \"http://localhost:8080/simplesaml/saml2/idp/SSOService.php\",\n \"binding\": \"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"\n },\n \"singleLogoutService\": {\n \"url\": \"http://localhost:8080/simplesaml/saml2/idp/SingleLogoutService.php\",\n \"binding\": \"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "76e6f844be8f-7", "text": "},\n \"x509cert\": \"-----BEGIN CERTIFICATE-----\\n --x509cert-- \\n-----END CERTIFICATE-----\"\n },\n \"security\": {\n \"authnRequestsSigned\": false,\n \"logoutRequestSigned\": false,\n \"logoutResponseSigned\": false,\n \"signatureAlgorithm\": \"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\",\n \"validateRequestId\": false\n }\n }\n}\nChange Log\nVersion\nChange\n v11_2\n \n Added /Administration/settings/auth GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsettingsauth_GET/index.html"} {"id": "3aaec6497378-0", "text": "/integrate//:record_id/:sync_key_field_name/:sync_key_field_value PUT\nOverview\nSets a sync key value for a record. Note that the PATCH method is recommended over the PUT method.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nrecord_id\nString\nThe ID of the record whose sync key will be set\nTrue\nsync_key_field_name\nString\nThe name of the field that contains sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulerecord_idsync_key_field_namesync_key_field_value_PUT/index.html"} {"id": "3aaec6497378-1", "text": "String\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n/integrate//:record_id/:sync_key_field_name/:sync_key_field_value\nResponse\n{\"success\": true}\nChange Log\nVersion\nChange\nv11_10\nAdded /integrate//:record_id/:sync_key_field_name/:sync_key_field_value\u00c2\u00a0PUT endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulerecord_idsync_key_field_namesync_key_field_value_PUT/index.html"} {"id": "f6cc78db8645-0", "text": "/pmse_Emails_Templates/variables/find GET\nOverview\n Get the variable list for a module\nSummary\n This endpoint will retrieve a list of variables that can be used in the\n Process Email Templates definition from the specified module. Input\n parameters are passed in as the URL query string. Pagination is supported.\nRequest Arguments\nName\nType\nDescription\nRequired\nbase_module\nString\nThe name of the target module of the Process Email Templates definition.\nTrue\nmodule_list\nString\n The name of the module the variable list is retrieved from.\n Should be related to the base_module.\n \nTrue\nq\nString\nOnly variables with name containing this search string will be returned.\nFalse\nmax_num\nInteger\nMaximum number of variables to return for this request.\nFalse\noffset\nInteger", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesvariablesfind_GET/index.html"} {"id": "f6cc78db8645-1", "text": "Integer\nMaximum number of variables to return for this request.\nFalse\noffset\nInteger\n The index of the first variable in the whole list to return for this request.\n Use \"end\" to indicate no variable should be returned.\n \nFalse\norder_by\nString\n Property to sort the variable list by. For example, \"name:asc,id:desc\"\n will sort the returned variable list by name ASC first and then id DESC.\n \nFalse\nRequest\nrest/v11/pmse_Emails_Templates/variables/find?max_num=20&order_by=date_modified%3Adesc&module_list=Quotes&base_module=Quotes\nResponse Arguments\nName\nType\nDescription\nnext_offset\nInteger\nThe offset value that should be used to retrieve the next batch of the list.\nrecords\nArray", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesvariablesfind_GET/index.html"} {"id": "f6cc78db8645-2", "text": "records\nArray\nA sorted array of variable objects.\nResponse\n{\n \"next_offset\":20,\n \"records\":[\n {\n \"id\":\"date_quote_expected_closed\",\n \"_module\":\"Quotes\",\n \"name\":\"Valid Until\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"total_usdollar\",\n \"_module\":\"Quotes\",\n \"name\":\"Total (US Dollar)\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"total\",\n \"_module\":\"Quotes\",\n \"name\":\"Total\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"tax_usdollar\",\n \"_module\":\"Quotes\",\n \"name\":\"Tax (US Dollar)\",\n \"rhs_module\":\"Quotes\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesvariablesfind_GET/index.html"} {"id": "f6cc78db8645-3", "text": "\"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"tax\",\n \"_module\":\"Quotes\",\n \"name\":\"Tax\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"subtotal_usdollar\",\n \"_module\":\"Quotes\",\n \"name\":\"Subtotal (US Dollar)\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"subtotal\",\n \"_module\":\"Quotes\",\n \"name\":\"Subtotal\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"shipping_address_state\",\n \"_module\":\"Quotes\",\n \"name\":\"Shipping State\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"shipping_address_postalcode\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesvariablesfind_GET/index.html"} {"id": "f6cc78db8645-4", "text": "},\n {\n \"id\":\"shipping_address_postalcode\",\n \"_module\":\"Quotes\",\n \"name\":\"Shipping Postal Code\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"shipping_address_country\",\n \"_module\":\"Quotes\",\n \"name\":\"Shipping Country\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"shipping_address_city\",\n \"_module\":\"Quotes\",\n \"name\":\"Shipping City\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"shipping_address_street\",\n \"_module\":\"Quotes\",\n \"name\":\"Shipping Address\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"shipping_usdollar\",\n \"_module\":\"Quotes\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesvariablesfind_GET/index.html"} {"id": "f6cc78db8645-5", "text": "\"id\":\"shipping_usdollar\",\n \"_module\":\"Quotes\",\n \"name\":\"Shipping (US Dollar)\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"shipping\",\n \"_module\":\"Quotes\",\n \"name\":\"Shipping\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"quote_type\",\n \"_module\":\"Quotes\",\n \"name\":\"Quote Type\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"name\",\n \"_module\":\"Quotes\",\n \"name\":\"Quote Subject\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"quote_stage\",\n \"_module\":\"Quotes\",\n \"name\":\"Quote Stage\",\n \"rhs_module\":\"Quotes\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesvariablesfind_GET/index.html"} {"id": "f6cc78db8645-6", "text": "\"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"quote_num\",\n \"_module\":\"Quotes\",\n \"name\":\"Quote Number\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"purchase_order_num\",\n \"_module\":\"Quotes\",\n \"name\":\"Purchase Order Num\",\n \"rhs_module\":\"Quotes\"\n },\n {\n \"id\":\"payment_terms\",\n \"_module\":\"Quotes\",\n \"name\":\"Payment Terms\",\n \"rhs_module\":\"Quotes\"\n }\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templatesvariablesfind_GET/index.html"} {"id": "570c725ddc28-0", "text": "//globalsearch GET\nOverview\n Global search\nSummary\n This endpoint exposes the global search capability using solely the Elasticsearch backend as an alternative to the\n /search endpoint. This endpoint can be used with a long list of request arguments. Instead of using GET request\n arguments, all described arguments can be used inside a JSON encoded request body using a the GET request. If your\n client has no support for GET requests with a body, the POST method can be used as an alternative.\nRequest Arguments\nName\nType\nDescription\nRequired\n q\n \n String\n \n The search expression. Multiple terms can be specified at once. All enabled fields will be searched in. The\n results are ordered by relevance which is based on a multitude of settings based on token counts, hit\n ratio, (weighted) boost values and type of field. Currently no operators are supported in the search", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_GET/index.html"} {"id": "570c725ddc28-1", "text": "expression itself. By refining the search expression more relevant results will be returned as top results.\n If no search expression is given results are returned based on last modified date.\n \n False\n \n module_list\n \n String\n \n Comma delimited list of modules to search. If omitted, all search enabled modules will be queried. Note that\n when consuming the endpoint /:module/globalsearch that this parameter is ignored.\n \n Example: Accounts,Contacts\n False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n highlights\n \n Boolean", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_GET/index.html"} {"id": "570c725ddc28-2", "text": "False\n \n highlights\n \n Boolean\n \n Wether or not to return highlighted results. Default is true.\n \n False\n \n sort\n \n Array\n \n Define the sort order of the results. By default the results are returned by relevance which is the\n preferred approach. Using this argument any search enabled field can be used to sort on. Keep in mind the\n not sorting by relevance may have a negative performance impact.\n \n Example: {\"date_modified\":\"desc\",\"name\":\"asc\"}\n False\n \nRequest\n{\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_GET/index.html"} {"id": "570c725ddc28-3", "text": "records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added /globalsearch GET/POST endpoint.\n \n v10\n \n Added /:module/globalsearch GET/POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleglobalsearch_GET/index.html"} {"id": "53f48692b602-0", "text": "/ForecastManagerWorksheets/assignQuota POST\nAssign Quotas to All Reporting Users for a given timeperiod\nSummary:\n This endpoint is used to assign out the quota to the reporting users with out having to commit a forecast.\nParameters:\nParam\nDescription\nOptional\nuser_id\nThe Manager's user id for who is assigning out the quota\nfalse\ntimeperiod_id\nWhich timeperiod are we assigning quota for\nfalse\nInput Example:\n { \"user_id\" : \"seed_sarah_id\",\n \"timeperiod_id\" : \"36f7085a-5889-ea75-84c8-50f42bd1a5ba\"\n }\n \nOutput Example:\n {success: true}\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ForecastManagerWorksheetsassignQuota_POST/index.html"} {"id": "0c3a9c4c358a-0", "text": "/OutboundEmailConfiguration/list GET\nOverview\n Lists the current user's outbound email configurations for sending email.\nSummary\n Used by the Emails module for selecting an outbound email configuration for sending an email.\nResponse\n[\n {\n \"id\": \"ecbf2a6c-261e-5fca-fbb6-512d093554b8\",\n \"name\": \"George Lee \",\n \"type\": \"user\",\n \"default\": false\n },\n {\n \"id\": \"af5f8dae-7169-b497-1d77-512d0937ed81\",\n \"name\": \"ACME, Inc. \",\n \"type\": \"system\",\n \"default\": true\n }\n]\nChange Log\nVersion\nChange\n v11", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailConfigurationlist_GET/index.html"} {"id": "0c3a9c4c358a-1", "text": "}\n]\nChange Log\nVersion\nChange\n v11\n \n Last version in which /OutboundEmailConfiguration/list GET is available. Use\n /Emails/enum/outbound_email_id GET instead.\n \n v10\n \n Added the /OutboundEmailConfiguration/list GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailConfigurationlist_GET/index.html"} {"id": "c3931eab740a-0", "text": "/Leads/register POST\nOverview\n Creates new Leads.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"first_name\":\"John\",\n \"last_name\":\"Smith\"\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the newly created record.\n \nResponse\n{\n \"id\":\"ecba9f86-4a4a-def6-359c-505a5b33f014\",\n \"name\":\"John Smith\",\n \"date_entered\":\"2012-09-19T23:54:54+0000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Leadsregister_POST/index.html"} {"id": "c3931eab740a-1", "text": "\"date_modified\":\"2012-09-19T23:54:54+0000\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"deleted\":0,\n \"team_id\":\"1\",\n \"team_set_id\":\"1\",\n \"first_name\":\"John\",\n \"last_name\":\"Smith\",\n \"full_name\":\"John Smith\",\n \"do_not_call\":false,\n \"converted\":false,\n \"lead_source\":\"Support Portal User Registration\",\n \"status\":\"New\",\n \"preferred_language\":\"en_us\",\n \"email\":[\n ],\n \"my_favorite\":false\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Leads/register POST endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Leadsregister_POST/index.html"} {"id": "c3931eab740a-2", "text": "v10\n \n Added /Leads/register POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Leadsregister_POST/index.html"} {"id": "582ce205b639-0", "text": "/Administration/settings/idmMode DELETE\nOverview\n [ADMIN] Turn IDM-mode off.\nSummary\n This endpoint switches IDM mode off. This is only available to administrators when IDM migration is turned on and intended for internal use for IDM integration.\nResponse when IDM mode has been disabled\n[]\nChange Log\nVersion\nChange\n v11_2\n \n Added /Administration/settings/idmMode DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/AdministrationsettingsidmMode_DELETE/index.html"} {"id": "23382743f176-0", "text": "/Emails/:record/link/:link_name/add_record_list/:remote_id POST\nOverview\n Creates relationships to a pre-existing email from a record list.\nSummary\n Cannot link existing Notes records as attachments (link: attachments) and existing EmailParticipants records\n as a sender (link: from) or recipients(links: to, cc, bcc). All other operations\n described in Relate Record API are supported.\nChange Log\nVersion\nChange\n v10\n \n Added /Emails/:record/link/:link_name/add_record_list/:remote_id POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecordlinklink_nameadd_record_listremote_id_POST/index.html"} {"id": "7fae53476ffd-0", "text": "/Forecasts/init GET\nForecastsApi - init\nSummary:\n This endpoint is used to return initialization data for the Forecasts module.\nQuery Parameters:\nParam\nDescription\nOptional\nThis endpoint does not accept any parameters.\nInput Example:\nOutput Example:\n{\n \"initData\":\n {\n \"selectedUser\":\n {\n \"preferences\":\n {\n \"timezone\":\"GMT\",\n \"datepref\":\"m\\/d\\/Y\",\n \"timepref\":\"h:ia\",\n \"currency_id\":\"-99\",\n \"currency_name\":\"US Dollars\",\n \"currency_symbol\":\"$\",\n \"currency_iso\":\"USD\",\n \"currency_rate\":1,\n \"decimal_precision\":\"2\",\n \"decimal_separator\":\".\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsinit_GET/index.html"} {"id": "7fae53476ffd-1", "text": "\"decimal_separator\":\".\",\n \"number_grouping_separator\":\",\",\n \"language\":\"en_us\",\n \"default_teams\":\n [{\n \"id\":1,\n \"display_name\":\"Global\",\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":true\n }]\n },\n \"module_list\":\n [\n \"Home\",\n \"Accounts\",\n \"Contacts\",\n \"Opportunities\",\n \"Leads\",\"Calendar\",\n \"Reports\",\n \"Quotes\",\n \"Documents\",\n \"Emails\",\n \"Campaigns\",\n \"Calls\",\n \"Meetings\",\n \"Tasks\",\n \"Notes\",\n \"Forecasts\",\n \"Cases\",\n \"Prospects\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsinit_GET/index.html"} {"id": "7fae53476ffd-2", "text": "\"Forecasts\",\n \"Cases\",\n \"Prospects\",\n \"ProspectLists\",\n \"Bugs\",\n \"Employees\"\n ],\n \"type\":\"user\",\n \"id\":\"seed_jim_id\",\n \"full_name\":\"Jim Brennan\",\n \"user_name\":\"jim\",\n \"picture\":\"46d1fbfb-c258-ce81-fa3a-50f809925709\",\n \"acl\":\n {\n \"Forecasts\":{\"fields\":[],\"admin\":\"no\",\"_hash\":\"095777549714234c8192a7a7963c38b8\"},\n \"ForecastWorksheets\":{\"fields\":[],\"admin\":\"no\",\"_hash\":\"095777549714234c8192a7a7963c38b8\"},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsinit_GET/index.html"} {"id": "7fae53476ffd-3", "text": "\"ForecastManagerWorksheets\":{\"fields\":[],\"admin\":\"no\",\"_hash\":\"095777549714234c8192a7a7963c38b8\"},\n },\n \"my_teams\":\n [\n {\"id\":\"8833dfef-c1f4-e8b3-ca3b-50f8093616be\",\"name\":\"Chris Olliver\"},\n {\"id\":\"East\",\"name\":\"East\"},{\"id\":1,\"name\":\"Global\"},\n {\"id\":\"4ae6baba-f356-7374-7eb4-50f809745551\",\"name\":\"Jim Brennan\"},\n {\"id\":\"707a642a-710b-37f1-88f6-50f8098205c0\",\"name\":\"Max Jensen\"},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsinit_GET/index.html"} {"id": "7fae53476ffd-4", "text": "{\"id\":\"63308ab9-f663-bae8-90a5-50f80951c0fe\",\"name\":\"Sally Bronsen\"},\n {\"id\":\"5776c705-8e6e-4bfc-44e5-50f809d12c0e\",\"name\":\"Sarah Smith\"},\n {\"id\":\"West\",\"name\":\"West\"},\n {\"id\":\"7cf7ee0b-f88e-b566-d4d3-50f809dcb717\",\"name\":\"Will Westin\"}\n ],\n \"showOpps\":false,\n \"first_name\":\"Jim\",\n \"last_name\":\"Brennan\",\n \"admin\":\"yes\"\n },\n \"forecasts_setup\":1\n },\n \"defaultSelections\":\n {\n \"timeperiod_id\":\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsinit_GET/index.html"} {"id": "7fae53476ffd-5", "text": "{\n \"timeperiod_id\":\n {\n \"id\":\"a2ab9ad3-2101-36f8-7ba3-50f809b3b62c\",\n \"label\":\"Q1 (01\\/01\\/2013 - 03\\/31\\/2013)\"\n },\n \"ranges\":[\"include\"],\n \"group_by\":\"forecast\",\n \"dataset\":\"likely\"\n }\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecastsinit_GET/index.html"} {"id": "ec0bbc04a891-0", "text": "//:record/movefirst/:target PUT\nOverview\n Move existing node as first child of target node.\nRequest Arguments\nName\nType\nDescription\nRequired\n module\n \n String\n \n The name of sugar module that contains a nested set data and implements the NestedSetInterface.\n \n True\n \n target\n \n String\n \n The ID of record that will be used as target to move node as first child\n \n True\n \nResponse Arguments\n This endpoint does not return any response arguments.\nResponse\nThis endpoint return a record GUID that was moved\n\"1b7b868d-7357-2e29-7513-54169bdc444d\"\nChange Log\nVersion\nChange\n v10\n \n Added //movefirst/:target PUT endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordmovefirsttarget_PUT/index.html"} {"id": "ec0bbc04a891-1", "text": "Added //movefirst/:target PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordmovefirsttarget_PUT/index.html"} {"id": "24c1e8708045-0", "text": "/me GET\nOverview\n Returns the current user object.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nResponse User\n{\n \"current_user\":{\n \"type\":\"user\",\n \"id\":\"1\",\n \"full_name\":\"Administrator\",\n \"timepref\":\"h:ia\",\n \"timezone\":\"America/Los_Angles\",\n \"user_name\":\"admin\"\n }\n}\nResponse Portal User\n{\n \"current_user\":{\n \"type\":\"support_portal\",\n \"id\":\"1234-567\",\n \"user_id\":\"abcd-123\",\n \"full_name\":\"Bill Williamson\",\n \"timepref\":\"h:ia\",\n \"timezone\":\"America/Denver\",\n \"user_name\":\"SupportPortalApi\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/me_GET/index.html"} {"id": "24c1e8708045-1", "text": "\"user_name\":\"SupportPortalApi\"\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added /me GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/me_GET/index.html"} {"id": "1a94b851a415-0", "text": "//:record/file/:field GET\nOverview\n Retrieves an attached file for a specific field on a record.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\n The response from this request is an HTTP response with a forced download. This can be used in rendering images through the API or in offering immediate file downloads.\nResponse\nCache-Control: no-cache, must-revalidate Connection: keep-alive Content-Encoding: gzip Content-Type: application/octet-stream Date: Mon, 30 Jan 2012 17:00:46 GMT Expires: Mon, 30 Jan 2012 17:00:45 GMT Last-Modified: Thu, 10 Nov 2011 19:01:31 GMT Transfer-Encoding: chunked Vary: Accept-Encoding...\nChange Log\nVersion\nChange\n v10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_GET/index.html"} {"id": "1a94b851a415-1", "text": "Change Log\nVersion\nChange\n v10\n \n Added //:record/file/:field GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfilefield_GET/index.html"} {"id": "0767ec9d14d1-0", "text": "/Reports/:record/chart GET\nOverview\n An API to get chart data for a saved report.\nSummary\n This endpoint will return chart data for a saved report.\nRequest Arguments\n None.\nRequest Example\nGET /rest/v10/Reports/:id/chart\nResponse Arguments\nName\nType\nDescription\n reportData\n \n Array\n \n Report def for the chart.\n \n chartData\n \n Array\n \n The chart data for a report.\n \nResponse\n{\n \"reportData\":\n {\n \"label\":\"Accounts by Industry\",\n \"id\":\"a06b4212-3509-11e7-ab6e-f45c898a3ce7\",\n ...\n },\n \"chartData\":\n {\n \"properties\":[...],\n \"values\":[...],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordchart_GET/index.html"} {"id": "0767ec9d14d1-1", "text": "{\n \"properties\":[...],\n \"values\":[...],\n ...\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Reportsrecordchart_GET/index.html"} {"id": "74d00cdaca55-0", "text": "/Administration/idm/migration/disable POST\nOverview\n [ADMIN] Disable Idm migrations\nSummary\n This endpoint disables Idm migrations. This endpoint is only available to administrators.\nRequest Arguments\n This endpoint does not accept any arguments.\nResponse\n{\n \"success\": true\n}\nChange Log\nVersion\nChange\n v11_2\n \n Added Administration/idm/migration/disable POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationidmmigrationdisable_POST/index.html"} {"id": "e9731a7b352b-0", "text": "/Administration/packages/:id/uninstall GET\nOverview\n[ADMIN] PackageManager uninstall a package.\nSummary\nUninstalls the specified package. Package id hash must be provided. Package id could be found in installed package list.\nResponse\nReturns http status 200 OK and newly installed package ID if request is successful. Otherwise returns http status 4xx with errors.\n{\n\"error\": \"not_found\",\n\"error_message\": \"Could not find package by ID.\"\n}\nChange Log\nVersion\nChange\nv11.8\nAdded /Administration/packages/:id/uninstall\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationpackagesiduninstall_GET/index.html"} {"id": "867db9ee5b6f-0", "text": "/Quotes/:record/opportunity POST\nOverview\n Quote Convert to Opportunity\nSummary\n This endpoint converts a Quote to an Opportunity.\nRequest Arguments\nNONE\nResponse Arguments\nNONE\nResponse\nCreated Opportunity:\n{\n \"record\": {\n \"id\": \"31a601ee-2d3f-11e8-bfae-024289eecda3\",\n \"name\": \"Mirrors for J.K.M. Corp (HA)\",\n \"date_entered\": \"2018-03-21T19:36:47+00:00\",\n \"date_modified\": \"2018-03-21T19:36:47+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"admin\",\n \"modified_user_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-1", "text": "\"modified_user_link\": {\n \"full_name\": \"admin\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"\",\n \"created_by_link\": {\n \"full_name\": \"\",\n \"id\": \"1\",\n \"_acl\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-2", "text": "\"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"deleted\": false,\n \"opportunity_type\": \"New Business\",\n \"account_name\": \"\",\n \"accounts\": {\n \"name\": \"\",\n \"id\": \"0029279c-2d3d-11e8-a121-024289eecda3\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-3", "text": "\"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"account_id\": \"0029279c-2d3d-11e8-a121-024289eecda3\",\n \"campaign_name\": \"\",\n \"campaign_opportunities\": {\n \"name\": \"\",\n \"id\": null,\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"amount\": \"520.000000\",\n \"amount_usdollar\": \"520.000000\",\n \"date_closed\": \"2012-04-30\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-4", "text": "\"date_closed\": \"2012-04-30\",\n \"date_closed_timestamp\": 1335744000,\n \"sales_stage\": \"Prospecting\",\n \"sales_status\": \"In Progress\",\n \"probability\": 10,\n \"best_case\": \"520.000000\",\n \"worst_case\": \"520.000000\",\n \"commit_stage\": \"exclude\",\n \"total_revenue_line_items\": 1,\n \"closed_revenue_line_items\": 0,\n \"included_revenue_line_items\": 0,\n \"mkto_sync\": false,\n \"assigned_user_id\": \"seed_max_id\",\n \"assigned_user_name\": \"Max Jensen\",\n \"assigned_user_link\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-5", "text": "\"assigned_user_link\": {\n \"full_name\": \"Max Jensen\",\n \"id\": \"seed_max_id\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_id\": \"1\",\n \"team_set_id\": \"1\",\n \"acl_team_set_id\": \"f846e71c-2d3c-11e8-a9e4-024289eecda3\",\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-6", "text": "\"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"currency_id\": \"-99\",\n \"base_rate\": \"1.000000\",\n \"currency_name\": \"\",\n \"currencies\": {\n \"name\": \"\",\n \"id\": \"-99\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },\n \"symbol\": \"\"\n },\n \"currency_symbol\": \"\",\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Opportunities\"\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-7", "text": "},\n \"_module\": \"Opportunities\"\n },\n \"related_record\": {\n \"id\": \"23d19cec-2d3d-11e8-b4bf-024289eecda3\",\n \"name\": \"Mirrors for J.K.M. Corp (HA)\",\n \"date_entered\": \"2018-03-21T19:20:19+00:00\",\n \"date_modified\": \"2018-03-21T19:36:47+00:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"admin\",\n \"modified_user_link\": {\n \"full_name\": \"admin\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-8", "text": "\"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"created_by_link\": {\n \"full_name\": \"Administrator\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": {\n \"pwd_last_changed\": {\n \"write\": \"no\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-9", "text": "\"pwd_last_changed\": {\n \"write\": \"no\",\n \"create\": \"no\"\n },\n \"last_login\": {\n \"write\": \"no\",\n \"create\": \"no\"\n }\n },\n \"delete\": \"no\",\n \"_hash\": \"08b99a97c2e8d792f7a44d8882b5af6d\"\n }\n },\n \"description\": \"\",\n \"deleted\": false,\n \"shipper_id\": \"\",\n \"shipper_name\": \"\",\n \"shippers\": {\n \"name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-10", "text": "}\n },\n \"taxrate_id\": \"2254f224-2d3d-11e8-925e-024289eecda3\",\n \"taxrate_name\": \"8.25 - Cupertino, CA\",\n \"taxrates\": {\n \"name\": \"8.25 - Cupertino, CA\",\n \"id\": \"2254f224-2d3d-11e8-925e-024289eecda3\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"taxrate_value\": \"8.250000\",\n \"show_line_nums\": true,\n \"quote_type\": \"Quotes\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-11", "text": "\"quote_type\": \"Quotes\",\n \"date_quote_expected_closed\": \"2012-04-30\",\n \"original_po_date\": \"\",\n \"payment_terms\": \"Net 15\",\n \"date_quote_closed\": \"\",\n \"date_order_shipped\": \"\",\n \"order_stage\": \"\",\n \"quote_stage\": \"Negotiation\",\n \"purchase_order_num\": \"3940021\",\n \"quote_num\": 2,\n \"subtotal\": \"520.000000\",\n \"subtotal_usdollar\": \"520.000000\",\n \"shipping\": \"0.000000\",\n \"shipping_usdollar\": \"0.000000\",\n \"discount\": \"\",\n \"deal_tot\": \"0.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-12", "text": "\"deal_tot\": \"0.000000\",\n \"deal_tot_discount_percentage\": 0,\n \"deal_tot_usdollar\": \"0.000000\",\n \"new_sub\": \"520.000000\",\n \"new_sub_usdollar\": \"520.000000\",\n \"taxable_subtotal\": \"520.000000\",\n \"tax\": \"42.900000\",\n \"tax_usdollar\": \"42.900000\",\n \"total\": \"562.900000\",\n \"total_usdollar\": \"562.900000\",\n \"billing_address_street\": \"111 Silicon Valley Road\",\n \"billing_address_city\": \"Kansas City\",\n \"billing_address_state\": \"CA\",\n \"billing_address_postalcode\": \"47108\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-13", "text": "\"billing_address_postalcode\": \"47108\",\n \"billing_address_country\": \"USA\",\n \"shipping_address_street\": \"111 Silicon Valley Road\",\n \"shipping_address_city\": \"Kansas City\",\n \"shipping_address_state\": \"CA\",\n \"shipping_address_postalcode\": \"47108\",\n \"shipping_address_country\": \"USA\",\n \"shipping_account_name\": \"\",\n \"shipping_accounts\": {\n \"name\": \"\",\n \"id\": \"0029279c-2d3d-11e8-a121-024289eecda3\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-14", "text": "}\n },\n \"shipping_account_id\": \"\",\n \"shipping_contact_name\": \"\",\n \"shipping_contacts\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"shipping_contact_id\": \"\",\n \"account_name\": \"J.K.M. Corp (HA)\",\n \"billing_accounts\": {\n \"name\": \"J.K.M. Corp (HA)\",\n \"id\": \"0029279c-2d3d-11e8-a121-024289eecda3\",\n \"_acl\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-15", "text": "\"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"account_id\": \"0029279c-2d3d-11e8-a121-024289eecda3\",\n \"billing_account_name\": \"J.K.M. Corp (HA)\",\n \"billing_account_id\": \"0029279c-2d3d-11e8-a121-024289eecda3\",\n \"billing_contact_name\": \"\",\n \"billing_contacts\": {\n \"full_name\": \"\",\n \"id\": \"\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-16", "text": "\"id\": \"\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"billing_contact_id\": \"\",\n \"opportunity_name\": \"\",\n \"opportunities\": {\n \"name\": \"\",\n \"id\": \"23d19cec-2d3d-11e8-b4bf-024289eecda3\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"opportunity_id\": \"\",\n \"following\": \"\",\n \"my_favorite\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-17", "text": "\"following\": \"\",\n \"my_favorite\": false,\n \"tag\": [],\n \"locked_fields\": [],\n \"assigned_user_id\": \"seed_max_id\",\n \"assigned_user_name\": \"Max Jensen\",\n \"assigned_user_link\": {\n \"full_name\": \"Max Jensen\",\n \"id\": \"seed_max_id\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_count\": \"\",\n \"team_count_link\": {\n \"team_count\": \"\",\n \"id\": \"1\",\n \"_acl\": {\n \"fields\": [],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-18", "text": "\"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n }\n },\n \"team_name\": [{\n \"id\": \"1\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],\n \"currency_id\": \"-99\",\n \"base_rate\": \"1.000000\",\n \"currency_name\": \"\",\n \"currencies\": {\n \"name\": \"\",\n \"id\": \"-99\",\n \"_acl\": {\n \"fields\": [],\n \"_hash\": \"654d337e0e912edaa00dbb0fb3dc3c17\"\n },\n \"symbol\": \"\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "867db9ee5b6f-19", "text": "},\n \"symbol\": \"\"\n },\n \"currency_symbol\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Quotes\"\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Quotesrecordopportunity_POST/index.html"} {"id": "32c43dcd4ef5-0", "text": "//duplicateCheck POST\nOverview\n Runs a duplicate check against specified data.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"Airline\"\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the potential duplicate records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"c4c26496-5dbc-67dd-bf5c-512d0923889e\",\n \"name\":\"Airline Maintenance Co\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleduplicateCheck_POST/index.html"} {"id": "32c43dcd4ef5-1", "text": "\"name\":\"Airline Maintenance Co\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-26T19:12:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"East\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleduplicateCheck_POST/index.html"} {"id": "32c43dcd4ef5-2", "text": "\"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Other\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"123 Anywhere Street\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleduplicateCheck_POST/index.html"} {"id": "32c43dcd4ef5-3", "text": "\"billing_address_street\":\"123 Anywhere Street\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"Sunnyvale\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"48566\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(648) 452-3486\",\n \"phone_alternate\":\"\",\n \"website\":\"www.kidqa.it\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"123 Anywhere Street\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleduplicateCheck_POST/index.html"} {"id": "32c43dcd4ef5-4", "text": "\"shipping_address_street\":\"123 Anywhere Street\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"Sunnyvale\",\n \"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"48566\",\n \"shipping_address_country\":\"USA\",\n \"email1\":\"vegan.im@example.tw\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":false,\n \"invalid_email\":false,\n \"email\":[\n {\n \"email_address\":\"vegan.im@example.tw\",\n \"opt_out\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleduplicateCheck_POST/index.html"} {"id": "32c43dcd4ef5-5", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"phone85@example.tv\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n },\n \"duplicate_check_rank\":0\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //duplicateCheck POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleduplicateCheck_POST/index.html"} {"id": "6c527aaf235e-0", "text": "/ExpressionEngine/:record/related POST\nRetrieve a Forecasting Information In SugarChart Format\nSummary:\n This endpoint is used to return the json Data for SugarCharts to use to display the needed chart.\nQuery Parameters:\nParam\nDescription\nOptional\ntimeperiod_id\nShow for a specific time period\n\u00c2\u00a0\nuser_id\nShow for a specific user\n\u00c2\u00a0\ndisplay_manager\nPipeline or Committed are valid values.\n\u00c2\u00a0\ndataset\nWhich Forecast dataset to show, valid values are likely, best, worst. Defaults to likely if one is not specified\nOptional\ngroup_by\nShow Which fields the y-axis shows on the chart. Can be any field in the opportunity module, defaults to Sales Stage\nOptional\nranges\nPipeline or Committed are valid values.\nOptional\nInput Example:\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_POST/index.html"} {"id": "6c527aaf235e-1", "text": "Pipeline or Committed are valid values.\nOptional\nInput Example:\n{\n 'user_id':'seed_max_id,\n 'timeperiod_id':'36f7085a-5889-ea75-84c8-50f42bd1a5ba',\n 'display_manager':'false',\n 'group_by': 'forecast',\n 'dataset': 'likely',\n 'ranges': 'include',\n}\n \nOutput Example:\n { \"color\" : [ \"#8c2b2b\",\n \"#468c2b\",\n \"#2b5d8c\",\n \"#cd5200\",\n \"#e6bf00\",\n \"#7f3acd\",\n \"#00a9b8\",\n \"#572323\",\n \"#004d00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_POST/index.html"} {"id": "6c527aaf235e-2", "text": "\"#572323\",\n \"#004d00\",\n \"#000087\",\n \"#e48d30\",\n \"#9fba09\",\n \"#560066\",\n \"#009f92\",\n \"#b36262\",\n \"#38795c\",\n \"#3D3D99\",\n \"#99623d\",\n \"#998a3d\",\n \"#994e78\",\n \"#3d6899\",\n \"#CC0000\",\n \"#00CC00\",\n \"#0000CC\",\n \"#cc5200\",\n \"#ccaa00\",\n \"#6600cc\",\n \"#005fcc\"\n ],\n \"label\" : [ \"Include\" ],\n \"properties\" : [ { \"gauge_target_list\" : \"Array\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_POST/index.html"} {"id": "6c527aaf235e-3", "text": "\"goal_marker_color\" : [ \"#000000\",\n \"#7D12B2\"\n ],\n \"goal_marker_label\" : [ \"Quota\",\n \"Likely Case\"\n ],\n \"goal_marker_type\" : [ \"group\",\n \"pareto\"\n ],\n \"label_name\" : \"Include in Forecast\",\n \"labels\" : \"value\",\n \"legend\" : \"on\",\n \"print\" : \"on\",\n \"subtitle\" : \"\",\n \"thousands\" : \"\",\n \"title\" : null,\n \"type\" : \"bar chart\",\n \"value_name\" : \"Likely Case\"\n } ],\n \"values\" : [ { \"goalmarkervalue\" : [ \"111000.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_POST/index.html"} {"id": "6c527aaf235e-4", "text": "\"36000.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$36,000.00\"\n ],\n \"gvalue\" : 36000,\n \"gvaluelabel\" : \"$36,000.00\",\n \"label\" : \"January 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$36,000.00\" ],\n \"values\" : [ 36000 ]\n },\n { \"goalmarkervalue\" : [ \"111000.00\",\n \"61500.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$61,500.00\"\n ],\n \"gvalue\" : 25500,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_POST/index.html"} {"id": "6c527aaf235e-5", "text": "],\n \"gvalue\" : 25500,\n \"gvaluelabel\" : \"$25,500.00\",\n \"label\" : \"February 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$25,500.00\" ],\n \"values\" : [ 25500 ]\n },\n { \"goalmarkervalue\" : [ \"111000.00\",\n \"61500.00\"\n ],\n \"goalmarkervaluelabel\" : [ \"$111,000.00\",\n \"$61,500.00\"\n ],\n \"gvalue\" : 0,\n \"gvaluelabel\" : \"$0.00\",\n \"label\" : \"March 2013\",\n \"links\" : [ \"\" ],\n \"valuelabels\" : [ \"$0.00\" ],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_POST/index.html"} {"id": "6c527aaf235e-6", "text": "\"valuelabels\" : [ \"$0.00\" ],\n \"values\" : [ 0 ]\n }\n ]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ExpressionEnginerecordrelated_POST/index.html"} {"id": "1a7f5a93decb-0", "text": "/css/preview GET\nOverview\n Runs LessPHP for a platform and a theme and outputs the compiled CSS. It only allows to preview the theme because\n the file is not saved on the server.\nRequest Arguments\nName\nType\nDescription\nRequired\nplatform\nString\nThe theme platform - /themes/clients/***PLATFORM***/themeName/. Accepted values are 'base' and 'portal'.\nNo. (defaults to base)\nthemeName\nString\nThe theme name - /themes/clients/platform/***THEMENAME***/.\nNo. (defaults to default)\nmin\nBoolean\nWhether or not to minify the css\nNo. (defaults to false)\nRequest\n{\n platform: 'portal',\n themeName: 'default',\n min: false\n}\nResponse Arguments\nResponse", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/csspreview_GET/index.html"} {"id": "1a7f5a93decb-1", "text": "min: false\n}\nResponse Arguments\nResponse\nContent-type: text/css\n.someClass {\n any-property: any-value;\n}\nChange Log\nVersion\nChange\n v10\n \n Added /css/preview GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/csspreview_GET/index.html"} {"id": "cde47afd2891-0", "text": "/pmse_Inbox/cancelCases PUT\nOverview\n Call methods to cancel a process \nSummary\n This endpoint cancels one or more processes.\nRequest Arguments\nName\nType\nDescription\nRequired\ncas_id\narray\nCollection of process trigger sequence ids\ntrue\nResponse Arguments\nName\nType\nDescription\nsuccess\nboolean\nResult of the cancel operation\nResponse\n{\n \"success\":true\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxcancelCases_PUT/index.html"} {"id": "29393e27191a-0", "text": "/Tags/:record PUT\nOverview\n Update a record of the specified type.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"New Account Name\",\n \"phone_office\":\"(555) 888-5555\",\n \"website\":\"www.newsite.com\",\n \"meetings\": {\n {\n \"add\": [\"21e3385e-404f-b470-407e-54044e3d8024\"],\n \"delete\": [\"21e3385e-404f-b470-407e-54044e3d8023\"],\n \"create\": [\n {\n \"name\": \"Test Meeting\"\n }\n ]", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Tagsrecord_PUT/index.html"} {"id": "29393e27191a-1", "text": "{\n \"name\": \"Test Meeting\"\n }\n ]\n }\n}\nLink fields\n It is possible to add or delete record relations to other records and create new related records.\nAction\nType\nDescription\nadd\n List\n \n List of related records ID. See RelateRecordApi\n for details.\n \ndelete\n List\n \n List of related records ID.\n \ncreate\n List\n \n List of name to value arrays of related records.\n \nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the updated record.\n \nResponse\n{\n \"id\":\"f222265a-b755-da89-0bc7-512d09b800b6\",\n \"name\":\"New Account Name\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Tagsrecord_PUT/index.html"} {"id": "29393e27191a-2", "text": "\"name\":\"New Account Name\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-27T22:49:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-26T19:12:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sarah_id\",\n \"assigned_user_name\":\"Sarah Smith\",\n \"team_name\":[\n {\n \"id\":1,\n \"name\":\"Global\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Tagsrecord_PUT/index.html"} {"id": "29393e27191a-3", "text": "{\n \"id\":1,\n \"name\":\"Global\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"account_type\":\"Customer\",\n \"industry\":\"Hospitality\",\n \"annual_revenue\":\"\",\n \"phone_fax\":\"\",\n \"billing_address_street\":\"9 IBM Path\",\n \"billing_address_street_2\":\"\",\n \"billing_address_street_3\":\"\",\n \"billing_address_street_4\":\"\",\n \"billing_address_city\":\"San Francisco\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Tagsrecord_PUT/index.html"} {"id": "29393e27191a-4", "text": "\"billing_address_city\":\"San Francisco\",\n \"billing_address_state\":\"CA\",\n \"billing_address_postalcode\":\"43635\",\n \"billing_address_country\":\"USA\",\n \"rating\":\"\",\n \"phone_office\":\"(555) 888-5555\",\n \"phone_alternate\":\"\",\n \"website\":\"www.newsite.com\",\n \"ownership\":\"\",\n \"employees\":\"\",\n \"ticker_symbol\":\"\",\n \"shipping_address_street\":\"9 IBM Path\",\n \"shipping_address_street_2\":\"\",\n \"shipping_address_street_3\":\"\",\n \"shipping_address_street_4\":\"\",\n \"shipping_address_city\":\"San Francisco\",\n \"shipping_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Tagsrecord_PUT/index.html"} {"id": "29393e27191a-5", "text": "\"shipping_address_state\":\"CA\",\n \"shipping_address_postalcode\":\"43635\",\n \"shipping_address_country\":\"USA\",\n \"email1\":\"kid86@example.net\",\n \"parent_id\":\"\",\n \"sic_code\":\"\",\n \"parent_name\":\"\",\n \"email_opt_out\":false,\n \"invalid_email\":false,\n \"email\":[\n {\n \"email_address\":\"kid86@example.net\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n },\n {\n \"email_address\":\"the.dev@example.name\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n }", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Tagsrecord_PUT/index.html"} {"id": "29393e27191a-6", "text": "\"primary_address\":\"0\"\n }\n ],\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Tagsrecord_PUT/index.html"} {"id": "4ee30a251c43-0", "text": "//:record/vcard GET\nOverview\n Downloads a vCard.\nRequest Arguments\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n String;\n \n Record in vcard format\n \nResponse\nBEGIN:VCARD\nN;CHARSET=utf-8:Leone;Rosemarie;;\nFN;CHARSET=utf-8: Rosemarie Leone\nBDAY:\nTEL;WORK;FAX:\nTEL;HOME;CHARSET=utf-8:(692) 586-8287\nTEL;CELL;CHARSET=utf-8:(117) 577-0969\nTEL;WORK;CHARSET=utf-8:(844) 325-7679", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordvcard_GET/index.html"} {"id": "4ee30a251c43-1", "text": "EMAIL;INTERNET;CHARSET=utf-8:support.im@example.it\nADR;WORK;CHARSET=utf-8:;;777 West Filmore Ln;San Mateo;CA;74984;USA\nORG;CHARSET=utf-8:Q.R.&E. Corp;\nTITLE;CHARSET=utf-8:Director Sales\nEND:VCARD\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/vcard GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordvcard_GET/index.html"} {"id": "aa335ad32a65-0", "text": "//:record/link/:link_name/:remote_id GET\nOverview\n Retrieves a related record with relationship role information.\nRequest Arguments\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n Returns the fields for the newly created record.\n \nResponse\n{\n \"id\":\"e689173e-c953-1e14-c215-512d0927e7a2\",\n \"name\":\"Gus Dales\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_GET/index.html"} {"id": "aa335ad32a65-1", "text": "\"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Gus\",\n \"last_name\":\"Dales\",\n \"full_name\":\"Gus Dales\",\n \"title\":\"Director Operations\",\n \"linkedin\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_GET/index.html"} {"id": "aa335ad32a65-2", "text": "\"title\":\"Director Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(661) 120-2292\",\n \"email\":[\n {\n \"email_address\":\"section.sugar.section@example.it\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"support.qa.kid@example.co.uk\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(294) 447-9707\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_GET/index.html"} {"id": "aa335ad32a65-3", "text": "],\n \"phone_mobile\":\"(294) 447-9707\",\n \"phone_work\":\"(036) 840-3216\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"support.qa.kid@example.co.uk\",\n \"email2\":\"section.sugar.section@example.it\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"48920 San Carlos Ave\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Persistance\",\n \"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"54556\",\n \"primary_address_country\":\"USA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_GET/index.html"} {"id": "aa335ad32a65-4", "text": "\"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Arts & Crafts Inc\",\n \"account_id\":\"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"opportunity_role_fields\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_GET/index.html"} {"id": "aa335ad32a65-5", "text": "\"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"Technical Advisor\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"GusDales145\",\n \"portal_active\":true,\n \"portal_password\":\"$1$JxYr6tmM$b.O6.KF42jP46RadSwz0N0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_GET/index.html"} {"id": "aa335ad32a65-6", "text": "\"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/:remote_id GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinklink_nameremote_id_GET/index.html"} {"id": "43b7647f278d-0", "text": "/TimePeriods/current GET\nGet the get the current timeperiod\nSummary:\n This endpoint is used to get the current TimePeriod. If one is not found a 404 is returned\nOutput Example:\n {\n \"id\":\"e394485a-5889-ea75-84c8-51543bd1a5ba\",\n \"name\":\"Q1 (01\\/01\\/2013 - 03\\/31\\/2013)\",\n \"parent_id\":\"e28efe2d-c51c-be45-3d84-51543b4d2910\",\n \"start_date\":\"2013-01-01\",\n \"start_date_timestamp\":\"1356998400\",\n \"end_date\":\"2013-03-31\",\n \"end_date_timestamp\":\"1364774399\",\n \"created_by\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/TimePeriodscurrent_GET/index.html"} {"id": "43b7647f278d-1", "text": "\"created_by\":\"1\",\n \"date_entered\":\"2013-03-28 12:46:36\",\n \"date_modified\":\"2013-03-28 12:46:36\",\n \"deleted\":\"0\",\n \"is_fiscal\":\"0\",\n \"is_fiscal_year\":\"0\",\n \"leaf_cycle\":\"1\",\n \"type\":\"Quarter\",\n \"related_timeperiods\":\"\"\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/TimePeriodscurrent_GET/index.html"} {"id": "2f644fa6a6f3-0", "text": "/PdfManager GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "2f644fa6a6f3-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/PdfManager_GET/index.html"} {"id": "282e48d758a7-0", "text": "/integrate//:record_id/:sync_key_field_name/:sync_key_field_value PATCH\nOverview\nSets a sync key value for a record.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nrecord_id\nString\nThe ID of the record whose sync key will be set\nTrue\nsync_key_field_name\nString\nThe name of the field that contains sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n/integrate//:record_id/:sync_key_field_name/:sync_key_field_value\nResponse", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulerecord_idsync_key_field_namesync_key_field_value_PATCH/index.html"} {"id": "282e48d758a7-1", "text": "Response\n{\"success\": true}\nChange Log\nVersion\nChange\nv11_10\nAdded /integrate//:record_id/:sync_key_field_name/:sync_key_field_value\u00c2\u00a0PATCH endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulerecord_idsync_key_field_namesync_key_field_value_PATCH/index.html"} {"id": "e602d50c49c1-0", "text": "//customfield POST\nOverview\nCreate a new custom field for a specified module.\nSummary\nThis endpoint is used to create a new custom field for a specified module.\nRequest Arguments\nName\nType\nDescription\nRequired\ndata\narray\nThe field metadata.\nTrue\nRequest Examples\nThis example will create a decimal type custom field:\n{\n \"localizations\": {\n \"en_us\": {\n \"LBL_AI_SCORE\": \"Ai Score\"\n },\n ...\n },\n \"data\":{\n \"name\":\"ai_score\",\n \"label\":\"LBL_AI_SCORE\",\n \"type\":\"decimal\",\n \"len\":\"18\",\n \"precision\":8,\n \"required\":false,\n \"reportable\":false,\n \"audited\":false,\n \"importable\":false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfield_POST/index.html"} {"id": "e602d50c49c1-1", "text": "\"audited\":false,\n \"importable\":false,\n \"duplicate_merge\":false\n }\n}\nThis example will create a textField type custom field:\n{\n \"localizations\": {\n \"en_us\": {\n \"LBL_AI_SCORE_DESC\": \"Ai Score Description\"\n },\n ...\n },\n \"data\":{\n \"name\":\"ai_score_desc\",\n \"label\":\"LBL_AI_SCORE_DESC\",\n \"type\":\"varchar\",\n \"help\":\"Text Field Help Text\",\n \"comments\":\"Text Field Comment Text\",\n \"default_value\":\"\",\n \"len\":255,\n \"required\":false,\n \"reportable\":true,\n \"audited\":false,\n \"importable\":\"true\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfield_POST/index.html"} {"id": "e602d50c49c1-2", "text": "\"audited\":false,\n \"importable\":\"true\",\n \"duplicate_merge\":false\n }\n}\nThis example will create an enum type custom field with a new dropdown list:\n{\n \"localizations\": {\n \"en_us\": {\n \"LBL_DROPDOWN_FIELD\": \"New Dropdown Field\",\n \"LBL_DD_ITEM_ONE\": \"First Text\",\n \"LBL_DD_ITEM_TWO\": \"Second Text\",\n \"LBL_DD_ITEM_THREE\": \"Third Text\"\n },\n ...\n },\n \"data\": {\n \"name\":\"new_dropdown_field\",\n \"label\":\"LBL_DROPDOWN_FIELD\",\n \"type\":\"enum\",\n \"options\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfield_POST/index.html"} {"id": "e602d50c49c1-3", "text": "\"type\":\"enum\",\n \"options\": {\n \"dropdownName\": \"a_new_dropdown\",\n \"dropdownList\": [\n {\"value\":\"First\", \"label\":\"LBL_DD_ITEM_ONE\"},\n {\"value\":\"Second\", \"label\":\"LBL_DD_ITEM_TWO\"},\n {\"value\":\"Third\", \"label\":\"LBL_DD_ITEM_THREE\"}\n ]\n },\n \"default_value\":\"First\"\n }\n}\nThis example will create an enum type custom field using an existing dropdown list:\n{\n \"localizations\": {\n \"en_us\": {\n \"LBL_DROPDOWN_FIELD\": \"New Dropdown Field\"\n },\n ...\n },\n \"data\": {\n \"name\":\"new_dropdown_field\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfield_POST/index.html"} {"id": "e602d50c49c1-4", "text": "\"data\": {\n \"name\":\"new_dropdown_field\",\n \"label\":\"LBL_DROPDOWN_FIELD\",\n \"type\":\"enum\",\n \"options\": \"account_type_dom\",\n \"default_value\":\"Analyst\"\n }\n}\nResponse\n{\n \"duplicate_merge_dom_value\": 0,\n \"required\": false,\n \"source\": \"custom_fields\",\n \"name\": \"ai_score_c\",\n \"vname\": \"LBL_AI_SCORE\",\n \"type\": \"decimal\",\n \"massupdate\": false,\n \"hidemassupdate\": false,\n \"no_default\": false,\n \"comments\": \"\",\n \"help\": \"\",\n \"importable\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfield_POST/index.html"} {"id": "e602d50c49c1-5", "text": "\"help\": \"\",\n \"importable\": \"\",\n \"duplicate_merge\": \"disabled\",\n \"audited\": false,\n \"reportable\": false,\n \"unified_search\": false,\n \"merge_filter\": \"disabled\",\n \"pii\": false,\n \"calculated\": false,\n \"len\": 18,\n \"size\": \"20\",\n \"enable_range_search\": false,\n \"precision\": \"8\",\n \"id\": \"ca9653de-0976-11eb-a558-6c400895ea84\",\n \"custom_module\": \"Opportunities\"\n}\nChange Log\nVersion\nChange\nv11.11\nAdded //customfield POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfield_POST/index.html"} {"id": "b90892bf548b-0", "text": "/ProductTemplates/tree GET\nProductTemplate API\nSummary:\n This endpoint is designed to return a paged recordset of one level of product templates and product categories in\n a N-level deep tree representing the relationship between categories and templates. The results are loosely\n filtered (wildcard before and after).\nQuery Parameters:\nParam\nDescription\nOptional\nfilter\nThe filter used to search Product Template and Product Category names. %filter% \ntrue\nroot\nThe ID of the root node you wish to retrieve. Defaults to null (the root level)\ntrue\noffset\nSpecifies the numeric value of the offset you wish to retrieve\ntrue\nmax_num\nSpecifies the numeric value of the max number of records you wish to receive. Default is 20.\ntrue\nResponse Parameters:\nParam\nDescription\nid\nThe id of the item (Product Category/Template) \nData", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ProductTemplatestree_GET/index.html"} {"id": "b90892bf548b-1", "text": "Description\nid\nThe id of the item (Product Category/Template) \nData\nThe name of the item\nstate\nSpecifies the open or closed state of the element. (used for categories)\nindex\nSpecifies the index of this element in the current level.\nResponse:\n { \n \"records\":[\n {\n \"id\":\"023d316a-d9d0-11e7-9f54-02425392a518\",\n \"type\":\"category\",\n \"data\":\"Christen Widgets\",\n \"state\":\"closed\",\n \"index\":0\n },\n {\n \"id\":\"01828a4a-d9d0-11e7-8989-02425392a518\",\n \"type\":\"category\",\n \"data\":\"Desktops\",\n \"state\":\"closed\",\n \"index\":1", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ProductTemplatestree_GET/index.html"} {"id": "b90892bf548b-2", "text": "\"state\":\"closed\",\n \"index\":1\n }\n ],\n \"next_offset\":2\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ProductTemplatestree_GET/index.html"} {"id": "0e8d095e46c5-0", "text": "/pmse_Emails_Templates GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "0e8d095e46c5-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Emails_Templates_GET/index.html"} {"id": "e4493d69efc4-0", "text": "/oauth2/token POST\nOverview\nRetrieves the token portion of the OAuth 2.0 specification.\nRequest Arguments\nName\nType\nDescription\nRequired\ngrant_type\nString\nType of request. Available grant types are \"password\" and \"refresh_token\".\nTrue\nclient_id\nString\nUsed to identify the client. A client_id of \"sugar\" will automatically create an OAuth Key in the system that is used for \"password\" authentication. A client_id of \"support_portal\" will create an OAuth Key that will allow for portal authentication. Additional client_id's can be created by the administrator in Admin > OAuth Keys to allow for additional grant types. If the client secret is populated, it will be validated against the client id.\nTrue\nclient_secret;\nString\nThe clients secret key.\nTrue\nusername\nString", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/oauth2token_POST/index.html"} {"id": "e4493d69efc4-1", "text": "client_secret;\nString\nThe clients secret key.\nTrue\nusername\nString\nThe username of the user authenticating to the system.\nTrue\npassword\nString\nThe plaintext password the user authenticating to the system.\nTrue\nplatform\nString\nThe platform type. Available types are \"base\", \"mobile\", and \"portal\".\nTrue\nRequest for Password Grant Types\n{\n \"grant_type\":\"password\",\n \"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"username\":\"admin\",\n \"password\":\"password\",\n \"platform\":\"base\"\n}\nRequest for Refresh Token Grant Types\n{\n \"grant_type\":\"refresh_token\",\n \"refresh_token\":\"c1be5132-655b-1ca3-fb44-512e36709871\",\n \"client_id\":\"sugar\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/oauth2token_POST/index.html"} {"id": "e4493d69efc4-2", "text": "\"client_id\":\"sugar\",\n \"client_secret\":\"\",\n \"platform\":\"base\"\n}\nResponse Arguments\nName\nType\nDescription\naccess_token\nString\nThe access token needed to authenticate for other methods.\nexpires_in\nInteger\nThe length of time until access_token expires in seconds.\ntoken_type\nString\nThe token type. Currently only \"bearer\" is supported.\nnull|\n\u00c2\u00a0\nThe Oauth scope. Normally returned as null.\nrefresh_token\nString\nThe token needed to extend the access_token expiration timeout.\nrefresh_expires_in\nInteger\nThe length of time until refresh_token expires in seconds.\ndownload_token\nString\nThe token used to download images and files.\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/oauth2token_POST/index.html"} {"id": "e4493d69efc4-3", "text": "download_token\nString\nThe token used to download images and files.\nResponse\n{\n \"access_token\":\"802b64c0-5eac-8431-a541-5342d38ac527\",\n \"expires_in\":3600,\n \"token_type\":\"bearer\",\n \"scope\":null,\n \"refresh_token\":\"85053198-24b1-4521-b1a1-5342d382e0b7\",\n \"refresh_expires_in\":1209600,\n \"download_token\":\"8c9b5461-0d95-8d87-6084-5342d357b39e\"\n}\nChange Log\nVersion\nChange\nv10\nAdded /oauth2/token POST endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/oauth2token_POST/index.html"} {"id": "e4493d69efc4-4", "text": "Version\nChange\nv10\nAdded /oauth2/token POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/oauth2token_POST/index.html"} {"id": "57ff265462dd-0", "text": "/lang/labels/dropdown PUT\nOverview\nUpdate display labels of dropdown items for dropdowns under different languages.\nSummary\nThis endpoint is used to update display labels of dropdown items in dropdowns under different languages.\nRequest Arguments\nName\nType\nDescription\nRequired\nname\nstring\nThe dropdown name.\nTrue\nlabels\narray\nThe new labels grouped by language keys.\nTrue\nRequest\n[\n {\n \"type\": \"dropdown\",\n \"dropdown\": \"ai_conv_score_classification_dropdown\",\n \"labels\": {\n \"de_DE\": {\n \"not_likely\": \"Unwahrscheinlich\",\n \"less_likely\": \"Weniger wahrscheinlich\"\n },\n \"ja_JP\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsdropdown_PUT/index.html"} {"id": "57ff265462dd-1", "text": "},\n \"ja_JP\": {\n \"not_likely\": \"\u00e3\u0081\u0082\u00e3\u0082\u008a\u00e3\u0081\u009d\u00e3\u0081\u0086\u00e3\u0082\u0082\u00e3\u0081\u00aa\u00e3\u0081\u0084\",\n \"less_likely\": \"\u00e5\u008f\u00af\u00e8\u0083\u00bd\u00e6\u0080\u00a7\u00e3\u0081\u008c\u00e4\u00bd\u008e\u00e3\u0081\u0084\"\n }\n }\n }\n]\n\u00c2\u00a0\nResponse Example\n[\n {\n \"name\": \"ai_conv_score_classification_dropdown\",\n \"labels\": {\n \"de_DE\": {\n \"not_likely\": \"Unwahrscheinlich\",\n \"less_likely\": \"Weniger wahrscheinlich\"\n },\n \"ja_JP\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsdropdown_PUT/index.html"} {"id": "57ff265462dd-2", "text": "},\n \"ja_JP\": {\n \"not_likely\": \"\u00e3\u0081\u0082\u00e3\u0082\u008a\u00e3\u0081\u009d\u00e3\u0081\u0086\u00e3\u0082\u0082\u00e3\u0081\u00aa\u00e3\u0081\u0084\",\n \"less_likely\": \"\u00e5\u008f\u00af\u00e8\u0083\u00bd\u00e6\u0080\u00a7\u00e3\u0081\u008c\u00e4\u00bd\u008e\u00e3\u0081\u0084\"\n }\n }\n },\n {\n \"name\": \"account_type_dom\",\n \"labels\": {\n \"de_DE\": {\n \"Analyst\": \"Analytiker\",\n \"Competitor\": \"Wettbewerber\"\n },\n \"ja_JP\": {\n \"Analyst\": \"\u00e3\u0082\u00a2\u00e3\u0083\u008a\u00e3\u0083\u00aa\u00e3\u0082\u00b9\u00e3\u0083\u0088\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsdropdown_PUT/index.html"} {"id": "57ff265462dd-3", "text": "\"Competitor\": \"\u00e7\u00ab\u00b6\u00e5\u0090\u0088\u00e4\u00bb\u0096\u00e7\u00a4\u00be\u00e9\u0081\u00b8\u00e6\u0089\u008b\"\n }\n }\n }\n]\nChange Log\nVersion\nChange\nv11.13\nAdded\u00c2\u00a0/lang/labels/dropdown/\u00c2\u00a0PUT endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/langlabelsdropdown_PUT/index.html"} {"id": "79b96fba6124-0", "text": "//Activities/filter GET\nActivities on a module's list view\nSummary:\n This endpoint lists activities across a particular module in the system. It uses a subscription model, and can be queried like a normal bean collection, but without search, ordering or filtering.\nQuery Parameters:\nParamDescriptionOptionalmax_numA maximum number of records to returnOptionaloffsetHow many records to skip over before records are returnedOptional\nInput Example:\nThis endpoint does not accept any input\nOutput Example:\n{\n \"next_offset\": 20, This will be set to -1 when there are no more records after this \"page\".\n \"records\": [{\n \"id\": \"22fb8b16-de1d-f1dc-b15b-51240efde177\",\n \"date_entered\": \"2013-02-19T23:47:11+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleActivitiesfilter_GET/index.html"} {"id": "79b96fba6124-1", "text": "\"date_modified\": \"2013-02-19T23:47:11+00:00\",\n \"created_by\": \"1\",\n \"deleted\": \"0\",\n \"parent_id\": \"f5bb0331-2c0f-5c7c-b4db-5123caac0056\",\n \"parent_type\": \"Contacts\",\n \"activity_type\": \"post\", This will be the type of activity performed.\n \"data\": {\n \"value\": \"This is a test post on a contact I'm subscribed to.\"\n },\n \"comment_count\": 0, This will be set to the total number of comments on the post.\n \"last_comment\": { This will be the last comment on the post, which can be used to create a comment model on the frontend.\n \"deleted\": 0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleActivitiesfilter_GET/index.html"} {"id": "79b96fba6124-2", "text": "\"deleted\": 0,\n \"data\": []\n },\n \"fields\": [],\n \"first_name\": null,\n \"last_name\": \"Administrator\",\n \"created_by_name\": \" Administrator\" This will be the locale-formatted full name of the user.\n }, ... ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/moduleActivitiesfilter_GET/index.html"} {"id": "5a715d02eddc-0", "text": "/pmse_Inbox/save_notes POST\nOverview\n Creates a new note for a process\nSummary\nThis endpoint creates a new note for a process\nRequest Arguments\nName\nType\nDescription\nRequired\ndata\narray\nCollection of data for a note containing the following:\ntrue\ndata.cas_id\nstring\nThe id of the process trigger sequence\ntrue\ndata.cas_index\nstring\nThe step in the process\ntrue\ndata.not_content\nstring\nThe content of the note\ntrue\ndata.not_type\nstring\nThe type of note, defaults to 'GENERAL'\nfalse\nResponse Arguments\nName\nType\nDescription\nsuccess\nboolean\nResult of the update\nid\nstring\nId of new note\ndate_entered\ndate\nDate of creation\nResponse\n{\n \"success\":true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxsave_notes_POST/index.html"} {"id": "5a715d02eddc-1", "text": "date\nDate of creation\nResponse\n{\n \"success\":true,\n \"id\":\"06c075d0-28e7-11e6-8bb1-6c4008960436\",\n \"date_entered\":\"2016-06-02T10:25:39-07:00\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxsave_notes_POST/index.html"} {"id": "a9aefe508a60-0", "text": "/Leads POST\nCreate Lead with optional post-save actions\nSummary:\n This endpoint is used to create a Lead with the optional post-save actions for Convert Target/Prospect and\n Create Lead from Email operations.\nQuery Parameters:\nParam\nDescription\nOptional\nprospect_id\nPass a prospect id if Lead is being created as part of a Convert Target/Prospect process\nOptional\ninbound_email_id\nPass an inbound email id if Lead is being created from an Email\nOptional\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Leads_POST/index.html"} {"id": "94b49128fc1b-0", "text": "/Users/:record/link/:link_name/:remote_id POST\nOverview\n Creates a relationship to a pre-existing record.\nQuery String Parameters\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record linked to the related record.\n \n related_record\n \n Array\n \n The record that was associated.\n \nResponse\n{\n \"record\":{\n \"id\":\"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\":\"Slender Broadband Inc - 1000 units\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-1", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-28T18:21:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-2", "text": "},\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"opportunity_type\":\"\",\n \"account_name\":\"Slender Broadband Inc\",\n \"account_id\":\"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"lead_source\":\"Campaign\",\n \"amount\":\"25000\",\n \"base_rate\":\"1\",\n \"amount_usdollar\":\"25000\",\n \"currency_id\":\"-99\",\n \"currency_name\":\"\",\n \"currency_symbol\":\"\",\n \"date_closed\":\"2013-02-27\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-3", "text": "\"date_closed\":\"2013-02-27\",\n \"date_closed_timestamp\":\"1361992480\",\n \"next_step\":\"\",\n \"sales_stage\":\"Needs Analysis\",\n \"sales_status\":\"New\",\n \"probability\":\"90\",\n \"best_case\":\"25000\",\n \"worst_case\":\"25000\",\n \"commit_stage\":\"include\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n \"related_record\":{\n \"id\":\"e689173e-c953-1e14-c215-512d0927e7a2\",\n \"name\":\"Gus Dales\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-4", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Gus\",\n \"last_name\":\"Dales\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-5", "text": "\"first_name\":\"Gus\",\n \"last_name\":\"Dales\",\n \"full_name\":\"Gus Dales\",\n \"title\":\"Director Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(661) 120-2292\",\n \"email\":[\n {\n \"email_address\":\"section.sugar.section@example.it\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"support.qa.kid@example.co.uk\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-6", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(294) 447-9707\",\n \"phone_work\":\"(036) 840-3216\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"support.qa.kid@example.co.uk\",\n \"email2\":\"section.sugar.section@example.it\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"48920 San Carlos Ave\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Persistance\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-7", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"54556\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Arts & Crafts Inc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-8", "text": "\"account_name\":\"Arts & Crafts Inc\",\n \"account_id\":\"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"Technical Advisor\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"GusDales145\",\n \"portal_active\":true,\n \"portal_password\":\"$1$JxYr6tmM$b.O6.KF42jP46RadSwz0N0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "94b49128fc1b-9", "text": "\"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/:remote_id POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Usersrecordlinklink_nameremote_id_POST/index.html"} {"id": "2b3a65a0f02d-0", "text": "/ConsoleConfiguration/default-metadata GET\nOverview\nGets the request metadata in JSON format.\nRequest Arguments\nThis endpoint does not accept any request arguments.\nURL Parameters\nParameter\nDescription\nRequired?\nmodules\nString. Comma-separated module names. Example: 'Accounts,Opportunities'.\nYes\ntype\nString. The type of the desired metadata. The following types are supported: 'filter', 'layout', 'menu', 'view'.\nYes\nname\nString. The name of the metadata. Examples: 'list', 'record', or 'multi-line-list'.\nYes\nURL Example\n/rest/v11_9/ConsoleConfiguration/default-metadata?modules=Cases&type=view&name=multi-line-list\nResult Arguments\nResponse\n{\n \"Cases\":{\n \t\"panels\":[\n \t{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-1", "text": "{\n \"Cases\":{\n \t\"panels\":[\n \t{\n \t\"label\":\"LBL_PANEL_1\",\n \t\"fields\":[\n \t{\n \t\"name\":\"case_number\",\n \t\"label\":\"LBL_AGENT_WORKBENCH_NUMBER\",\n \t\"width\":\"xsmall\",\n \t\"subfields\":[\n \t{\n \t\"name\":\"case_number\",\n \t\"label\":\"LBL_AGENT_WORKBENCH_NUMBER\",\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"readonly\":true\n \t}\n \t]\n \t},\n \t{\n \t\"name\":\"status\",\n \t\"label\":\"LBL_AGENT_WORKBENCH_PRIORITY_STATUS\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-2", "text": "\"width\":\"small\",\n \t\"subfields\":[\n \t{\n \t\"name\":\"priority\",\n \t\"label\":\"LBL_LIST_PRIORITY\",\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"type\":\"enum\"\n \t},\n \t{\n \t\"name\":\"status\",\n \t\"label\":\"LBL_STATUS\",\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"type\":\"case-status\",\n \t\"widget_name\":\"widget_status\"\n \t}\n \t]\n \t},\n \t{\n \t\"name\":\"follow_up_datetime\",\n \t\"label\":\"LBL_AGENT_WORKBENCH_FOLLOW_UP\",\n \t\"width\":\"medium\",\n \t\"subfields\":[", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-3", "text": "\"width\":\"medium\",\n \t\"subfields\":[\n \t{\n \t\"name\":\"follow_up_datetime\",\n \t\"label\":\"LBL_FOLLOW_UP_DATETIME\",\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"readonly\":true,\n \t\"type\":\"follow-up-datetime-colorcoded\",\n \t\"widget_name\":\"widget_follow_up_datetime\",\n \t\"color_code_classes\":{\n \t\"overdue\":\"expired\",\n \t\"in_a_day\":\"soon-expired\",\n \t\"more_than_a_day\":\"white black-text\"\n \t}\n \t},\n \t{\n \t\"name\":\"follow_up_datetime\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-4", "text": "{\n \t\"name\":\"follow_up_datetime\",\n \t\"label\":\"LBL_FOLLOW_UP_DATETIME\",\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"readonly\":true,\n \t\"type\":\"datetimecombo\"\n \t}\n \t]\n \t},\n \t{\n \t\"name\":\"name\",\n \t\"label\":\"LBL_AGENT_WORKBENCH_SUBJECT_DESCRIPTION\",\n \t\"width\":\"xlarge\",\n \t\"subfields\":[\n \t{\n \t\"name\":\"name\",\n \t\"label\":\"LBL_LIST_SUBJECT\",\n \t\"link\":false,\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"readonly\":true\n \t},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-5", "text": "\"enabled\":true,\n \t\"readonly\":true\n \t},\n \t{\n \t\"name\":\"description\",\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"readonly\":true,\n \t\"sortable\":false\n \t}\n \t]\n \t},\n \t{\n \t\"name\":\"business_center\",\n \t\"label\":\"LBL_BUSINESS_CENTER\",\n \t\"width\":\"small\",\n \t\"subfields\":[\n \t{\n \t\"name\":\"business_center_name\",\n \t\"label\":\"LBL_BUSINESS_CENTER\",\n \t\"link\":false,\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"readonly\":true\n \t}\n \t]\n \t},\n \t{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-6", "text": "}\n \t]\n \t},\n \t{\n \t\"name\":\"account_name\",\n \t\"label\":\"LBL_ACCOUNT\",\n \t\"width\":\"medium\",\n \t\"subfields\":[\n \t{\n \t\"name\":\"account_name\",\n \t\"label\":\"LBL_LIST_ACCOUNT_NAME\",\n \t\"module\":\"Accounts\",\n \t\"id\":\"ACCOUNT_ID\",\n \t\"ACLTag\":\"ACCOUNT\",\n \t\"related_fields\":[\n \t\"account_id\"\n \t],\n \t\"link\":false,\n \t\"default\":true,\n \t\"enabled\":true\n \t},\n \t{\n \t\"name\":\"service_level\",\n \t\"label\":\"LBL_SERVICE_LEVEL\",\n \t\"type\":\"enum\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-7", "text": "\"type\":\"enum\",\n \t\"enum_module\":\"Accounts\",\n \t\"link\":false,\n \t\"default\":true,\n \t\"enabled\":true,\n \t\"readonly\":true\n \t}\n \t]\n \t},\n \t{\n \t\"name\":\"assigned_user_name\",\n \t\"label\":\"LBL_ASSIGNED_TO_NAME\",\n \t\"width\":\"small\",\n \t\"subfields\":[\n \t{\n \t\"name\":\"assigned_user_name\",\n \t\"label\":\"LBL_ASSIGNED_TO_NAME\",\n \t\"id\":\"ASSIGNED_USER_ID\",\n \t\"link\":false,\n \t\"default\":true,\n \t\"enabled\":true\n \t}\n \t]\n \t}\n \t]", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-8", "text": "}\n \t]\n \t}\n \t]\n \t}\n \t],\n \t\"collectionOptions\":{\n \t\"limit\":100,\n \t\"params\":{\n \t\"max_num\":100,\n \t\"order_by\":\"follow_up_datetime\",\n \t\"nulls_last\":true\n \t}\n \t},\n \t\"filterDef\":[\n \t{\n \t\"status\":{\n \t\"$not_in\":[\n \t\"Closed\",\n \t\"Rejected\",\n \t\"Duplicate\"\n \t]\n \t},\n \t\"$owner\":\"\"\n \t}\n \t]\n }\n}\nResponse Codes and Error Messages\nAll successful responses return 200.\nThe following error responses are possible:", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "2b3a65a0f02d-9", "text": "All successful responses return 200.\nThe following error responses are possible:\n403 (SugarAPIExceptionNotAuthorized)\u00c2\u00a0: Sent if the user attempts to access a module that they are forbidden to access.\n422 (SugarApiExceptionInvalidParameter)\u00c2\u00a0: Sent if the user specifies an invalid type or module.\nChange Log\nVersion\nChange\nv11.9\nAdded /ConsoleConfiguration/default-metadata GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/ConsoleConfigurationdefault-metadata_GET/index.html"} {"id": "079da4b965f6-0", "text": "//record_list POST\nOverview\n An API to create and save lists of records.\nSummary\n Create record list. Only POST request allowed.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nstring\n Module name\n \nTrue\nrecords\narray\n Array of records\n \nTrue\nRequest Example\nPOST /rest/v10/:module/record_list\n{records: [\"e5c8bb3b-5eea-3d8a-c278-56c6affa6212\", \"e49395b4-d3b0-1e3f-600a-56c6afe7e34f\"]}\nResponse Arguments\nName\nType\nDescription\nid\nguid\n record list id\n \nassigned_user_id\nguid\n user id\n \nmodule_name\nstring", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_list_POST/index.html"} {"id": "079da4b965f6-1", "text": "guid\n user id\n \nmodule_name\nstring\n Module name\n \nrecords\narray\n record ids\n \ndate modified\ndate\n date modified\n \nOutput Example\n{\n \"id\": \"39d2c781-c0b7-446f-1d83-56c6e3cda510\",\n \"assigned_user_id\": \"1\",\n \"module_name\": \"Accounts\",\n \"records\": [\n \"e5c8bb3b-5eea-3d8a-c278-56c6affa6212\",\n \"e49395b4-d3b0-1e3f-600a-56c6afe7e34f\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_list_POST/index.html"} {"id": "079da4b965f6-2", "text": "\"c03ed8ee-60d3-c6a6-55c3-56c6af95e696\",\n \"d65573e3-c25a-f9b4-33f2-56c6afb8d856\"\n ],\n \"date_modified\": \"2016-02-19 09:42:44\"\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecord_list_POST/index.html"} {"id": "95472f48c6af-0", "text": "/KBContents/config POST\nCreates and/or updates the config settings for the KBContents module\nSummary:\n This endpoint is used to create and/or update the config settings for the KBContents module as json data.\n It extends the core config endpoint by adding the functionality to process deleted languages and documents\n related to them.\nQuery Parameters:\nParam\nDescription\nOptional\nInput Example:\n {\n \"languages\":[{\n \"en\":\"English\",\n \"primary\":true\n },{\n \"de\":\"German\",\n \"primary\":false\n }],\n \"category_root\":\"31696245-0438-ff7a-9144-544f8c659daf\",\n \"deleted_languages\":[\"es\",\"ru\"]\n }\n \nOutput Example:\n {\n \"languages\":[{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsconfig_POST/index.html"} {"id": "95472f48c6af-1", "text": "}\n \nOutput Example:\n {\n \"languages\":[{\n \"en\":\"English\",\n \"primary\":true\n },{\n \"de\":\"German\",\n \"primary\":false\n }],\n \"category_root\":\"31696245-0438-ff7a-9144-544f8c659daf\",\n \"deleted_languages\":[\"es\",\"ru\"]\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/KBContentsconfig_POST/index.html"} {"id": "038c34a926a3-0", "text": "/Administration/config/:category POST\nOverview\n[ADMIN] Set Configuration Settings for a Category.\nSummary\nThis endpoint sets configuration values for a given category. This endpoint is only available to administrators.\nRequest\nPOST /Administration/config/:category\n\u00c2\u00a0\nResponse Example\n{\n \"a_config\": \"good\"\n}\nChange Log\nVersion\nChange\nv11.13\nAdded\u00c2\u00a0Administration/config/:category\u00c2\u00a0POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationconfigcategory_POST/index.html"} {"id": "a44e039e1917-0", "text": "/Emails/:record GET\nOverview\n Retrieves an Emails record.\nFields\nName\nType\nDescription\n \n \n \n \n Returns the fields for the selected record.\n \n from_collection\n \n List\n \n The email's sender.\n \n to_collection\n \n List\n \n The email's recipients found in the TO field.\n \n cc_collection\n \n List\n \n The email's recipients found in the CC field.\n \n bcc_collection\n \n List\n \n The email's recipients found in the BCC field.\n \n attachments_collection\n \n List\n \n The email's attachments.\n \nRequest", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-1", "text": "List\n \n The email's attachments.\n \nRequest\nGET /Emails/a028341c-ba92-9343-55e7-56cf5beda121?fields=name,state,\n{\"name\":\"from_collection\",\"fields\":[\"email_address\",\"email_address_id\",\n\"parent_type\",\"parent_id\",\"parent_name\"]},\n{\"name\":\"to_collection\",\"fields\":[\"email_address\",\"email_address_id\",\n\"parent_type\",\"parent_id\",\"parent_name\"]},\n{\"name\":\"cc_collection\",\"fields\":[\"email_address\",\"email_address_id\",\n\"parent_type\",\"parent_id\",\"parent_name\"]},\n{\"name\":\"bcc_collection\",\"fields\":[\"email_address\",\"email_address_id\",\n\"parent_type\",\"parent_id\",\"parent_name\"]},", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-2", "text": "\"parent_type\",\"parent_id\",\"parent_name\"]},\n{\"name\":\"attachments_collection\",\"fields\":[\"name\",\"filename\",\"file_size\",\n\"file_source\",\"file_mime_type\",\"file_ext\",\"upload_id\"]}\nResponse\n{\n \"id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"state\": \"Archived\",\n \"name\": \"Re: Discuss Proposal\",\n \"from_collection\": {\n \"next_offset\": {\n \"from\": -1\n },\n \"records\": [{\n \"id\": \"ec113d14-7d27-11e7-a951-3c15c2d582c6\",\n \"email_address\": \"tdavis@example.com\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-3", "text": "\"email_address\": \"tdavis@example.com\",\n \"email_address_id\": \"ec05a896-7d27-11e7-a51e-3c15c2d582c6\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\",\n \"parent_name\": \"Tom Davis\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_link\": \"from\",\n \"_module\": \"EmailParticipants\"\n }]\n },\n \"to_collection\": {\n \"next_offset\": {\n \"to\": -1\n },\n \"records\": [{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-4", "text": "\"to\": -1\n },\n \"records\": [{\n \"id\": \"ec0f1278-7d27-11e7-8d1f-3c15c2d582c6\",\n \"email_address\": \"ssmith@example.com\",\n \"email_address_id\": \"ec0fb516-7d27-11e7-b7ad-3c15c2d582c6\",\n \"parent_type\": \"Users\",\n \"parent_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"parent_name\": \"Sarah Smith\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_link\": \"to\",\n \"_module\": \"EmailParticipants\"\n }]\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-5", "text": "\"_module\": \"EmailParticipants\"\n }]\n },\n \"cc_collection\": {\n \"next_offset\": {\n \"cc\": -1\n },\n \"records\": [{\n \"id\": \"eafa7e9a-7d27-11e7-aa2b-3c15c2d582c6\",\n \"email_address\": \"broland@example.com\",\n \"email_address_id\": \"ea1cec7e-7d27-11e7-9845-3c15c2d582c6\",\n \"parent_type\": \"Users\",\n \"parent_id\": \"e087e79a-7d27-11e7-b02c-3c15c2d582c6\",\n \"parent_name\": \"Brian Roland\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-6", "text": "\"parent_name\": \"Brian Roland\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_link\": \"cc\",\n \"_module\": \"EmailParticipants\"\n }, {\n \"id\": \"df5eb204-7d27-11e7-b363-3c15c2d582c6\",\n \"email_address\": \"twallace@example.com\",\n \"email_address_id\": \"ddf1d9e6-7d27-11e7-bb17-3c15c2d582c6\",\n \"parent_type\": \"\",\n \"parent_id\": \"\",\n \"parent_name\": \"\",\n \"_acl\": {\n \"fields\": {}\n },\n \"_link\": \"cc\",\n \"_module\": \"EmailParticipants\"\n }]", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-7", "text": "\"_module\": \"EmailParticipants\"\n }]\n },\n \"bcc_collection\": {\n \"next_offset\": {\n \"bcc\": -1\n },\n \"records\": []\n },\n \"attachments_collection\": {\n \"next_offset\": {\n \"attachments\": -1\n },\n \"records\": [{\n \"id\": \"afe9702e-53a3-0efb-6bbe-56c3580885ef\",\n \"name\": \"Quote.pdf\",\n \"filename\": \"Quote.pdf\",\n \"upload_id\": \"\",\n \"file_mime_type\": \"application/pdf\",\n \"file_size\": 158589,\n \"file_source\": \"DocumentRevisions\",\n \"file_ext\": \"pdf\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "a44e039e1917-8", "text": "\"file_ext\": \"pdf\"\n \"_acl\": {\n \"fields\": {}\n },\n \"_link\": \"attachments\",\n \"_module\": \"Notes\"\n }]\n }\n \"_acl\": {\n \"fields\": [\n ]\n },\n \"_module\": \"Emails\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Emails/:record GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_GET/index.html"} {"id": "c90b1536aa0b-0", "text": "/integrate//:sync_key_field_name/:sync_key_field_value GET\nOverview\nRetrieves the record with the given sync_key_field_name.\nRequest Arguments\nName\nType\nDescription\nRequired\nmodule\nString\nThe module the record belongs to\nTrue\nsync_key_field_name\nString\nThe name of the field that contains sync_key_field_value (the default field is named\u00c2\u00a0sync_key but can be renamed via code customization)\nTrue\nsync_key_field_value\nString\nA unique ID for the record identifying it in an external system\nTrue\nRequest\n/integrate//:sync_key_field_name/:sync_key_field_value\nResponse Arguments\nBody: formatted JSON object.\nResponse\nSuccessful Response\nStatus 200\nFailed Response\nStatus 422\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulesync_key_field_namesync_key_field_value_GET/index.html"} {"id": "c90b1536aa0b-1", "text": "Response\nSuccessful Response\nStatus 200\nFailed Response\nStatus 422\n{\n \"error\": \"invalid_parameter\",\n \"error_message\": \"Could not find record with :sync_key_field_name::sync_key_field_value in module: \"\n}\nChange Log\nVersion\nChange\nv11_10\nAdded /integrate//:sync_key_field_name/:sync_key_field_value\u00c2\u00a0GET endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Integratemodulesync_key_field_namesync_key_field_value_GET/index.html"} {"id": "b9ecbc928f06-0", "text": "//favorites POST\nOverview\n Opportunity Favorites Help\nSummary\n This endpoint returns all the favorite Quotes/Revenue Line Items in alphabetical order to be displayed in the\n \"Product Catalog Quick Picks\" dashlet.\nRequest Arguments\nName\nType\nDescription\nRequired\n pageNum\n \n integer\n \n An integer attribute in the payload data object which gets the page number for which the items need to be\n displayed based on the current page or the page clicked.\n \n False\n \nRequest\n{\n pageNum: 0\n}\nResponse Arguments\nName\nType\nDescription\n \n \n \n \n The list of config fields will be returned.\n \nResponse\n{\n \"totalPages\":5,\n \"pageNum\":0,\n \"max_num\":8,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-1", "text": "\"pageNum\":0,\n \"max_num\":8,\n \"records\":[\n {\n \"id\":\"c181bd32-c7f2-11e8-b4eb-7831c1c14620\",\n \"name\":\"Allyson Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-2", "text": "\"category_id\":\"c18112d8-c7f2-11e8-b753-7831c1c14620\",\n \"mft_part_num\":\"Ink Conglomerate Inc 921535XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"534.000000\",\n \"discount_price\":\"842.000000\",\n \"list_price\":\"905.000000\",\n \"cost_usdollar\":\"534.000000\",\n \"discount_usdollar\":\"842.000000\",\n \"list_usdollar\":\"905.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-3", "text": "\"website\":null,\n \"weight\":\"20.00\",\n \"qty_in_stock\":26,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"Fixed\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c18e0448-c7f2-11e8-86b0-7831c1c14620\",\n \"name\":\"Arla Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-4", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c18b8b64-c7f2-11e8-8c1a-7831c1c14620\",\n \"mft_part_num\":\"24\\/7 Couriers 795391XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-5", "text": "\"date_cost_price\":null,\n \"cost_price\":\"398.000000\",\n \"discount_price\":\"402.020202\",\n \"list_price\":\"941.000000\",\n \"cost_usdollar\":\"398.000000\",\n \"discount_usdollar\":\"402.020202\",\n \"list_usdollar\":\"941.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"22.00\",\n \"qty_in_stock\":145,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-6", "text": "\"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b60434-c7f2-11e8-8964-7831c1c14620\",\n \"name\":\"Billie Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-7", "text": "\"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Kringle Bell IncK.A. Tower \\u0026 Co 694143XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"403.000000\",\n \"discount_price\":\"927.000000\",\n \"list_price\":\"927.000000\",\n \"cost_usdollar\":\"403.000000\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-8", "text": "\"cost_usdollar\":\"403.000000\",\n \"discount_usdollar\":\"927.000000\",\n \"list_usdollar\":\"927.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"16.00\",\n \"qty_in_stock\":148,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"IsList\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-9", "text": "\"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c186a612-c7f2-11e8-9fee-7831c1c14620\",\n \"name\":\"Bradford Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-10", "text": "\"category_id\":\"c185dbb0-c7f2-11e8-a6b7-7831c1c14620\",\n \"mft_part_num\":\"Mississippi Bank Group 133834XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"528.000000\",\n \"discount_price\":\"533.333333\",\n \"list_price\":\"745.000000\",\n \"cost_usdollar\":\"528.000000\",\n \"discount_usdollar\":\"533.333333\",\n \"list_usdollar\":\"745.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"33.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-11", "text": "\"website\":null,\n \"weight\":\"33.00\",\n \"qty_in_stock\":70,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b4680e-c7f2-11e8-9380-7831c1c14620\",\n \"name\":\"Brain Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-12", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Smallville Resources Inc 362299XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-13", "text": "\"date_cost_price\":null,\n \"cost_price\":\"370.000000\",\n \"discount_price\":\"854.370000\",\n \"list_price\":\"863.000000\",\n \"cost_usdollar\":\"370.000000\",\n \"discount_usdollar\":\"854.370000\",\n \"list_usdollar\":\"863.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"10.00\",\n \"qty_in_stock\":106,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"PercentageDiscount\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-14", "text": "\"pricing_formula\":\"PercentageDiscount\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1baf0e8-c7f2-11e8-ab05-7831c1c14620\",\n \"name\":\"Carley Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-15", "text": "\"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b8e4ec-c7f2-11e8-b435-7831c1c14620\",\n \"mft_part_num\":\"Hollywood Diner Ltd 10023XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"554.000000\",\n \"discount_price\":\"559.595960\",\n \"list_price\":\"927.000000\",\n \"cost_usdollar\":\"554.000000\",\n \"discount_usdollar\":\"559.595959\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-16", "text": "\"discount_usdollar\":\"559.595959\",\n \"list_usdollar\":\"927.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"30.00\",\n \"qty_in_stock\":58,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"ProfitMargin\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-17", "text": "\"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b77544-c7f2-11e8-8347-7831c1c14620\",\n \"name\":\"Carma Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-18", "text": "\"category_id\":\"c1b3bf58-c7f2-11e8-92e7-7831c1c14620\",\n \"mft_part_num\":\"Sea Region Inc 773472XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,\n \"cost_price\":\"332.000000\",\n \"discount_price\":\"745.000000\",\n \"list_price\":\"822.000000\",\n \"cost_usdollar\":\"332.000000\",\n \"discount_usdollar\":\"745.000000\",\n \"list_usdollar\":\"822.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"35.00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-19", "text": "\"website\":null,\n \"weight\":\"35.00\",\n \"qty_in_stock\":1,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"Fixed\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n },\n {\n \"id\":\"c1b98c9e-c7f2-11e8-9740-7831c1c14620\",\n \"name\":\"Catrina Gadget\",\n \"date_entered\":\"2018-10-04 16:28:37\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-20", "text": "\"date_entered\":\"2018-10-04 16:28:37\",\n \"date_modified\":\"2018-10-04 16:28:37\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":0,\n \"type_id\":null,\n \"manufacturer_id\":\"c03f952a-c7f2-11e8-b410-7831c1c14620\",\n \"category_id\":\"c1b8e4ec-c7f2-11e8-b435-7831c1c14620\",\n \"mft_part_num\":\"Jungle Systems Inc 273034XYZ987\",\n \"vendor_part_num\":null,\n \"date_cost_price\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-21", "text": "\"date_cost_price\":null,\n \"cost_price\":\"577.000000\",\n \"discount_price\":\"582.770000\",\n \"list_price\":\"946.000000\",\n \"cost_usdollar\":\"577.000000\",\n \"discount_usdollar\":\"582.770000\",\n \"list_usdollar\":\"946.000000\",\n \"status\":\"Available\",\n \"tax_class\":\"Taxable\",\n \"date_available\":\"2004-10-15\",\n \"website\":null,\n \"weight\":\"13.00\",\n \"qty_in_stock\":105,\n \"support_name\":null,\n \"support_description\":null,\n \"support_contact\":null,\n \"support_term\":null,\n \"pricing_formula\":\"PercentageMarkup\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "b9ecbc928f06-22", "text": "\"pricing_formula\":\"PercentageMarkup\",\n \"pricing_factor\":\"1.00\",\n \"assigned_user_id\":null,\n \"currency_id\":\"-99\",\n \"base_rate\":\"1.000000\"\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Opportunities/favorites POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefavorites_POST/index.html"} {"id": "a3697caa9137-0", "text": "/Administration/packages/:unFile DELETE\nOverview\n[ADMIN] PackageManager delete a package.\nSummary\nDelete the specified package. Package 'unFile' hash must be provided. Package 'unFile' hash could be found in staging package list.\nResponse\nReturns http status 200 OK if request is successful. Otherwise returns http status 4xx with errors.\n{\n\"error\": \"delete_package_error\",\n\"error_message\": \"Could not find package file.\"\n}\nChange Log\nVersion\nChange\nv11.8\nAdded /Administration/packages/:unFile DELETE endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/AdministrationpackagesunFile_DELETE/index.html"} {"id": "3fb818b38cd3-0", "text": "/Administration/aws POST\nOverview\n[ADMIN] Set Amazon Web Services configs in Sugar Serve.\nSummary\nThis endpoint sets configuration values for Amazon Web Services. This endpoint is only available to administrators of Sugar Serve.\nRequest Arguments\nName\nType\nDescription\nRequired\naws_connect_instance_name\nString\nThe name of the AWS Connect instance\nFalse\naws_connect_region\nString\nThe region assigned to the AWS Connect instance\nFalse\nResponse\n{\n \"aws_connect_instance_name\": \"my-aws-instance\",\n \"aws_connect_region\": \"us-east-2\"\n}\nChange Log\nVersion\nChange\nv11_10\nAdded /Administration/aws\u00c2\u00a0POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationaws_POST/index.html"} {"id": "bd8482107c49-0", "text": "/pmse_Inbox/settings PUT\nOverview\n Update settings for the SugarBPMTM engine\nSummary\n This endpoint updates settings for the SugarBPMTM engine\nRequest Arguments\nName\nType\nDescription\nRequired\ndata\narray\nKey/value map of config keys and their associated values for the SugarBPMTM engine to update\nfalse\nResponse Arguments\nName\nType\nDescription\nsuccess\nboolean\nResult of update\ndata\nobject\nKey/Value map of config keys and their new values\nResponse\n{\n \"success\":true,\n \"data\":\n {\n \"logger_level\":\"critical\",\n \"error_number_of_cycles\":\"10\",\n \"error_timeout\":\"40\"\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Inboxsettings_PUT/index.html"} {"id": "2235c0c322bc-0", "text": "/password/request GET\nOverview\n Sends an email request to reset a users password.\nRequest Arguments\nName\nType\nDescription\nRequired\n email\n \n String\n \n The email of the user.\n \n True\n \n username\n \n String\n \n The username of the user.\n \n True\n \nRequest\nhttp://{site_url}/rest/v10/password/request?email=admin%40sugar.crm&username=admin\nNote: GET endpoint parameters are passed in the form of a query string.\nResponse Arguments\nName\nType\nDescription\n Success\n \n boolean\n \n Returns the result of sending the email.\n \nResponse\ntrue\nChange Log\nVersion\nChange\n v10\n \n Added /password/request POST endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/passwordrequest_GET/index.html"} {"id": "2235c0c322bc-1", "text": "Change\n v10\n \n Added /password/request POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/passwordrequest_GET/index.html"} {"id": "e878f03a9c41-0", "text": "/pmse_Inbox/clearLog/:typelog PUT\nOverview\n Clear the PMSE.log file log \nSummary\n This endpoint clears the contents of the PMSE.log file \nRequest Arguments\nThere are no request arguments for this endpoint\nResponse Arguments\nName\nType\nDescription\nnone\nboolean\nResult of the clear operation\nResponse\ntrue\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxclearLogtypelog_PUT/index.html"} {"id": "425de0069006-0", "text": "//customfield/:field DELETE\nOverview\nDelete a custom field for a specified module.\nSummary\nThis endpoint is used to delete a custom field for a specified module.\nRequest Arguments\nThis endpoint does not accept any request arguments.\nResponse\n{\n \"name\": \"ai_conv_score_c\"\n}\nResponse Codes and Error Messages\nAll successful responses should return 200.\nThis API returns the following error responses:\n403 (SugarAPIExceptionNotAuthorized): Sent if the user attempts to access a module which they are forbidden to access.\n404 (SugarApiExceptionNot Found): Sent if the requested field is not found.\n422 (SugarApiExceptionInvalidParameter): Sent if the module and/or field are invalid.\n500 (SugarApiExceptionError): Sent if there's an unknown error that causes the custom field to not be deleted in the module.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfieldfield_DELETE/index.html"} {"id": "425de0069006-1", "text": "Change Log\nVersion\nChange\nv11.11\nAdded //customfield/:field DELETE endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulecustomfieldfield_DELETE/index.html"} {"id": "31b2c66f5c38-0", "text": "/Forecasts/:timeperiod_id/progressRep/:user_id GET\nProjected Rep Data\nSummary:\n This endpoint is used to return the json Data not already in client view for the Forecasts rep projected panel.\nQuery Parameters:\nParam\nDescription\nOptional\nuser_id\nShow for a specific user, defaults to current user if not defined\nOptional\ntimeperiod_id\nShow for a specific time period, defaults to the current time period if one is not passed\nOptional\nInput Example:\n{\n user_id:seed_sally_id\n timeperiod_id:36f7085a-5889-ea75-84c8-50f42bd1a5ba\n}\n \nOutput Example:\n{\n quota_amount: \"80000.000000\"\n}\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Forecaststimeperiod_idprogressRepuser_id_GET/index.html"} {"id": "af90fe7bf1b8-0", "text": "//:record/link/activities/filter GET\nActivities on a module's list view\nSummary:\n This endpoint lists activities across a particular module in the system. It does not use a subscription model unlike the other endpoints. It can be queried as a regular bean collection, but without search, ordering or filtering.\nQuery Parameters:\nParamDescriptionOptionalmax_numA maximum number of records to returnOptionaloffsetHow many records to skip over before records are returnedOptional\nInput Example:\nThis endpoint does not accept any input\nOutput Example:\n{\n \"next_offset\": 20, This will be set to -1 when there are no more records after this \"page\".\n \"records\": [{\n \"id\": \"22fb8b16-de1d-f1dc-b15b-51240efde177\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinkactivitiesfilter_GET/index.html"} {"id": "af90fe7bf1b8-1", "text": "\"date_entered\": \"2013-02-19T23:47:11+00:00\",\n \"date_modified\": \"2013-02-19T23:47:11+00:00\",\n \"created_by\": \"1\",\n \"deleted\": \"0\",\n \"parent_id\": \"f5bb0331-2c0f-5c7c-b4db-5123caac0056\",\n \"parent_type\": \"Contacts\",\n \"activity_type\": \"post\", This will be the type of activity performed.\n \"data\": {\n \"value\": \"This is a test post on a contact I'm subscribed to.\"\n },\n \"comment_count\": 0, This will be set to the total number of comments on the post.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinkactivitiesfilter_GET/index.html"} {"id": "af90fe7bf1b8-2", "text": "\"last_comment\": { This will be the last comment on the post, which can be used to create a comment model on the frontend.\n \"deleted\": 0,\n \"data\": []\n },\n \"fields\": [],\n \"first_name\": null,\n \"last_name\": \"Administrator\",\n \"created_by_name\": \" Administrator\" This will be the locale-formatted full name of the user.\n }, ... ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordlinkactivitiesfilter_GET/index.html"} {"id": "f8a23defce93-0", "text": "/DataArchiver/:id/run POST\nOverview\n[ADMIN] Performs the archiving process.\nSummary\nPerforms the archiving process for the given archive definition. This endpoint is only available to administrators.\nRequest Arguments\nThis endpoint does not accept any request arguments.\nResponse\nThis API returns the ID of the created ArchiveRun bean.\nChange Log\nVersion\nChange\nv11_11\nAdded /DataArchiver/:id/run\u00c2\u00a0POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/DataArchiveridrun_POST/index.html"} {"id": "9ae1855d51d4-0", "text": "/Activities GET\nActivities on the home page\nSummary:\n This endpoint lists activities across the entire sytstem. It uses a subscription model, and can be queried like a normal bean collection, but without search, ordering or filtering.\nQuery Parameters:\nParamDescriptionOptionalmax_numA maximum number of records to returnOptionaloffsetHow many records to skip over before records are returnedOptional\nInput Example:\nThis endpoint does not accept any input\nOutput Example:\n{\n \"next_offset\": 20, This will be set to -1 when there are no more records after this \"page\".\n \"records\": [{\n \"id\": \"22fb8b16-de1d-f1dc-b15b-51240efde177\",\n \"date_entered\": \"2013-02-19T23:47:11+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Activities_GET/index.html"} {"id": "9ae1855d51d4-1", "text": "\"date_modified\": \"2013-02-19T23:47:11+00:00\",\n \"created_by\": \"1\",\n \"deleted\": \"0\",\n \"parent_id\": \"f5bb0331-2c0f-5c7c-b4db-5123caac0056\",\n \"parent_type\": \"Contacts\",\n \"activity_type\": \"post\", This will be the type of activity performed.\n \"data\": {\n \"value\": \"This is a test post on a contact I'm subscribed to.\"\n },\n \"comment_count\": 0, This will be set to the total number of comments on the post.\n \"last_comment\": { This will be the last comment on the post, which can be used to create a comment model on the frontend.\n \"deleted\": 0,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Activities_GET/index.html"} {"id": "9ae1855d51d4-2", "text": "\"deleted\": 0,\n \"data\": []\n },\n \"fields\": [],\n \"first_name\": null,\n \"last_name\": \"Administrator\",\n \"created_by_name\": \" Administrator\" This will be the locale-formatted full name of the user.\n }, ... ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Activities_GET/index.html"} {"id": "7d5caa6efb6b-0", "text": "/Administration/elasticsearch/routing GET\nOverview\n [ADMIN] Elasticsearch index routing\nSummary\n This endpoint returns an overview of the current read and write indices per module. This routing information is\n based on the configured index routing strategies and the index configuration per module. Note that this output\n shows the default routing only as no context is available to determine dynamic routing strategies. This endpoint\n is only available to administrators.\nResponse\n{\n \"Contacts\":{\n \"strategy\":\"static\",\n \"routing\":{\n \"write_index\":\"autobr2583_contacts\",\n \"read_indices\":[\n \"autobr2583_contacts\"\n ]\n }\n },\n \"Accounts\":{\n \"strategy\":\"static\",\n \"routing\":{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchrouting_GET/index.html"} {"id": "7d5caa6efb6b-1", "text": "\"strategy\":\"static\",\n \"routing\":{\n \"write_index\":\"autobr2583_shared\",\n \"read_indices\":[\n \"autobr2583_shared\"\n ]\n }\n },\n \"Emails\":{\n \"strategy\":\"rolling\",\n \"routing\":{\n \"write_index\":\"autobr2583_emails_201503\",\n \"read_indices\":[\n \"autobr2583_emails_201503\",\n \"autobr2583_emails_201502\",\n \"autobr2583_emails_201501\"\n ]\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/elasticsearch/routing GET endpoint.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchrouting_GET/index.html"} {"id": "7d5caa6efb6b-2", "text": "Added /Administration/elasticsearch/routing GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationelasticsearchrouting_GET/index.html"} {"id": "ff573d31bd3d-0", "text": "/logger POST\nOverview\n Logs a message to the Sugar Log\nRequest Arguments\nName\nType\nDescription\nRequired\n level\n \n String\n \n The log level\n \n True\n \n message\n \n String\n \n The message to log\n \n True\n \n channel\n \n String\n \n Prefix for the log message, defaults to Main\n \n false\n \nResponse Arguments\nName\nType\nDescription\n status\n \n bool\n \n if the message was logged\n \nResponse\n{\n \"status\":true,\n}\nChange Log\nVersion\nChange\n v10\n \n Added /logger POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/logger_POST/index.html"} {"id": "c2e09502a410-0", "text": "/Teams/:record/link/:link_name/:remote_id DELETE\nOverview\n Deletes an existing relationship between two records.\nRequest Arguments\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n record\n \n Array\n \n The record to disassociate from the related record.\n \n related_record\n \n Array\n \n The record that was disassociated.\n \nResponse\n{\n \"record\":{\n \"id\":\"da6a3741-2a81-ba7f-f249-512d0932e94e\",\n \"name\":\"Slender Broadband Inc - 1000 units\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-1", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"last_activity_date\":\"2013-02-28T18:36:00+00:00\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_max_id\",\n \"assigned_user_name\":\"Max Jensen\",\n \"team_name\":[\n {\n \"id\":\"East\",\n \"name\":\"East\",\n \"name_2\":\"\",\n \"primary\":false\n },\n {\n \"id\":\"West\",\n \"name\":\"West\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-2", "text": "},\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"opportunity_type\":\"\",\n \"account_name\":\"Slender Broadband Inc\",\n \"account_id\":\"181461c6-dc81-1115-1fe0-512d092e8f15\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"lead_source\":\"Campaign\",\n \"amount\":\"25000\",\n \"base_rate\":\"1\",\n \"amount_usdollar\":\"25000\",\n \"currency_id\":\"-99\",\n \"currency_name\":\"\",\n \"currency_symbol\":\"\",\n \"date_closed\":\"2013-02-27\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-3", "text": "\"date_closed\":\"2013-02-27\",\n \"date_closed_timestamp\":\"1361992480\",\n \"next_step\":\"\",\n \"sales_stage\":\"Needs Analysis\",\n \"sales_status\":\"New\",\n \"probability\":\"90\",\n \"best_case\":\"25000\",\n \"worst_case\":\"25000\",\n \"commit_stage\":\"include\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n },\n \"related_record\":{\n \"id\":\"e689173e-c953-1e14-c215-512d0927e7a2\",\n \"name\":\"Gus Dales\",\n \"date_entered\":\"2013-02-26T19:12:00+00:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-4", "text": "\"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"modified_user_id\":\"1\",\n \"modified_by_name\":\"Administrator\",\n \"created_by\":\"1\",\n \"created_by_name\":\"Administrator\",\n \"description\":\"\",\n \"img\":\"\",\n \"deleted\":false,\n \"assigned_user_id\":\"seed_sally_id\",\n \"assigned_user_name\":\"Sally Bronsen\",\n \"team_name\":[\n {\n \"id\":\"West\",\n \"name\":\"West\",\n \"name_2\":\"\",\n \"primary\":true\n }\n ],\n \"salutation\":\"\",\n \"first_name\":\"Gus\",\n \"last_name\":\"Dales\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-5", "text": "\"first_name\":\"Gus\",\n \"last_name\":\"Dales\",\n \"full_name\":\"Gus Dales\",\n \"title\":\"Director Operations\",\n \"linkedin\":\"\",\n \"facebook\":\"\",\n \"twitter\":\"\",\n \"googleplus\":\"\",\n \"department\":\"\",\n \"do_not_call\":false,\n \"phone_home\":\"(661) 120-2292\",\n \"email\":[\n {\n \"email_address\":\"section.sugar.section@example.it\",\n \"opt_out\":\"1\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"0\"\n },\n {\n \"email_address\":\"support.qa.kid@example.co.uk\",\n \"opt_out\":\"0\",\n \"invalid_email\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-6", "text": "\"opt_out\":\"0\",\n \"invalid_email\":\"0\",\n \"primary_address\":\"1\"\n }\n ],\n \"phone_mobile\":\"(294) 447-9707\",\n \"phone_work\":\"(036) 840-3216\",\n \"phone_other\":\"\",\n \"phone_fax\":\"\",\n \"email1\":\"support.qa.kid@example.co.uk\",\n \"email2\":\"section.sugar.section@example.it\",\n \"invalid_email\":false,\n \"email_opt_out\":false,\n \"primary_address_street\":\"48920 San Carlos Ave\",\n \"primary_address_street_2\":\"\",\n \"primary_address_street_3\":\"\",\n \"primary_address_city\":\"Persistance\",\n \"primary_address_state\":\"CA\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-7", "text": "\"primary_address_state\":\"CA\",\n \"primary_address_postalcode\":\"54556\",\n \"primary_address_country\":\"USA\",\n \"alt_address_street\":\"\",\n \"alt_address_street_2\":\"\",\n \"alt_address_street_3\":\"\",\n \"alt_address_city\":\"\",\n \"alt_address_state\":\"\",\n \"alt_address_postalcode\":\"\",\n \"alt_address_country\":\"\",\n \"assistant\":\"\",\n \"assistant_phone\":\"\",\n \"picture\":\"\",\n \"email_and_name1\":\"\",\n \"lead_source\":\"Support Portal User Registration\",\n \"account_name\":\"Arts & Crafts Inc\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-8", "text": "\"account_name\":\"Arts & Crafts Inc\",\n \"account_id\":\"d43243c6-9b8e-2973-aee2-512d09bc34b4\",\n \"opportunity_role_fields\":\"\",\n \"opportunity_role_id\":\"\",\n \"opportunity_role\":\"\",\n \"reports_to_id\":\"\",\n \"report_to_name\":\"\",\n \"portal_name\":\"GusDales145\",\n \"portal_active\":true,\n \"portal_password\":\"$1$JxYr6tmM$b.O6.KF42jP46RadSwz0N0\",\n \"portal_password1\":\"\",\n \"portal_app\":\"\",\n \"preferred_language\":\"en_us\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "c2e09502a410-9", "text": "\"preferred_language\":\"en_us\",\n \"campaign_id\":\"\",\n \"campaign_name\":\"\",\n \"c_accept_status_fields\":\"\",\n \"m_accept_status_fields\":\"\",\n \"accept_status_id\":\"\",\n \"accept_status_name\":\"\",\n \"sync_contact\":\"\",\n \"my_favorite\":false,\n \"_acl\":{\n \"fields\":{\n }\n }\n }\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/link/:link_name/:remote_id DELETE endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Teamsrecordlinklink_nameremote_id_DELETE/index.html"} {"id": "8127fafaa9d8-0", "text": "//filter GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "8127fafaa9d8-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_GET/index.html"} {"id": "16533e18f221-0", "text": "/RevenueLineItems/:record/quote POST\nConvert a Revenue Line Item to a quote.\nSummary:\n This endpoint is used to convert a single RevenueLineItem to a quote\nQuery Parameters:\nParam\nDescription\nOptional\nrecord\nWhich Revenue Line Item to convert\nfalse\nValid Urls:\n/rest/v10/RevenueLineItems/:record/quote/\nOutput Example:\n {\n id:\"123-456-789-0\",\n name:\"My Test Quote\"\n }\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/RevenueLineItemsrecordquote_POST/index.html"} {"id": "53cd55f66e2e-0", "text": "/Dashboards POST\n Create a new Home dashboard.\nNotice\nThe behavior of this endpoint has changed in v11. For a description of behavior in v11, refer to\n POST /. If you continue to use v10 of the API,\n your REST calls should behave as below. But, it is advisable to upgrade to v11.Migrating to v11:\n Recommended Replacement: POST /Dashboards\n The Home module is no longer the default dashboard_module. To specify the Home\n module, include it in the Request Body.v11: POST /Dashboards with the following in the Request Body:\n{\"dashboard_module\":\"Home\"}\nRequest Arguments\nName\nType\nDescription\nRequired\n\n\nThe name value list of fields to populate.\nTrue\nRequest\n{\n \"name\": \"New Home Dashboard\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_POST/index.html"} {"id": "53cd55f66e2e-1", "text": "True\nRequest\n{\n \"name\": \"New Home Dashboard\",\n \"dashboard_module\": \"Home\",\n \"view_name\": \"\",\n \"metadata\": {\n \"components\": [{\n \"rows\": [[{\n \"width\": 12,\n \"view\": {\n \"limit\": 10,\n \"visibility\": \"user\",\n \"label\": \"Active Tasks\",\n \"type\": \"active-tasks\",\n \"module\": null,\n \"template\": \"tabbed-dashlet\"\n }\n }]],\n \"width\": 12\n }]\n }\n}\nResponse Arguments\nName\nType\nDescription\n\n\nReturns the fields for the newly created dashboard.\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_POST/index.html"} {"id": "53cd55f66e2e-2", "text": "\nReturns the fields for the newly created dashboard.\nResponse\n{\n \"id\": \"4ccda6fa-fa02-9c8e-215f-56cf72f98fcb\",\n \"name\": \"New Home Dashboard\",\n \"date_entered\": \"2016-02-25T13:30:51-08:00\",\n \"date_modified\": \"2016-02-25T13:30:51-08:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"Administrator\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"description\": \"\",\n \"deleted\": false,\n \"dashboard_module\": \"Home\",\n \"view_name\": \"\",\n \"metadata\": {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_POST/index.html"} {"id": "53cd55f66e2e-3", "text": "\"view_name\": \"\",\n \"metadata\": {\n \"components\": [\n {\n \"rows\": [\n [\n {\n \"width\": 12,\n \"view\": {\n \"limit\": 10,\n \"visibility\": \"user\",\n \"label\": \"Active Tasks\",\n \"type\": \"active-tasks\",\n \"module\": null,\n \"template\": \"tabbed-dashlet\"\n }\n }\n ]\n ],\n \"width\": 12\n }\n ]\n },\n \"following\": \"\",\n \"my_favorite\": false,\n \"tag\": [],\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"_acl\": {\n \"fields\": {}\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_POST/index.html"} {"id": "53cd55f66e2e-4", "text": "\"_acl\": {\n \"fields\": {}\n },\n \"view\": \"\",\n \"_module\": \"Dashboards\"\n}\nChange Log\nVersion\nChange\nv11\n Behavior has changed. Please see POST /Dashboards\n for the designated replacement.\n \nv10\nAdded /Dashboards POST endpoint.\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Dashboards_POST/index.html"} {"id": "7537e8f659ec-0", "text": "/Emails/:record PUT\nOverview\n Update an existing Emails record.\nSummary\n Used for updating an archived email, updating a draft to send later, or sending a draft.\nUpdating an Archived Email\nRequest Arguments\nName\nType\nDescription\nRequired\n message_uid\n \n String\n \n Only use this field for updating emails imported from an IMAP server, as this is the email's IMAP UID.\n \n False\n \n assigned_user_id\n \n String\n \n The assigned user's ID.\n \n False\n \n parent_type\n \n String\n \n The parent record's module.\n \n False\n \n parent_id\n \n String\n \n The parent record's ID.\n \n False\n \n team_name\n \n List", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-1", "text": "False\n \n team_name\n \n List\n \n List of teams that can access the email.\n \n False\n \nRequest\n{\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\",\n \"team_name\": [{\n \"id\": \"1\",\n \"display_name\": \"Global\",\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }]\n}\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-2", "text": "\"selected\": false\n }]\n}\nResponse\n{\n \"id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"date_entered\": \"2016-02-25T11:53:07-08:00\",\n \"created_by\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"created_by_name\": \"Sarah Smith\",\n \"date_modified\": \"2016-02-25T11:53:07-08:00\",\n \"modified_by_name\": \"Sarah Smith\",\n \"modified_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"deleted\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-3", "text": "\"deleted\": false,\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"state\": \"Archived\",\n \"name\": \"Re: Discuss Proposal\",\n \"description\": \"Now is a good time\",\n \"description_html\": \"

Now is a good time

\",\n \"date_sent\": \"2012-02-17T06:53:00-08:00\",\n \"message_id\": \"\",\n \"message_uid\": \"\",\n \"reply_to_status\": false,\n \"total_attachments\": 1,\n \"parent_name\": \"Tom Davis\",\n \"parent_type\": \"Leads\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-4", "text": "\"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"\n \"team_count\": \"\",\n \"team_name\": [{\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Emails\"\n}\nUpdating a Draft\nRequest Arguments\nName\nType\nDescription\nRequired\n outbound_email_id\n \n String\n \n The ID of the chosen SMTP configuration for sending an email. Only use this field when saving a draft", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-5", "text": "or sending an email. The user's default SMTP configuration is used if one hasn't been chosen prior to\n sending.\n \n False\n \n name\n \n String\n \n The email's subject.\n \n False\n \n description_html\n \n String\n \n The email's HTML body.\n \n False\n \n description\n \n String\n \n The email's plain text body. This field is not necessary unless the text body is different from the HTML\n body.\n \n False\n \n reply_to_id\n \n String\n \n Only use this field when saving a draft or sending an email that is a reply to another email. This is\n the ID of that other email.\n \n False\n \n parent_type\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-6", "text": "False\n \n parent_type\n \n String\n \n The parent record's module.\n \n False\n \n parent_id\n \n String\n \n The parent record's ID.\n \n False\n \n to\n \n Object\n \n The email's recipients found in the TO field. Existing EmailParticipants records cannot be used; only\n the create and delete actions are supported. Metadata about each recipient is required to\n link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-7", "text": "the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n cc\n \n Object\n \n The email's recipients found in the CC field. Existing EmailParticipants records cannot be used; only\n the create and delete actions are supported. Metadata about each recipient is required to\n link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-8", "text": "the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n bcc\n \n Object\n \n The email's recipients found in the BCC field. Existing EmailParticipants records cannot be used; only\n the create and delete actions are supported. Metadata about each recipient is required to\n link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-9", "text": "the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n attachments\n \n Object\n \n The email's attachments. Existing Notes records cannot be used as email attachments; only the\n create and delete actions are supported. Metadata about each attachment is required to\n link the records.\n \nfilename_guid is the temporary file ID for an uploaded file to attach as a Notes record.\n \nupload_id is the ID of an existing file that the Notes record should reference as the\n attachment. This allows files to be shared by multiple Notes records, to preserve space.\n \n When using upload_id, file_source should be provided to indicate from where the", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-10", "text": "When using upload_id, file_source should be provided to indicate from where the\n file originated. The value should be the module of the record that shares its ID with the file.\n So when an attachment comes from an email template, file_source should be\n EmailTemplates. And when an attachment comes from a document, file_source should\n be DocumentRevisions.\n \n False\n \nRequest\n{\n \"outbound_email_id\": \"b80adf1a-7d78-11e7-855a-3c15c2d582c6\",\n \"name\": \"Re: Discuss Proposal (new time)\",\n \"description_html\": \"

I will call you in 10 minutes.

\",\n \"parent_type\": \"Contacts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-11", "text": "\"parent_type\": \"Contacts\",\n \"parent_id\": \"79b9c194-7d79-11e7-8fc5-3c15c2d582c6\",\n \"to\": {\n \"create\": [{\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"79b9c194-7d79-11e7-8fc5-3c15c2d582c6\"\n }],\n \"delete\": [\n \"ea1cec7e-7d27-11e7-9845-3c15c2d582c6\"\n ]\n },\n \"cc\": {\n \"delete\": [\n \"eafa7e9a-7d27-11e7-aa2b-3c15c2d582c6\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-12", "text": "]\n },\n \"attachments\": {\n \"create\": [{\n \"upload_id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"name\": \"Contract.pdf\",\n \"filename\": \"Contract.pdf\",\n \"file_source\": \"DocumentRevisions\"\n }],\n \"delete\": [\n \"e087e79a-7d27-11e7-b02c-3c15c2d582c6\"\n ]\n }\n}\nResponse\n{\n \"id\": \"f3c85966-7d27-11e7-9e9e-3c15c2d582c6\",\n \"date_entered\": \"2016-02-25T11:53:07-08:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-13", "text": "\"created_by\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"created_by_name\": \"Sarah Smith\",\n \"date_modified\": \"2016-02-25T12:53:07-08:00\",\n \"modified_by_name\": \"Sarah Smith\",\n \"modified_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"deleted\": false,\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"state\": \"Draft\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-14", "text": "\"state\": \"Draft\",\n \"outbound_email_id\": \"b80adf1a-7d78-11e7-855a-3c15c2d582c6\",\n \"name\": \"Re: Discuss Proposal (new time)\",\n \"description\": \"I will call you in 10 minutes.\",\n \"description_html\": \"

I will call you in 10 minutes.

\",\n \"date_sent\": \"2012-02-17T12:53:07-08:00\",\n \"message_id\": \"\",\n \"message_uid\": \"\",\n \"reply_to_id\": \"a028341c-ba92-9343-55e7-56cf5beda121\",\n \"reply_to_status\": false,\n \"total_attachments\": 1,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-15", "text": "\"total_attachments\": 1,\n \"parent_name\": \"Jack Horner\",\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"79b9c194-7d79-11e7-8fc5-3c15c2d582c6\"\n \"team_count\": \"\",\n \"team_name\": [{\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Emails\"\n}\nSending an Email\nRequest Arguments\nName\nType\nDescription\nRequired\n state\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-16", "text": "Name\nType\nDescription\nRequired\n state\n \n String\n \n Use \"Ready\" to send an email.\n \n True\n \n outbound_email_id\n \n String\n \n The ID of the chosen SMTP configuration for sending an email. Only use this field when saving a draft\n or sending an email. The user's default SMTP configuration is used if one hasn't been chosen prior to\n sending.\n \n False\n \n name\n \n String\n \n The email's subject.\n \n False\n \n description_html\n \n String\n \n The email's HTML body.\n \n False\n \n description\n \n String\n \n The email's plain text body. This field is not necessary unless the text body is different from the HTML\n body.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-17", "text": "body.\n \n False\n \n reply_to_id\n \n String\n \n Only use this field when saving a draft or sending an email that is a reply to another email. This is\n the ID of that other email.\n \n False\n \n parent_type\n \n String\n \n The parent record's module.\n \n False\n \n parent_id\n \n String\n \n The parent record's ID.\n \n False\n \n to\n \n Object\n \n The email's recipients found in the TO field. Existing EmailParticipants records cannot be used; only\n the create and delete actions are supported. Metadata about each recipient is required to\n link the records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-18", "text": "link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n cc\n \n Object\n \n The email's recipients found in the CC field. Existing EmailParticipants records cannot be used; only\n the create and delete actions are supported. Metadata about each recipient is required to\n link the records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-19", "text": "link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n bcc\n \n Object\n \n The email's recipients found in the BCC field. Existing EmailParticipants records cannot be used; only\n the create and delete actions are supported. Metadata about each recipient is required to\n link the records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-20", "text": "link the records.\n \nparent_type and parent_id can be Accounts, Contacts, Employees, Leads, Prospects,\n or Users, out out of the box. These fields are not necessary if only an email address is known\n for the recipient.\n \nemail_address_id is the ID of the email address the recipient used in the email. To get\n the ID of the email address, first make a request to /EmailAddresses POST. If this\n argument is not provided, then the primary email address of the parent record is used.\n \n False\n \n attachments\n \n Object\n \n The email's attachments. Existing Notes records cannot be used as email attachments; only the\n create and delete actions are supported. Metadata about each attachment is required to\n link the records.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-21", "text": "link the records.\n \nfilename_guid is the temporary file ID for an uploaded file to attach as a Notes record.\n \nupload_id is the ID of an existing file that the Notes record should reference as the\n attachment. This allows files to be shared by multiple Notes records, to preserve space.\n \n When using upload_id, file_source should be provided to indicate from where the\n file originated. The value should be the module of the record that shares its ID with the file.\n So when an attachment comes from an email template, file_source should be\n EmailTemplates. And when an attachment comes from a document, file_source should\n be DocumentRevisions.\n \n False\n \nRequest\n{\n \"state\": \"Ready\"\n}\nResponse\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-22", "text": "Request\n{\n \"state\": \"Ready\"\n}\nResponse\n{\n \"id\": \"a7795664-7def-11e7-8add-3c15c2d582c6\",\n \"date_entered\": \"2016-02-25T08:53:07-08:00\",\n \"created_by\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"created_by_name\": \"Sarah Smith\",\n \"date_modified\": \"2016-02-25T08:53:07-08:00\",\n \"modified_by_name\": \"Sarah Smith\",\n \"modified_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-23", "text": "\"deleted\": false,\n \"assigned_user_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"assigned_user_name\": \"Sarah Smith\",\n \"state\": \"Archived\",\n \"outbound_email_id\": \"b80adf1a-7d78-11e7-855a-3c15c2d582c6\",\n \"name\": \"Discuss Proposal\",\n \"description\": \"When is a good time for us to chat?\",\n \"description_html\": \"

When is a good time for us to chat?

\",\n \"date_sent\": \"2012-02-17T08:53:07-08:00\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-24", "text": "\"message_id\": \"\",\n \"message_uid\": \"\",\n \"reply_to_id\": \"\",\n \"reply_to_status\": false,\n \"total_attachments\": 2,\n \"parent_name\": \"Tom Davis\",\n \"parent_type\": \"Leads\",\n \"parent_id\": \"f6a0611a-7d27-11e7-9d70-3c15c2d582c6\"\n \"team_count\": \"\",\n \"team_name\": [{\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true,\n \"selected\": false\n }],", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "7537e8f659ec-25", "text": "\"primary\": true,\n \"selected\": false\n }],\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Emails\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Emails/:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Emailsrecord_PUT/index.html"} {"id": "c78375a4aa21-0", "text": "/Administration/search/reindex POST\nOverview\n [ADMIN] Search schedule reindex\nSummary\n This endpoint schedules a reindex. This endpoint is only available to administrators.\nRequest Arguments\nName\nType\nDescription\nRequired\n module_list\n \n String\n \n Comma delimited list of modules to be reindexed. If omitted, all search enabled modules will be reindexed.\n \n Example: Accounts,Contacts\n False\n \n clear_data\n \n Boolean\n \n If set the records of the selected modules will be removed from the search backend and the schema will be\n recreated. All records from given modules will be queued to be reindexed which is orchestrated by the job\n queue.\n If not set, nothing is dropped from the search backend and all records of the selected modules are queued", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsearchreindex_POST/index.html"} {"id": "c78375a4aa21-1", "text": "for reindexing. This is the default behavior.\n \n Example: Accounts,Contacts\n False\n \nResponse\n{\n \"success\": true\n}\nChange Log\nVersion\nChange\n v10\n \n Added /Administration/search/reindex POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Administrationsearchreindex_POST/index.html"} {"id": "f0e7b6d6e750-0", "text": "//:record/file GET\nOverview\n Lists all populated fields of type \"file\" or of type \"image\" for a record.\nRequest Arguments\n This endpoint does not accept any request arguments.\nResponse Arguments\nName\nType\nDescription\n field\n \n Array\n \n The fields containing file properties.\n \n field.content-type\n \n String\n \n The files content type.\n \n field.content-length\n \n Integer\n \n The files content length.\n \n field.name\n \n String\n \n The files ID.\n \n field.width\n \n Integer\n \n The width of the image.\n \n field.height\n \n Integer\n \n The height of the image.\n \n field.uri\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "f0e7b6d6e750-1", "text": "field.uri\n \n String\n \n The URI of the file.\n \nResponse\n{\n \"picture\":{\n \"content-type\":\"image\\/png\",\n \"content-length\":72512,\n \"name\":\"1a7b8f5c-b11c-0094-c8d8-512e9daaa983\",\n \"width\":933,\n \"height\":519,\n \"uri\":\"http:\\/\\/sugarcrm\\/rest\\/v10\\/Contacts\\/fa300a0e-0ad1-b322-9601-512d0983c19a\\/file\\/picture\"\n },\n \"record\": {\n \"my_favorite\": false,\n \"following\": true,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "f0e7b6d6e750-2", "text": "\"my_favorite\": false,\n \"following\": true,\n \"id\": \"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\": \"Test\",\n \"date_modified\": \"2014-05-16T03:49:12+02:00\",\n \"modified_user_id\": \"1\",\n \"modified_by_name\": \"admin\",\n \"created_by\": \"1\",\n \"created_by_name\": \"Administrator\",\n \"doc_owner\": \"1\",\n \"description\": \"\",\n \"deleted\": false,\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"Administrator\",\n \"team_count\": \"\",\n \"team_name\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "f0e7b6d6e750-3", "text": "\"team_count\": \"\",\n \"team_name\": [\n {\n \"id\": 1,\n \"name\": \"Global\",\n \"name_2\": \"\",\n \"primary\": true\n }\n ],\n \"email\": [],\n \"email1\": \"\",\n \"email2\": \"\",\n \"invalid_email\": \"\",\n \"email_opt_out\": \"\",\n \"email_addresses_non_primary\": \"\",\n \"salutation\": \"\",\n \"first_name\": \"\",\n \"last_name\": \"Test\",\n \"full_name\": \"Test\",\n \"title\": \"\",\n \"facebook\": \"\",\n \"twitter\": \"\",\n \"googleplus\": \"\",\n \"department\": \"\",\n \"do_not_call\": false,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "f0e7b6d6e750-4", "text": "\"department\": \"\",\n \"do_not_call\": false,\n \"phone_home\": \"\",\n \"phone_mobile\": \"\",\n \"phone_work\": \"\",\n \"phone_other\": \"\",\n \"phone_fax\": \"\",\n \"primary_address_street\": \"\",\n \"primary_address_city\": \"\",\n \"primary_address_state\": \"\",\n \"primary_address_postalcode\": \"\",\n \"primary_address_country\": \"\",\n \"alt_address_street\": \"\",\n \"alt_address_city\": \"\",\n \"alt_address_state\": \"\",\n \"alt_address_postalcode\": \"\",\n \"alt_address_country\": \"\",\n \"assistant\": \"\",\n \"assistant_phone\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "f0e7b6d6e750-5", "text": "\"assistant\": \"\",\n \"assistant_phone\": \"\",\n \"picture\": \"\",\n \"email_and_name1\": \"\",\n \"lead_source\": \"\",\n \"account_name\": \"\",\n \"account_id\": \"\",\n \"dnb_principal_id\": \"\",\n \"opportunity_role_fields\": \"\",\n \"opportunity_role_id\": \"\",\n \"opportunity_role\": \"\",\n \"reports_to_id\": \"\",\n \"report_to_name\": \"\",\n \"birthdate\": \"\",\n \"portal_name\": \"\",\n \"portal_active\": false,\n \"portal_password\": null,\n \"portal_password1\": null,\n \"portal_app\": \"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "f0e7b6d6e750-6", "text": "\"portal_app\": \"\",\n \"preferred_language\": \"en_us\",\n \"campaign_id\": \"\",\n \"campaign_name\": \"\",\n \"c_accept_status_fields\": \"\",\n \"m_accept_status_fields\": \"\",\n \"accept_status_id\": \"\",\n \"accept_status_name\": \"\",\n \"accept_status_calls\": \"\",\n \"accept_status_meetings\": \"\",\n \"sync_contact\": false,\n \"mkto_sync\": false,\n \"mkto_id\": null,\n \"mkto_lead_score\": null,\n \"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"Contacts\"\n }\n}\nChange Log\nVersion\nChange\n v10", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "f0e7b6d6e750-7", "text": "}\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record/file GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/modulerecordfile_GET/index.html"} {"id": "c22044b729a8-0", "text": "/Meetings POST\nOverview\n Create a single event or a series of event records.\nRequest Arguments\nName\nType\nDescription\nRequired\n \n \n \n \n The name value list of fields to populate.\n \n True\n \nRequest\n{\n \"name\":\"Department Meeting\",\n \"description\":\"Weekly Department Meeting\",\n \"date_start\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"date_end\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"repeat_type\":\"Weekly\",\n \"repeat_interval\":\"1\", /* Every Week */\n \"repeat_dow\":\"25\", /* Tue and Fri */\n \"repeat_count\":\"4\", /* 4 Recurrences */", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Meetings_POST/index.html"} {"id": "c22044b729a8-1", "text": "\"repeat_count\":\"4\", /* 4 Recurrences */\n \"repeat_until\":\"\",\n}\nResponse Arguments\nName\nDescription\nStart Date\nEnd Date\n \n \n Returns the fields for the newly created record.\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added / POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Meetings_POST/index.html"} {"id": "d6fab7032863-0", "text": "/pmse_Project/project/:record GET\nOverview\n Retrieves the schema data to be used by the Process Definition designer\nSummary\n This endpoint will retrieve the JSON encoded schema data for the Process\n Definition identified by the record input parameter.\nRequest Arguments\nName\nType\nDescription\nRequired\nrecord\nString\nThe Process Definition record ID\nTrue\nResponse Arguments\nName\nType\nDescription\nsuccess\nBoolean\nThe status of the response\nproject\nObject\nThe schema data for the Process Definition\nResponse\n{\n \"success\":true,\n \"project\":\n {\n \"id\":\"2119da13-f748-4741-3858-573caddda034\",\n \"name\":\"PD_AC\",\n \"date_entered\":\"2016-05-18 17:58:07\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-1", "text": "\"date_entered\":\"2016-05-18 17:58:07\",\n \"date_modified\":\"2016-05-18 18:41:45\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":\"0\",\n \"prj_uid\":\"2119da13-f748-4741-3858-573caddda034\",\n \"prj_target_namespace\":null,\n \"prj_expression_language\":null,\n \"prj_type_language\":null,\n \"prj_exporter\":null,\n \"prj_exporter_version\":null,\n \"prj_author\":null,\n \"prj_author_version\":null,\n \"prj_original_source\":null,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-2", "text": "\"prj_original_source\":null,\n \"prj_status\":\"INACTIVE\",\n \"prj_module\":\"Accounts\",\n \"team_id\":\"1\",\n \"team_set_id\":\"1\",\n \"team_set_selected_id\":\"\",\n \"assigned_user_id\":\"1\",\n \"au_first_name\":null,\n \"au_last_name\":\"Administrator\",\n \"cbu_first_name\":null,\n \"cbu_last_name\":\"Administrator\",\n \"mbu_first_name\":null,\n \"mbu_last_name\":\"Administrator\",\n \"tn_name\":\"Global\",\n \"tn_name_2\":\"\",\n \"my_favorite\":null,\n \"following\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-3", "text": "\"my_favorite\":null,\n \"following\":\"0\",\n \"pro_id\":\"9f8c4fcd-8d4c-949d-50b8-573caddf8c0c\",\n \"diagram\":\n [\n {\n \"id\":\"9ce21d87-f81a-5be2-86e8-573cad955d06\",\n \"name\":\"PD_AC\",\n \"date_entered\":\"2016-05-18 17:58:07\",\n \"date_modified\":\"2016-05-18 17:58:07\",\n \"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-4", "text": "\"description\":null,\n \"deleted\":\"0\",\n \"dia_uid\":\"343198086573cad309cc1d6078585899\",\n \"prj_id\":\"2119da13-f748-4741-3858-573caddda034\",\n \"dia_is_closable\":\"0\",\n \"assigned_user_id\":\"1\",\n \"activities\":\n [\n {\n \"id\":\"9ce21d87-f81a-5be2-86e8-573cad955d06\",\n \"name\":\"PD_AC\",\n \"date_entered\":\"2016-05-18 17:58:07\",\n \"date_modified\":\"2016-05-18 17:58:07\",\n \"modified_user_id\":\"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-5", "text": "\"modified_user_id\":\"1\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":\"0\",\n \"dia_uid\":\"343198086573cad309cc1d6078585899\",\n \"prj_id\":\"2119da13-f748-4741-3858-573caddda034\",\n \"dia_is_closable\":\"0\",\n \"assigned_user_id\":\"1\",\n \"activities\":\n [\n {\n \"id\":\"566f0156-0ce3-75b4-da56-573cb73984aa\",\n \"name\":\"Action # 1\",\n \"date_entered\":\"2016-05-18 18:41:29\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-6", "text": "\"date_entered\":\"2016-05-18 18:41:29\",\n \"date_modified\":\"2016-05-18 18:41:45\",\n \"created_by\":\"1\",\n \"description\":\"\",\n \"deleted\":\"0\",\n \"act_uid\":\"552527013573cb7565825f2050463919\",\n \"act_type\":\"TASK\",\n \"act_is_for_compensation\":\"0\",\n \"act_start_quantity\":\"1\",\n \"act_completion_quantity\":\"0\",\n \"act_task_type\":\"SCRIPTTASK\",\n \"act_implementation\":\"\",\n \"act_instantiate\":\"0\",\n \"act_script_type\":\"CHANGE_FIELD\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-7", "text": "\"act_script_type\":\"CHANGE_FIELD\",\n \"act_script\":\"\",\n \"act_loop_type\":\"NONE\",\n \"act_test_before\":\"0\",\n \"act_loop_maximum\":\"0\",\n \"act_loop_condition\":\"\",\n \"act_loop_cardinality\":\"0\",\n \"act_loop_behavior\":\"\",\n \"act_is_adhoc\":\"0\",\n \"act_is_collapsed\":\"0\",\n \"act_completion_condition\":\"\",\n \"act_ordering\":\"PARALLEL\",\n \"act_cancel_remaining_instances\":\"1\",\n \"act_protocol\":\"\",\n \"act_method\":\"\",\n \"act_is_global\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-8", "text": "\"act_is_global\":\"0\",\n \"act_referer\":\"\",\n \"act_default_flow\":\"0\",\n \"act_master_diagram\":\"\",\n \"bou_x\":\"245\",\n \"bou_y\":\"106\",\n \"bou_width\":\"35\",\n \"bou_height\":\"35\",\n \"bou_container\":\"bpmnDiagram\",\n \"act_name\":\"Action # 1\"\n }\n ],\n \"id\":\"566f0156-0ce3-75b4-da56-573cb73984aa\",\n \"name\":\"Action # 1\",\n \"date_entered\":\"2016-05-18 18:41:29\",\n \"date_modified\":\"2016-05-18 18:41:45\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-9", "text": "\"date_modified\":\"2016-05-18 18:41:45\",\n \"created_by\":\"1\",\n \"description\":\"\",\n \"deleted\":\"0\",\n \"act_uid\":\"552527013573cb7565825f2050463919\",\n \"act_type\":\"TASK\",\n \"act_is_for_compensation\":\"0\",\n \"act_start_quantity\":\"1\",\n \"act_completion_quantity\":\"0\",\n \"act_task_type\":\"SCRIPTTASK\",\n \"act_implementation\":\"\",\n \"act_instantiate\":\"0\",\n \"act_script_type\":\"CHANGE_FIELD\",\n \"act_script\":\"\",\n \"act_loop_type\":\"NONE\",\n \"act_test_before\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-10", "text": "\"act_test_before\":\"0\",\n \"act_loop_maximum\":\"0\",\n \"act_loop_condition\":\"\",\n \"act_loop_cardinality\":\"0\",\n \"act_loop_behavior\":\"\",\n \"act_is_adhoc\":\"0\",\n \"act_is_collapsed\":\"0\",\n \"act_completion_condition\":\"\",\n \"act_ordering\":\"PARALLEL\",\n \"act_cancel_remaining_instances\":\"1\",\n \"act_protocol\":\"\",\n \"act_method\":\"\",\n \"act_is_global\":\"0\",\n \"act_referer\":\"\",\n \"act_default_flow\":\"0\",\n \"act_master_diagram\":\"\",\n \"bou_x\":\"245\",\n \"bou_y\":\"106\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-11", "text": "\"bou_x\":\"245\",\n \"bou_y\":\"106\",\n \"bou_width\":\"35\",\n \"bou_height\":\"35\",\n \"bou_container\":\"bpmnDiagram\",\n \"act_name\":\"Action # 1\"\n }\n ],\n \"events\":\n [\n {\n \"id\":\"80a37c82-8be8-c668-a547-573cb791b905\",\n \"name\":\"Start Event # 1\",\n \"date_entered\":\"2016-05-18 18:41:29\",\n \"date_modified\":\"2016-05-18 18:41:29\",\n \"created_by\":\"1\",\n \"description\":\"\",\n \"deleted\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-12", "text": "\"description\":\"\",\n \"deleted\":\"0\",\n \"evn_uid\":\"632263607573cb74a582507093735454\",\n \"evn_type\":\"START\",\n \"evn_marker\":\"MESSAGE\",\n \"evn_is_interrupting\":\"1\",\n \"evn_attached_to\":\"\",\n \"evn_cancel_activity\":\"0\",\n \"evn_activity_ref\":\"\",\n \"evn_wait_for_completion\":\"1\",\n \"evn_error_name\":\"\",\n \"evn_error_code\":\"\",\n \"evn_escalation_name\":\"\",\n \"evn_escalation_code\":\"\",\n \"evn_condition\":\"\",\n \"evn_message\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-13", "text": "\"evn_condition\":\"\",\n \"evn_message\":\"\",\n \"evn_operation_name\":\"\",\n \"evn_operation_implementation\":\"\",\n \"evn_time_date\":\"\",\n \"evn_time_cycle\":\"\",\n \"evn_time_duration\":\"\",\n \"evn_behavior\":\"CATCH\",\n \"bou_x\":\"132\",\n \"bou_y\":\"108\",\n \"bou_width\":\"33\",\n \"bou_height\":\"33\",\n \"bou_container\":\"bpmnDiagram\",\n \"evn_name\":\"Start Event # 1\"\n },\n {\n \"id\":\"82894d13-1af8-f039-2cd3-573cb755559e\",\n \"name\":\"End Event # 1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-14", "text": "\"name\":\"End Event # 1\",\n \"date_entered\":\"2016-05-18 18:41:29\",\n \"date_modified\":\"2016-05-18 18:41:29\",\n \"created_by\":\"1\",\n \"description\":\"\",\n \"deleted\":\"0\",\n \"evn_uid\":\"282428179573cb7585826d6045140545\",\n \"evn_type\":\"END\",\n \"evn_marker\":\"EMPTY\",\n \"evn_is_interrupting\":\"1\",\n \"evn_attached_to\":\"\",\n \"evn_cancel_activity\":\"0\",\n \"evn_activity_ref\":\"\",\n \"evn_wait_for_completion\":\"1\",\n \"evn_error_name\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-15", "text": "\"evn_error_name\":\"\",\n \"evn_error_code\":\"\",\n \"evn_escalation_name\":\"\",\n \"evn_escalation_code\":\"\",\n \"evn_condition\":\"\",\n \"evn_message\":\"\",\n \"evn_operation_name\":\"\",\n \"evn_operation_implementation\":\"\",\n \"evn_time_date\":\"\",\n \"evn_time_cycle\":\"\",\n \"evn_time_duration\":\"\",\n \"evn_behavior\":\"THROW\",\n \"bou_x\":\"349\",\n \"bou_y\":\"107\",\n \"bou_width\":\"33\",\n \"bou_height\":\"33\",\n \"bou_container\":\"bpmnDiagram\",\n \"evn_name\":\"End Event # 1\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-16", "text": "\"evn_name\":\"End Event # 1\"\n }\n ],\n \"gateways\":[],\n \"artifacts\":[],\n \"flows\":\n [\n {\n \"id\":\"974e5216-9d76-5e30-7241-573cb73b7761\",\n \"name\":\"\",\n \"date_entered\":\"2016-05-18 18:41:36\",\n \"date_modified\":\"2016-05-18 18:41:36\",\n \"created_by\":\"1\",\n \"description\":\"\",\n \"deleted\":\"0\",\n \"flo_uid\":\"287649205573cb75b582a78086279138\",\n \"flo_type\":\"SEQUENCE\",\n \"flo_element_origin\":\"632263607573cb74a582507093735454\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-17", "text": "\"flo_element_origin_type\":\"bpmnEvent\",\n \"flo_element_origin_port\":\"0\",\n \"flo_element_dest\":\"552527013573cb7565825f2050463919\",\n \"flo_element_dest_type\":\"bpmnActivity\",\n \"flo_element_dest_port\":\"0\",\n \"flo_is_inmediate\":\"\",\n \"flo_condition\":\"\",\n \"flo_eval_priority\":\"0\",\n \"flo_x1\":\"165\",\n \"flo_y1\":\"125\",\n \"flo_x2\":\"243\",\n \"flo_y2\":\"122\",\n \"flo_state\":\n [\n {\n \"x\":165,\n \"y\":125\n },\n {\n \"x\":204,", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-18", "text": "},\n {\n \"x\":204,\n \"y\":125\n },\n {\n \"x\":204,\n \"y\":122\n },\n {\n \"x\":243,\n \"y\":122\n }\n ],\n \"prj_id\":\"2119da13-f748-4741-3858-573caddda034\"\n },\n {\n \"id\":\"9fc25911-3e2d-89f1-8d37-573cb73639bd\",\n \"name\":\"\",\n \"date_entered\":\"2016-05-18 18:41:36\",\n \"date_modified\":\"2016-05-18 18:41:36\",\n \"created_by\":\"1\",\n \"description\":\"\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-19", "text": "\"created_by\":\"1\",\n \"description\":\"\",\n \"deleted\":\"0\",\n \"flo_uid\":\"121706749573cb75d582c86016080199\",\n \"flo_type\":\"SEQUENCE\",\n \"flo_element_origin\":\"552527013573cb7565825f2050463919\",\n \"flo_element_origin_type\":\"bpmnActivity\",\n \"flo_element_origin_port\":\"0\",\n \"flo_element_dest\":\"282428179573cb7585826d6045140545\",\n \"flo_element_dest_type\":\"bpmnEvent\",\n \"flo_element_dest_port\":\"0\",\n \"flo_is_inmediate\":\"\",\n \"flo_condition\":\"\",\n \"flo_eval_priority\":\"0\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-20", "text": "\"flo_condition\":\"\",\n \"flo_eval_priority\":\"0\",\n \"flo_x1\":\"282\",\n \"flo_y1\":\"122\",\n \"flo_x2\":\"349\",\n \"flo_y2\":\"124\",\n \"flo_state\":\n [\n {\n \"x\":282,\n \"y\":122\n },\n {\n \"x\":315,\n \"y\":122\n },\n {\n \"x\":315,\n \"y\":124\n },\n {\n \"x\":349,\n \"y\":124\n }\n ],\n \"prj_id\":\"2119da13-f748-4741-3858-573caddda034\"\n }\n ]", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-21", "text": "}\n ]\n }\n ],\n \"process_definition\":\n {\n \"id\":\"9f8c4fcd-8d4c-949d-50b8-573caddf8c0c\",\n \"name\":\"\",\n \"date_entered\":\"2016-05-18 17:58:07\",\n \"date_modified\":\"2016-05-18 17:58:07\",\n \"created_by\":\"1\",\n \"description\":null,\n \"deleted\":\"0\",\n \"pro_module\":\"Accounts\",\n \"pro_status\":\"INACTIVE\",\n \"pro_locked_variables\":[],\n \"pro_terminate_variables\":\"\",\n \"execution_mode\":\"SYNC\"\n },\n \"prj_name\":\"PD_AC\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-22", "text": "},\n \"prj_name\":\"PD_AC\",\n \"prj_description\":null,\n \"script_tasks\":\n {\n \"add_related_record\":\n {\n \"1\":\n {\n \"value\":\"members\",\n \"text\":\"Accounts (Members: members)\",\n \"module\":\"Accounts\",\n \"module_label\":\"Accounts\",\n \"module_name\":\"Accounts\",\n \"relationship\":\"member_accounts\"\n },\n \"2\":\n {\n \"value\":\"bugs\",\n \"text\":\"Bugs (Bugs: bugs)\",\n \"module\":\"Bugs\",\n \"module_label\":\"Bugs\",\n \"module_name\":\"Bugs\",\n \"relationship\":\"accounts_bugs\"\n },\n \"3\":\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-23", "text": "},\n \"3\":\n {\n \"value\":\"calls\",\n \"text\":\"Calls (Calls: calls)\",\n \"module\":\"Calls\",\n \"module_label\":\"Calls\",\n \"module_name\":\"Calls\",\n \"relationship\":\"account_calls\"\n },\n \"4\":\n {\n \"value\":\"cases\",\n \"text\":\"Cases (Cases: cases)\",\n \"module\":\"Cases\",\n \"module_label\":\"Cases\",\n \"module_name\":\"Cases\",\n \"relationship\":\"account_cases\"\n },\n \"5\":\n {\n \"value\":\"contacts\",\n \"text\":\"Contacts (Contacts: contacts)\",\n \"module\":\"Contacts\",\n \"module_label\":\"Contacts\",\n \"module_name\":\"Contacts\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-24", "text": "\"module_label\":\"Contacts\",\n \"module_name\":\"Contacts\",\n \"relationship\":\"accounts_contacts\"\n },\n \"6\":\n {\n \"value\":\"contracts\",\n \"text\":\"Contracts (Contracts: contracts)\",\n \"module\":\"Contracts\",\n \"module_label\":\"Contracts\",\n \"module_name\":\"Contracts\",\n \"relationship\":\"account_contracts\"\n },\n \"7\":\n {\n \"value\":\"documents\",\n \"text\":\"Documents (Documents: documents)\",\n \"module\":\"Documents\",\n \"module_label\":\"Documents\",\n \"module_name\":\"Documents\",\n \"relationship\":\"documents_accounts\"\n },\n \"8\":\n {\n \"value\":\"leads\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-25", "text": "},\n \"8\":\n {\n \"value\":\"leads\",\n \"text\":\"Leads (Leads: leads)\",\n \"module\":\"Leads\",\n \"module_label\":\"Leads\",\n \"module_name\":\"Leads\",\n \"relationship\":\"account_leads\"\n },\n \"9\":\n {\n \"value\":\"meetings\",\n \"text\":\"Meetings (Meetings: meetings)\",\n \"module\":\"Meetings\",\n \"module_label\":\"Meetings\",\n \"module_name\":\"Meetings\",\n \"relationship\":\"account_meetings\"\n },\n \"10\":\n {\n \"value\":\"notes\",\n \"text\":\"Notes (Notes: notes)\",\n \"module\":\"Notes\",\n \"module_label\":\"Notes\",\n \"module_name\":\"Notes\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-26", "text": "\"module_label\":\"Notes\",\n \"module_name\":\"Notes\",\n \"relationship\":\"account_notes\"\n },\n \"11\":\n {\n \"value\":\"opportunities\",\n \"text\":\"Opportunities (Opportunity: opportunities)\",\n \"module\":\"Opportunities\",\n \"module_label\":\"Opportunities\",\n \"module_name\":\"Opportunities\",\n \"relationship\":\"accounts_opportunities\"\n },\n \"12\":\n {\n \"value\":\"project\",\n \"text\":\"Projects (Projects: project)\",\n \"module\":\"Projects\",\n \"module_label\":\"Projects\",\n \"module_name\":\"Project\",\n \"relationship\":\"projects_accounts\"\n },\n \"13\":\n {\n \"value\":\"products\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-27", "text": "},\n \"13\":\n {\n \"value\":\"products\",\n \"text\":\"Quoted Line Items (Products: products)\",\n \"module\":\"Quoted Line Items\",\n \"module_label\":\"Quoted Line Items\",\n \"module_name\":\"Products\",\n \"relationship\":\"products_accounts\"\n },\n \"14\":\n {\n \"value\":\"quotes_shipto\",\n \"text\":\"Quotes (Quotes Ship to: quotes_shipto)\",\n \"module\":\"Quotes\",\n \"module_label\":\"Quotes\",\n \"module_name\":\"Quotes\",\n \"relationship\":\"quotes_shipto_accounts\"\n },\n \"15\":\n {\n \"value\":\"quotes\",\n \"text\":\"Quotes (Quotes: quotes)\",\n \"module\":\"Quotes\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "d6fab7032863-28", "text": "\"text\":\"Quotes (Quotes: quotes)\",\n \"module\":\"Quotes\",\n \"module_label\":\"Quotes\",\n \"module_name\":\"Quotes\",\n \"relationship\":\"quotes_billto_accounts\"\n },\n \"16\":\n {\n \"value\":\"tasks\",\n \"text\":\"Tasks (Tasks: tasks)\",\n \"module\":\"Tasks\",\n \"module_label\":\"Tasks\",\n \"module_name\":\"Tasks\",\n \"relationship\":\"account_tasks\"\n }\n }\n }\n }\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Projectprojectrecord_GET/index.html"} {"id": "db1cb988dbc3-0", "text": "/Mail POST\nOverview\n Create an email and send or save as draft.\nQuery String Parameters\n This endpoint does not accept any query string parameters.\nInput Parameters\nName\nType\nDescription\nRequired\n email_config\n \n String\n \n ID of the outbound email configuration to use when sending this email\n \n True\n \n to_addresses\n \n Array\n \n Array of name/email address pairs for the TO field, when present, only email subfield is required (not name).\n \n True\n \n cc_addresses\n \n Array\n \n Array of name/email address pairs for the CC field, when present, email subfield is required.\n \n False\n \n bcc_addresses\n \n Array", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-1", "text": "False\n \n bcc_addresses\n \n Array\n \n Array of name/email address pairs for the BCC field, when present, email subfield is required.\n \n False\n \n subject\n \n String\n \n Subject of the email\n \n False\n \n html_body\n \n String\n \n HTML body of the email\n \n False\n \n text_body\n \n String\n \n Text body of the email\n \n False\n \n status\n \n String\n \n Indicates the status of the email - 'draft' or 'ready' (ready to be sent)\n \n True\n \n related\n \n Object", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-2", "text": "True\n \n related\n \n Object\n \n Contains 'parent_type' and 'parent_id' to relate this email to (for example 'Contact' and a contact's id)\n \n False\n \n teams\n \n Object\n \n Team(s) to assign this email to. 'primary' attribute is an id string for the primary team and 'other' attribute is an array of id strings for the other teams - only primary is required\n \n True\n \n attachments\n \n Array\n \n Array of file attachments - each attachment consists of a 'type' (where the attachment came from: upload, document, or template), 'id' (of the file upload, note, document revision, etc), and 'name' (the file name)\n \n False\n \nInput Example\n{", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-3", "text": "False\n \nInput Example\n{\n \"email_config\":\"abc181a2-5c05-b879-8e68-502279a8c401\",\n \"to_addresses\":[\n {\n \"name\":\"John Doe\",\n \"email\":\"john_doe@foo.com\"\n },\n {\n \"name\":\"David Madison\",\n \"email\":\"david_madison@bar.com\"\n }\n ],\n \"cc_addresses\":[\n {\n \"name\":\"Tom Swift\",\n \"email\":\"tswift@baz.com\"\n }\n ],\n \"bcc_addresses\":null,\n \"subject\":\"Minneapolis Convention\",\n \"html_body\":\"Hello World<\\/body><\\/html>\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-4", "text": "\"text_body\":\"Hello World\"\n \"status\":\"ready\",\n \"related\": {\n \"type\":\"Contacts\",\n \"id\":\"61cf0f8d-938c-c9b2-53ad-51ed7bbcf83b\"\n },\n \"teams\": {\n \"primary\": \"dabec868-696c-f458-e204-50227995ab50\",\n \"others\": [\n \"c3094c88-c95f-2e17-4553-50227996ad20\",\n \"abcde868-696c-f458-e704-58369095ab62\"\n ]\n },\n \"attachments\": [\n {\n \"type\": \"upload\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-5", "text": "\"attachments\": [\n {\n \"type\": \"upload\",\n \"id\": \"cfbe4551-548d-f602-b228-45387645fc12\",\n \"name\": \"company_logo.jpg\"\n },\n {\n \"type\": \"document\",\n \"id\": \"876112a4-89c1-4ba7-a05a-7729a7a76818\"\n },\n {\n \"type\": \"template\",\n \"id\": \"002cfe6c-98e9-4342-bdb1-1660d0788872\"\n }\n ],\n}\nResult\nName\nType\nDescription\n \n \n \n \n Returns the fields for the newly created email record.\n \nOutput Example", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-6", "text": "Returns the fields for the newly created email record.\n \nOutput Example\n{\n \"team_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"team_set_id\": \"9c61c46a-a7c5-df71-481c-51d48232f820\",\n \"id\": \"d9c165d0-8863-ba61-dc85-51ed8016c476\",\n \"date_entered\": \"2013-07-22 18:57:57\",\n \"date_modified\": \"2013-07-22 18:57:57\",\n \"assigned_user_id\": \"1\",\n \"assigned_user_name\": \"\",\n \"modified_user_id\": \"1\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-7", "text": "\"modified_user_id\": \"1\",\n \"modified_by_name\": \"admin\",\n \"created_by\": \"1\",\n \"created_by_name\": \"\",\n \"deleted\": 0,\n \"from_addr_name\": \"SugarCRM\",\n \"reply_to_addr\": \"\",\n \"to_addrs_names\": \"john_doe@foo.com, david_madison@bar.com\",\n \"cc_addrs_names\": \"tswift@baz.com\",\n \"description_html\": \"Hello World<\\/body><\\/html>\",\n \"description\": \"Hello World\",\n \"date_sent\": \"2013-07-22 18:57:00\",\n \"name\": \"Minneapolis Convention\",\n \"type\": \"out\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "db1cb988dbc3-8", "text": "\"name\": \"Minneapolis Convention\",\n \"type\": \"out\",\n \"status\": \"sent\",\n \"parent_type\": \"Contacts\",\n \"parent_id\": \"61cf0f8d-938c-c9b2-53ad-51ed7bbcf83b\",\n}\nChange Log\nVersion\nChange\n v11\n \n Last version in which /Mail POST is available. Use /Emails POST instead.\n \n v10\n \n Added /Mail POST endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Mail_POST/index.html"} {"id": "d58c97ea7d58-0", "text": "/OutboundEmail/:record PUT\nOverview\n Update an OutboundEmail configuration.\nSummary\n Each configuration that is saved is validated first by attempting to connect to the server.\nRequest Arguments\nName\nType\nDescription\nRequired\n name\n \n String\n \n The display name of the configuration.\n \n False\n \n mail_sendtype\n \n String\n \n Only SMTP is supported. It is recommended that you do not change this from smtp.\n \n False\n \n mail_smtptype\n \n String\n \n The email provider through which emails are sent. This is merely a convenience which allows for\n prepopulating data in the UI. Possible values are: google, exchange, outlook, other.\n \n False\n \n mail_smtpserver\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailrecord_PUT/index.html"} {"id": "d58c97ea7d58-1", "text": "False\n \n mail_smtpserver\n \n String\n \n The address of the SMTP server.\n \n False\n \n mail_smtpport\n \n Integer\n \n The port on which to connect to the SMTP server.\n \n False\n \n mail_smtpuser\n \n String\n \n The username for authenticating with the SMTP server. It is only required if mail_smtpauth_req is\n true.\n \n False\n \n mail_smtppass\n \n String\n \n The password for authenticating with the SMTP server. It is only required if\n mail_smtpauth_req is true.\n \n False\n \n mail_smtpauth_req\n \n Boolean", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailrecord_PUT/index.html"} {"id": "d58c97ea7d58-2", "text": "mail_smtpauth_req\n \n Boolean\n \n Indicates whether or not the SMTP server requires authentication.\n \n False\n \n mail_smtpssl\n \n String\n \n The encryption protocol used for connecting to the SMTP server. \"0\" represents no encryption.\n \"1\" represents SSL. \"2\" represents TLS.\n \n False\n \nRequest\n{\n \"mail_smtpport\": 587,\n \"mail_smtpssl\": \"2\"\n}\nResponse Arguments\nName\nType\nDescription\n name\n \n String\n \n The display name of the configuration.\n \n type\n \n String\n \n Possible values are: user, system, system-override. Only the administrator may update the system\n configuration. This field may never change.", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailrecord_PUT/index.html"} {"id": "d58c97ea7d58-3", "text": "configuration. This field may never change.\n \n user_id\n \n String\n \n The current user's ID. The current user may only update configurations that he or she owns.\n \n mail_sendtype\n \n String\n \n Only SMTP is supported, smtp will always be returned.\n \n mail_smtptype\n \n String\n \n The email provider through which emails are sent. Possible values are: google, exchange, outlook, other.\n \n mail_smtpserver\n \n String\n \n The address of the SMTP server.\n \n mail_smtpport\n \n Integer\n \n The port on which to connect to the SMTP server.\n \n mail_smtpuser\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailrecord_PUT/index.html"} {"id": "d58c97ea7d58-4", "text": "mail_smtpuser\n \n String\n \n The username for authenticating with the SMTP server.\n \n mail_smtppass\n \n Boolean\n \n Indicates whether or not a password exists. true is returned for this field when a password does\n exist. This field is not included in the response when a password does not exist.\n \n mail_smtpauth_req\n \n Boolean\n \n Indicates whether or not the SMTP server requires authentication.\n \n mail_smtpssl\n \n String\n \n The encryption protocol used for connecting to the SMTP server.\n \nResponse\n{\n \"id\": \"e04ce998-960e-11e6-8628-3c15c2d582c6\",\n \"name\": \"My Exchange Account\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailrecord_PUT/index.html"} {"id": "d58c97ea7d58-5", "text": "\"name\": \"My Exchange Account\",\n \"type\": \"user\",\n \"user_id\": \"e91b1fa7-1bd8-3c71-be96-512e643f9ca4\",\n \"mail_sendtype\": \"smtp\",\n \"mail_smtptype\": \"exchange\",\n \"mail_smtpserver\": \"smtp.example.com\",\n \"mail_smtpport\": 587,\n \"mail_smtpuser\": \"foo@example.com\",\n \"mail_smtppass\": true,\n \"mail_smtpauth_req\": true,\n \"mail_smtpssl\": \"2\",\n \"deleted\": false,\n \"my_favorite\": false,\n \"_acl\": {\n \"fields\": {}\n },", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailrecord_PUT/index.html"} {"id": "d58c97ea7d58-6", "text": "\"_acl\": {\n \"fields\": {}\n },\n \"_module\": \"OutboundEmail\"\n}\nChange Log\nVersion\nChange\n v10\n \n Added /OutboundEmail/:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/OutboundEmailrecord_PUT/index.html"} {"id": "79a7589cad66-0", "text": "/Meetings/:record PUT\nOverview\n Update a calendar event record of the specified type.\nRequest Arguments\nName\nType\nDescription\nRequired\n all_recurrences\n \n Boolean\n \n Flag to update all events in a series.\n \n False\n \nRequest\nhttp://{site_url}/rest/v10/Meetings/2c9e5c09-6824-0d14-f5cb-5130321ac3cf?all_recurrences=true\n{\n \"name\":\"Department Meeting\",\n \"description\":\"Weekly Department Meeting\",\n \"date_start\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"date_end\":\"yyyy-mm-ddThh:mm:ss-00:00\",\n \"repeat_type\":\"Weekly\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Meetingsrecord_PUT/index.html"} {"id": "79a7589cad66-1", "text": "\"repeat_type\":\"Weekly\",\n \"repeat_interval\":\"1\", /* Every Week */\n \"repeat_dow\":\"25\", /* Tue and Fri */\n \"repeat_count\":\"4\", /* 4 Recurrences */\n \"repeat_until\":\"\",\n}\nResponse Arguments\nName\nDescription\nStart Date\nEnd Date\n \n \n Returns the fields for the updated record.\n \nResponse\n{\n}\nChange Log\nVersion\nChange\n v10\n \n Added //:record PUT endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/Meetingsrecord_PUT/index.html"} {"id": "fff7dd890665-0", "text": "/pmse_Inbox/historyLog/:filter GET\nOverview\n Gets the history log for a process \nSummary\n This endpoint gets the history log for a process \nRequest Arguments\nName\nType\nDescription\nRequired\nfilter\nstring\nThe id of the process trigger sequence (cas_id)\ntrue\nResponse Arguments\nName\nType\nDescription\nsuccess\nboolean\nResult of the operation\nresult\n:\nHistory records\nResponse\n{\n \"success\":true,\n \"result\":\n [\n {\n \"image\":\"index.php?entryPoint=download\\u0026id=0b2dc2f0-2377-11e6-9d2a-6c4008960436\\u0026type=SugarFieldImage\\u0026isTempFile=1\",\n \"user\":\"Administrator\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxhistoryLogfilter_GET/index.html"} {"id": "fff7dd890665-1", "text": "\"user\":\"Administrator\",\n \"current_user\":\"Administrator\",\n \"due_date\":\"2016-06-03T16:18:59-07:00\",\n \"end_date\":\"2016-06-01T16:18:59-07:00\",\n \"current_date\":\"2016-06-02T10:53:14-07:00\",\n \"delegate_date\":\"2016-06-01T16:18:59-07:00\",\n \"start_date\":\"2016-06-01T16:18:59-07:00\",\n \"completed\":true,\n \"cas_user_id\":\"1\",\n \"data_info\":\"has created Process #2 on the Account record with the event \\u0027Start Event # 1\\u0027.\"\n },\n ]\n}", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxhistoryLogfilter_GET/index.html"} {"id": "fff7dd890665-2", "text": "},\n ]\n}\n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_InboxhistoryLogfilter_GET/index.html"} {"id": "b51e7ba8c874-0", "text": "/pmse_Business_Rules GET\nOverview\n Lists filtered records.\nSummary\n This endpoint will return a set of records filtered by an expression. The filter can be applied to multiple fields\n and have multiple and/or conditions in it. Alternatively, you may use an existing filter by specifying its id.\n If both a filter definition and a filter id are passed, the two filters will be joined with an AND.\n Care will need to be taken to make sure that any filters used have appropriate indexes on the server side otherwise\n the runtime of the endpoint will be very long. Related fields can be searched by specifying the field name as:\n \"link_name.remote_field\", so if you wished to search the Accounts module by a related member account you would\n use \"members.sic_code\".\nRequest Arguments\nName\nType\nDescription\nRequired\n filter\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-1", "text": "Name\nType\nDescription\nRequired\n filter\n \n String\n \n The filter expression. Filter expressions are explained below.\n Note that JSON-encoded filters can be specified as query parameters\n in one of two ways for GET requests:\n \n By specifying individual filter arguments as distinct parameters.\n Example: filter[0][id]=1.\n \n By specifying the whole filter as a single JSON-encoded string.\n Note that this syntax is currently not supported on certain modules.\n Example: filter=[{\"id\":\"1\"}].\n \n False\n \n filter_id\n \n String\n \n Identifier for a preexisting filter. If filter is also set, the two\n filters are joined with an AND.\n \n False\n \n max_num\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-2", "text": "False\n \n max_num\n \n Integer\n \n A maximum number of records to return. Default is 20.\n \n False\n \n offset\n \n Integer\n \n The number of records to skip over before records are returned. Default is 0.\n \n False\n \n fields\n \n String\n \n Comma delimited list of fields to return. Each field may be represented either by string, or by map\n containing field name and additional field parameters (applicable to link and collection fields).\n The fields id and date_modified will always be returned.\n \n Example: name,account_type,description,{\"name\":\"opportunities\",\"fields\":[\"id\",\"name\",\"sales_status\"],\"order_by\":\"date_closed:desc\"}\n For more details on additional field parameters, see", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-3", "text": "For more details on additional field parameters, see\n Relate API and\n Collection API.\n \n False\n \n view\n \n String\n \n Instead of defining the fields argument, the view argument can be used instead. The field list is\n constructed at the server side based on the view definition which is requested. This argument can be used\n in combination with the fields argument. Common views are \"record\" and \"list\".\n \n Example: record\n False\n \n order_by\n \n String\n \n How to sort the returned records, in a comma delimited list with the direction appended to the column name\n after a colon.\n \n Example: name:DESC,account_type:DESC,date_modified:ASC\n False\n \n q\n \n String", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-4", "text": "False\n \n q\n \n String\n \n A search expression, will search on this module. Cannot be used at the same time as a filter expression or id.\n \n False\n \n deleted\n \n Boolean\n \n Boolean to show deleted records in the result set.\n \n False\n \n nulls_last\n \n Boolean\n \n Boolean to return records with null values in order_by fields last in the result set.\n \n False\n \nFilter Expressions\nThere are four types of filters:\nBasic\n This will filter the results by checking the field \"name\" for value \"Nelson Inc\". This will only find exact matches.\nExample\n{\n \"filter\":[\n {\n \"name\":\"Nelson Inc\"\n }\n ]\n}\nFull", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-5", "text": "\"name\":\"Nelson Inc\"\n }\n ]\n}\nFull\n This expression allows you to specify what operation you want to use for filtering on the field. In the example you\n would match any record where the field \"name\" starts with the value \"Nelson\".\n Example\n{\n \"filter\":[\n {\n \"name\":{\n \"$starts\":\"Nelson\"\n }\n }\n ]\n}\n Below is a list of operation types:\n \nOperation\nDescription\n $equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Performs an exact match on that field.\n \n $not_equals\n \n Matches on non-matching values.\n \n $starts", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-6", "text": "Matches on non-matching values.\n \n $starts\n \n Matches on anything that starts with the value.\n \n $ends\n \n Matches anything that ends with the value.\n \n $contains\n \n Matches anything that contains the value\n \n $in\n \n Finds anything where field matches one of the values as specified as an array.\n \n $not_in\n \n Finds anything where field does not matches any of the values as specified as an array.\n \n $is_null\n \n Checks if the field is null. This operation does not need a value specified.\n \n $not_null\n \n Checks if the field is not null. This operation does not need a value specified.\n \n $lt", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-7", "text": "$lt\n \n Matches when the field is less than the value.\n \n $lte\n \n Matches when the field is less than or equal to the value.\n \n $gt\n \n Matches when the field is greater than the value.\n \n $gte\n \n Matches when the field is greater than or equal to the value.\n \nSub-expressions\n This allows you to group filter expressions into or/and groupings. By default all expressions are and'ed together.\n The example expression would match if the field \"name\" was either \"Nelson Inc\" or \"Nelson LLC\". The only currently\n accepted sub-expression types are \"$and\" and \"$or\".\n Example\n{\n \"filter\":[\n {\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-8", "text": "{\n \"$or\":[\n {\n \"name\":\"Nelson Inc\"\n },\n {\n \"name\":\"Nelson LLC\"\n }\n ]\n }\n ]\n}\nModules\n There are two module expressions, they operate on modules instead of fields. The current module can be specified by\n either using the module name \"_this\" or by leaving the module name as a blank string. The example expression would\n filter the records in the current module to only your favorites. The only currently accepted module expressions are\n \"$favorite\" and \"$owner\".\nExample\n{\n \"filter\":[\n {\n \"$favorite\":\"_this\"\n }\n ]\n}\nResponse Arguments\nName\nType\nDescription\n next_offset\n \n Integer", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-9", "text": "Name\nType\nDescription\n next_offset\n \n Integer\n \n Displays the next offset for retrieval of additional results. -1 will be returned when there are no more\n records.\n \n records\n \n Array\n \n An array of results containing matched records.\n \nResponse\n{\n \"next_offset\":-1,\n \"records\":[\n {\n \"id\":\"fa300a0e-0ad1-b322-9601-512d0983c19a\",\n \"name\":\"Dale Spivey\",\n \"date_modified\":\"2013-02-28T05:03:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\",", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-10", "text": "{\n _module: \"Opportunities\",\n \"id\": \"b0701501-1fab-8ae7-3942-540da93f5017\",\n \"name\": \"360 Vacations - 228 Units\",\n \"date_modified\": \"2014-09-08T16:05:00+03:00\",\n \"sales_status\": \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n },\n {\n \"id\":\"95e17367-9b3d-0e26-22dc-512d0961fedf\",\n \"name\":\"Florence Haddock\",\n \"date_modified\":\"2013-02-26T19:12:00+00:00\",\n \"description\":\"\",\n \"opportunities\": [\n {", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "b51e7ba8c874-11", "text": "\"description\":\"\",\n \"opportunities\": [\n {\n _module: \"Opportunities\"\n date_modified: \"2014-09-08T16:05:00+03:00\"\n id: \"9ce7c088-8ee4-7cd3-18f1-540da944d4c0\"\n name: \"360 Vacations - 312 Units\"\n sales_status: \"New\"\n },\n ],\n \"_acl\": {\n \"fields\": {\n }\n }\n }\n ]\n}\nChange Log\nVersion\nChange\n v10\n \n Added //filter GET endpoint.\n \n \tLast modified: 2023-02-03 21:04:03", "source": "https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Integration/Web_Services/REST_API/Endpoints/pmse_Business_Rules_GET/index.html"} {"id": "330c3a39828d-0", "text": "/ping/whattimeisit GET\nOverview\n Responds with the current time in server format.\nRequest Arguments\n This endpoint does not accept any arguments.\nResponse Arguments\nName\nType\nDescription\n \n \n String\n \n Returns the servers time.\n \nResponse\n