Process:
Network Call procedure:
Get/vtigercrm/webservice.php?operation=getchallenge&username=admin http/1.1-OK content-type:application/ JSON {"Success": true, "result": {"token": "5081cda1715be", "Servertime": 1350684065, "Expiretime": 1350684365}} POST/ vtigercrm/webservice.php operation=login&username=admin&accesskey=a04xxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/ 1.1 OK Content-type:application/json {"Success": true, "result": {"sessionname": "26d6184e5081cda23c6de", "userId": "19x1", "Version": "0.22", "vtigerversion": "5.3.0"}} get/vtigercrm/webservice.php?operation=listtypes& Sessionname=26d6184e5081cda23c6de http/1.1 OK Content-type:application/json {"Success": true, "result": {"Types": [ "Calendar", "Leads", "Accounts", "Contacts", "potentials", "products", "Documents", "Emails", "HelpDesk", "Faq", " Vendors "," Pricebooks "," Quotes "," PurchaseOrder "," SalesOrder "," Invoice "," Campaigns "," Events "," Users "," Pbxmanager "," Services "," servicecontracts "," modcomments "," Smsnotifier "," Assets "," Projectmilestone "," Projecttask "," PrOject "," Groups "," Currency "," Documentfolders "," Companydetails "]," information ": {" Calendar ": {" isentity ": true," Label ":" Calendar "," singular ":" To Does "}," Leads ": {" isentity ": True," label ":" Leads "," singular ":" Lead "}," Accounts ": {" Isentity ": True," "label": "Accounts", "singular": "Account"}, "Contacts": {"isentity": True, "label": "Contacts", " Singular ":" "Contact"}, "potentials": {"isentity": True, "label": "Potentials", "singular": "Potential"}, "products": {" Isentity ": True," "label": "Products", "singular": "Product"}, "Documents": {"isentity": True, "label": "Documents", " Singular ":" Document "}," Emails ": {" isentity ": True," label ":" Email "," singular ":" Email "}," HelpDesk ": {" isentity ": True, "label": "Trouble Tickets", "singular": "Ticket"}, "Faq": {"isentity": True, "label": "FAQ", "singular": "FAQ"}, " Vendors ": {" isentity ": True," label ":" Vendors "," singular ":" Vendor "}," Pricebooks ": {" isentity ": True," label ":" Price Books "," singular ":" Pricebook "}," Quotes ": {" isentity ": True," label ":" Quotes "," singular ":" Quote "}," PurchaseOrder ": {"Isentity": True, "label": "PuRchase order "," singular ":" Purchase Order "}," SalesOrder ": {" isentity ": True," label ":" Sales Order "," singular ":" Sales Order "}," Invoice ": {" isentity ": True," label ":" Invoice "," singular ":" Invoice "}," campaigns ": {" isentity ": True," label ":" Campaigns "," singular ":" Campaign "}," events ": {" isentity ": True," label ":" Events "," singular ":" Event "}," Users ": {" Isentity ": True," "label": "Users", "singular": "User"}, "Pbxmanager": {"isentity": True, "label": "PBX Manager", "singular ":" Single_pbxmanager "}," services ": {" isentity ": True," label ":" Services "," singular ":" Service "}," Servicecontracts " : {"isentity": True, "label": "Service Contracts", "singular": "Service Contract"}, "Modcomments": {"isentity": true, " Label ":" Comments "," singular ":" Comment "}," Smsnotifier ": {" isentity ": True," label ":" Smsnotifier "," singular ":" SMS Info "}," Assets ": {" isentity ": True," label ":" Assets "," singular ":" Asset "}," Project Milestone ": {" isentity ": true," Label ":" Project Milestones "," singular ":" Project Milestone "}," Projecttask ": {" isentity ": True," label ":" Project Tasks "," SingUlar ":" Project Task "}," project ": {" isentity ": True," label ":" Projects "," singular ":" Project "}," Groups ": {" isentity ": False, "label": "Groups", "singular": "Groups"}, "Currency": {"isentity": false, "label": "Currency", "singular": " Currency "}," Documentfolders ": {" isentity ": false," label ":" Documentfolders "," singular ":" Documentfolders "}," Companydetails ": {" isentity ": false," label ":" Companydetails "," singular ":" Companydetails "}}}} get/vtigercrm/
Webservice.php?operation=describe&elementtype=helpdesk&sessionname=26d6184e5081cda23c6de HTTP/1.1-OK Content-type:application/json {"Success": true, "result": {"label": "Trouble Tickets", "name": "HelpDesk", "createable" : True, "updateable": True, "deleteable": True, "retrieveable": true, "fields": [{"Name": "Ticket_no", "label": "Ticket No" , "mandatory": false, "type": {"name": "String"}, "nullable": false, "editable": false, "default": "},{" name ":" Assigned_ USER_ID "," label ":" Assigned to "," mandatory ": true," type ": {" name ":" Owner "}," nullable ": false," editable ": true," Default ":" 0 "},{"Name ":" parent_id "," label ":" Related to "," mandatory ": false," type ": {" RefersTo ": [" Accounts "," Contacts "]," name ":" Reference "}," nullable ": True," editable ": true," Default ":"},{"name": "Ticketpriorities", "label": "Priority", " Mandatory ": false," type ": {" picklistvalues ": [{" Label ":" Low "," Value ":" Low "},{" label ":" Normal "," value ":" Normal "},{ ' label ': ' High ', ' value ': ' High '},{' label ': ' Urgent ', ' value ': ' Urgent '}], ' DefaultValue ': ' Low ', ' name ': ' picklist '}, ' Nullable ": True," editable ": true," Default ":" ""},{"name": "product_id", "label": "Product Name", "mandatory": false, " Type ": {" RefersTo ": [" Products "]," name ":" Reference "}," nullable ": True," editable ": true," Default ":"},{"name": " Ticketseverities "," label ":" Severity "," mandatory ": false," type ": {" picklistvalues ": [{" label ":" Minor "," Value ":" Minor "},{" label ":" Major "," Value ":" Major "},{" label ":" Feature "," Value ":" Feature "},{" label ":" Critical "," Value ":" Critical "}]," DefaultValue ":" Minor "," name ":" Picklist "}," nullable ": True," editable ": true," Default ":"},{"name": " Ticketstatus "," label ":" Status"," mandatory ": true," type ": {" picklistvalues ": [{" label ":" Open "," value ":" Open "},{" label ":" In Progress "," Value ":" In Progress "},{" label ":" Wait for Response "," Value ":" Wait for Response "},{" label ":" Closed "," Value ":" Closed "}]," DefaultValue ":" Open "," name ":" Picklist "}," nullable ": True," editable ": true," Default ":"},{"name": " Ticketcategories "," label ":" Category "," mandatory ": false," type ": {" picklistvalues ": [{" label ":" Big Problem "," value " : "Big Problem"},{"label": "Small Problem", "value": "Small Problem"},{"label": "Other Problem", "value": "Other Problem"} ], "defaultvalue": "Big Problem", "name": "Picklist"}, "nullable": True, "editable": true, "Default": "},{" name ":" Update _log "," label ":" Update History "," mandatory ": false," type ": {" name ":" Text "}," nullable ": True," editable ": true," Default ":" "},{" name ":" Hours "," label ":" Hours "," mandatory ": false," type ": {" name ":" Integer "}," nullable ": true," Editable ": True," Default ":" "},{" name ":" Days "," label ":" Days "," mandatory ": false," type ": {" name ":" Integer "}," Nullable ": True," editable ": true," deFault ":" "},{" name ":" Createdtime "," label ":" Created Time "," mandatory ": false," type ": {" name ":" DateTime "}," Nullable " : false, "editable": false, "default": "},{" name ":" Modifiedtime "," label ":" Modified Time "," mandatory ": false," type ": { "Name": "DateTime"}, "nullable": false, "editable": false, "default": "" "},{" name ":" Ticket_title "," label ":" title "," Mandatory ": True," type ": {" name ":" String "}," nullable ": false," editable ": true," Default ":" "},{" name ":" description ", "Label": "Description", "mandatory": false, "type": {"name": "Text"}, "nullable": True, "editable": true, "Default": "},{ "Name": "Solution", "label": "Solution", "mandatory": false, "type": {"name": "Text"}, "nullable": True, "editable": true, "Default": ""},{"name": "id", "label": "Ticketid", "mandatory": false, "type": {"name": "Autogenerated"}, "editable": False, "nullable": false, "default": ""}], "Idprefix": "9", "isentity": True, "Labelfields": "title"} post/vtigercrm/ webservice.php Operation=create&format=json&sessionname=26d6184e5081cda23c6de&elementtype=helpdesk &element=%7b%22ticketpriorities%22%3a%22low%22%2c%22ticketseverities%22%3a%22minor%22%2c%22ticketstatus%22%3a%22open%22 %2c%22ticketcategories%22%3a%22big%20problem%22%2c%22ticket_title%22%3a%22my%20ticket%20001%e4%b8%ad%e6%96% 87002%22%2c%22assigned_user_id%22%3a%2219x1%22%7d http/1.1 OK Content-type:application/json {"Success": true, " Result ": {" ticket_no ":" TT4 "," assigned_user_id ":" 19x1 "," parent_id ":" "," ticketpriorities ":" Low "," product_id ":" "," Ticketseverities ":" Minor "," Ticketstatus ":" Open "," ticketcategories ":" Big Problem "," Update_log ":" "," Hours ":" 0 "," Days ":" 0 "," createdtime ":" 2012-10-19 22:01:42 "," Modifiedtime ":" 2012-10-19 22:01:42 "," Ticket_title ":" My ticket 001\
U4e2d\u6587002 "," description ":" "," Solution ":" "," id ":" 9x6 "}}
Resources:
WebServices Tutorials
Vtiger CRM WebServices
Vtiger CRM plugin for Firefox version 5.3