Namespace: Record

.UI. Record

Methods

staticZOHO.CRM.UI.Record.create(data){Promise}

Open CreatePage of the specified Record
Name Type Description
data object Configuration Object
Name Type Description
Entity String SysRefName of the module.
Target String Allowed values "_blank"
Returns:
Type Description
Promise resolved with true | false
Examples
//To open record creation in same window
ZOHO.CRM.UI.Record.create({Entity:"Leads"})
.then(function(data){
    console.log(data)
})
//To open record in new tab
ZOHO.CRM.UI.Record.create({Entity:"Leads",Target:"_blank"})
.then(function(data){
    console.log(data)
})

staticZOHO.CRM.UI.Record.edit(data){Promise}

open EditPage of the specified Record
Name Type Description
data object Configuration Object
Name Type Description
Entity String SysRefName of the module.
RecordID String RecordID to open
Target String Allowed values "_blank"
Returns:
Type Description
Promise resolved with true | false
Examples
//To open record in same window
ZOHO.CRM.UI.Record.edit({Entity:"Leads",RecordID:"1000000036062"})
.then(function(data){
    console.log(data)
})
//To open record edit in new tab
ZOHO.CRM.UI.Record.edit({Entity:"Leads",RecordID:"1000000036062",Target:"_blank"})
.then(function(data){
    console.log(data)
})

staticZOHO.CRM.UI.Record.open(data){Promise}

Open DetailPage of the specified Record
Name Type Description
data object Configuration Object
Name Type Description
Entity String SysRefName of the module.
RecordID String RecordID to open
Target String Allowed values "_blank"
Returns:
Type Description
Promise resolved with true | false
Examples
//To open record in same window
ZOHO.CRM.UI.Record.open({Entity:"Leads",RecordID:"1000000036062"})
.then(function(data){
    console.log(data)
})
//To open record in new tab
ZOHO.CRM.UI.Record.open({Entity:"Leads",RecordID:"1000000036062",Target:"_blank"})
.then(function(data){
    console.log(data)
})

staticZOHO.CRM.UI.Record.populate(RecordData){Promise}

Populate the given data in the entity form
Name Type Description
RecordData object
See:
  • In recordData just_sub_form is a subform sysrefname. you can send the list of subform fields object
Returns:
Type Description
Promise resolved with true | false
Example
var recordData = {
      "Company": "zoho",
      "Last_Name": "uk",
     "just_sub_form":[
         {
           "name1":"uk",
           "email":"uk@zoho.com"
         },
         {
           "name1":"mail",
           "email":"mail@zoho.com"
         }
     ]
}
ZOHO.CRM.UI.Record.populate(recordData)
.then(function(data){
    console.log(data)
})