Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sandeep
CKB
Commits
0a6e8e16
Commit
0a6e8e16
authored
1 year ago
by
Sandeep
Browse files
Options
Download
Email Patches
Plain Diff
other code added
parent
c61fb1be
Sandeep
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Speciality_mapping_according_form_name.dg
+24
-0
Speciality_mapping_according_form_name.dg
Speciality_mapping_according_form_name.md
+7
-0
Speciality_mapping_according_form_name.md
with
31 additions
and
0 deletions
+31
-0
Speciality_mapping_according_form_name.dg
0 β 100644
View file @
0a6e8e16
lead_data = zoho.crm.getRecordById("Leads",lead_id);
// info lead_data;
form_name = lead_data.get("Form_Name");
info form_name;
trust_location = lead_data.get("Trust_Location");
mp = Map();
queryMap1 = Map();
queryMap1.put("select_query","select Call_Speciality,Trust_Location from Form_Name_Mapping where Name = '" + form_name + "' and Trust_Location = '" + trust_location + "'");
response2 = invokeurl
[
url :"https://www.zohoapis.in/crm/v4/coql"
type :POST
parameters:queryMap1.toString()
connection:"zohoconditions"
];
info response2 + "2nd response";
for each rec in response2.get("data")
{
form_call_speciality = rec.get("Call_Speciality");
// info form_call_speciality;
}
mp.put("Call_Speciality",form_call_speciality);
updt = zoho.crm.updateRecord("Leads",lead_id,mp);
info updt;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Speciality_mapping_according_form_name.md
0 β 100644
View file @
0a6e8e16
## Description
1.
In this function we are fetching the form name of the lead then search in the custom module which is named as : Form Name Mapping
2.
If we found the record in the Form Name Mapping module then we fetch the trust location and call speciality
3.
Then we update the Lead record in lead module's call speciality.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help