Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------attached to stage in Seller Blueprint, "Under Contract"
- deal_details = zoho.crm.getRecordById("Deals",deal_id);
- //search for any recurring tasks and delete them
- related_tasks = zoho.crm.getRelatedRecords("Tasks","Deals",deal_id);
- delete_list = list();
- for each task in related_tasks
- {
- recurring = task.getJSON("Recurring_Activity");
- if(!recurring.isNull())
- {
- task_id = task.get("id");
- delete_list.add(task_id);
- }
- }
- if(!delete_list.isEmpty())
- {
- response = invokeurl
- [
- url :"https://www.zohoapis.com/crm/v3/Tasks?ids=" + delete_list
- type :DELETE
- connection:"crm_all"
- ];
- info response;
- }
- //gather deal details
- deal_owner_id = deal_details.get("Owner").get("id");
- HOA = deal_details.get("HOA");
- year_built = deal_details.get("Year_Built");
- solar = deal_details.get("Solar");
- septic = deal_details.get("Septic");
- contract_date = ifNull(deal_details.get("Contract_Date"),zoho.currentdate);
- closing_date = ifNull(deal_details.get("Closing_Date"),contract_date.addDay(30));
- inspection_over = ifNull(deal_details.get("Inspection_Period_over"),contract_date.addDay(10));
- earnest_money = deal_details.get("Earnest_Money");
- contract_price = deal_details.get("Contract_Price");
- seller_concessions_yn = deal_details.get("Seller_Concessions");
- seller_concessions_amt = deal_details.get("Seller_Concessions3");
- accepted_offer_id = deal_details.get("Accepted_Offer").get("id");
- //syncing offer module with the deal module
- offer_Details = zoho.crm.getRecordById("Offers",accepted_offer_id);
- //info "offer details: " + offer_Details;
- //collecting offer information
- Buyer_Name = offer_Details.get("Name");
- Seller_Name = offer_Details.get("Seller_Name");
- Assessor_Number = offer_Details.get("Parcel_Number");
- Contract_Price = ifNull(contract_price,offer_Details.get("Contract_Price"));
- Earnest_Money_Amount = ifNull(earnest_money,offer_Details.get("Earnest_Money_Amount"));
- Down_Payment = offer_Details.get("Down_payment");
- Financed_amt = ifNull(offer_Details.get("Financed_Amount"),"");
- Financing_Type = offer_Details.get("Financing");
- Pre_qual_amt = ifNull(offer_Details.get("Pre_Qual_Amount"),"");
- Closing_Date = ifNull(closing_date,offer_Details.get("Closing_Date"));
- Possession_Date = offer_Details.get("Possession_Date");
- Addendums_inc = offer_Details.get("Addendums_Incorporated");
- if(!Addendums_inc.isNull())
- {
- other_addendums = offer_Details.get("Other_Addendums");
- }
- contingent_yn = offer_Details.get("Contingent_Offer");
- if(contingent_yn == "Yes")
- {
- contingent_address = offer_Details.get("Contingency_Address");
- }
- else
- {
- contingent_address = "";
- }
- Personal_Property = offer_Details.get("Personal_property_included_in_sale");
- //info "Addendums: " + Addendums_inc;
- Seller_Concessions = ifNull(seller_concessions_yn,offer_Details.get("Seller_Concessions2"));
- if(Seller_Concessions == "Yes")
- {
- Seller_Concessions_Amount = ifNull(seller_concessions_amt,offer_Details.get("Seller_Concessions_amt"));
- }
- else
- {
- Seller_Concessions_amt = "0";
- }
- appraisal_paid_by = ifNull("Appraisal_Cost_paid_by","");
- Inspection_Days = offer_Details.get("Inspection_Days");
- escrow_id = offer_Details.getJSON("Title_Escrow").get("id");
- Home_Waranty = offer_Details.get("Home_Waranty");
- Home_warranty_ordered_by = ifNull(offer_Details.get("Home_Warraty_Ordered_By"),"");
- Home_Warranty_Cost = ifNull(offer_Details.get("Home_Warranty_Cost"),"");
- Home_Warranty_Paid_By = ifNull(offer_Details.get("Home_Warranty_Paid_By"),"");
- Home_Warranty_Coverage = ifNull(offer_Details.get("Home_Warranty_Coverage"),"");
- Additional_Terms = offer_Details.get("Additional_Terms");
- Response_time = offer_Details.get("Response_Time");
- // get buyer agents info
- Buyer_Agent_1 = offer_Details.get("Buyer_Agent_1");
- if(!Buyer_Agent_1.isNull())
- {
- Buyer_Agent_1_id = offer_Details.get("Buyer_Agent_1").get("id");
- Buyer_Agent_1_id = Buyer_Agent_1_id.toLong();
- // get buyer agent 2 info
- Buyer_Agent_2 = offer_Details.get("Buyer_Agent_2");
- if(!Buyer_Agent_2.isNull())
- {
- Buyer_Agent_2_id = offer_Details.get("Buyer_Agent_2").get("id");
- Buyer_Agent_2_id = Buyer_Agent_2_id.toLong();
- }
- }
- //get listing agents info
- Listing_Agent_1 = offer_Details.get("Seller_Agent_1");
- if(!Listing_Agent_1.isNull())
- {
- Listing_Agent_1_id = offer_Details.get("Seller_Agent_1").get("id");
- Listing_Agent_1_id = Listing_Agent_1_id.toLong();
- Listing_Agent_2 = offer_Details.get("Seller_Agent_2");
- if(!Listing_Agent_2.isNull())
- {
- Listing_Agent_2_id = offer_Details.get("Seller_Agent_2").get("id");
- Listing_Agent_2_id = Listing_Agent_2_id.toLong();
- }
- }
- //get lender info
- if(!Financing_Type == "Cash")
- {
- lender_info = offer_Details.get("Lender");
- if(!lender_info.isNull())
- {
- lender_id = lender_info.get("id");
- }
- }
- // input all values into map
- deal_map = Map();
- deal_map.put("Buyer_Name",Buyer_Name);
- deal_map.put("Seller_Name",Seller_Name);
- deal_map.put("Assessor_Number",Assessor_Number);
- deal_map.put("Contract_Price",Contract_Price);
- deal_map.put("Earnest_Money",Earnest_Money_Amount);
- deal_map.put("Down_Payment",Down_Payment);
- deal_map.put("Financed_Amount",Financed_amt);
- deal_map.put("Financing_Type",Financing_Type);
- deal_map.put("Closing_Date",Closing_Date);
- deal_map.put("Pre_Qualifcation_amount",Pre_qual_amt);
- deal_map.put("Possession_Date",Possession_Date);
- deal_map.put("Addenda_Incorporated",Addendums_inc);
- deal_map.put("Contingent",contingent_yn);
- deal_map.put("Contingency_Address",contingent_address);
- deal_map.put("Personal_Property_Included",Personal_Property);
- deal_map.put("Seller_Concessions",Seller_Concessions);
- deal_map.put("Seller_Concessions3",Seller_Concessions_Amount);
- deal_map.put("Appraisal_paid_by",appraisal_paid_by);
- deal_map.put("Inspection_Days",Inspection_Days);
- deal_map.put("Home_Warranty_Y_N",Home_Waranty);
- deal_map.put("Home_Warranty_Ordered_By",Home_warranty_ordered_by);
- deal_map.put("Home_Warranty_Cost",Home_Warranty_Cost);
- deal_map.put("Home_Warranty_paid_by",Home_Warranty_Paid_By);
- deal_map.put("Home_Warranty_Coverage",Home_Warranty_Coverage);
- deal_map.put("Additional_Terms",Additional_Terms);
- deal_map.put("Listing_Agent_1",Listing_Agent_1_id);
- deal_map.put("Listing_Agent_2",Listing_Agent_2_id);
- deal_map.put("Buyer_Agent_1",Buyer_Agent_1_id);
- deal_map.put("Buyer_Agent_2",Buyer_Agent_2_id);
- deal_map.put("Lender",lender_id);
- deal_map.put("Title_Escrow",escrow_id);
- //update the deal with the map
- if(!accepted_offer_id.isNull())
- {
- updt_deal = zoho.crm.updateRecord("Deals",deal_id,deal_map);
- info "updated deal: " + updt_deal;
- }
- //-----------------------------OpeningTasks--------------------------------------------------------
- //create general task map
- task_map = Map();
- task_map.put("What_Id",{"id":deal_id});
- task_map.put("$se_module","Deals");
- task_map.put("Priority","Normal");
- task_map.put("Task_Type","Contract");
- task_map.put("Status","Not Completed");
- task_map.put("Owner",{"id":deal_owner_id});
- task_map.put("Due_Date",zoho.currentdate);
- task_map.put("task_mod","opening");
- //Change MLS Status (immediately)(contract task)
- task_map.put("Subject","Change MLS Status, input closing date 7 days after contract date");
- task_map.put("Description","Change the MLS status and enter all pertinent info into the MLS. Extend the closing date by at least 7 days that way it won't accidentally close early on you.");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Upload contract docs (immediately)(contract task)
- task_map.put("Subject","Upload purchase contract, all counter offers, addendums, and other files");
- task_map.put("Description","Check the paperwork tab and note all documents that are due. Use the Agent Upload Button to upload unexpected documents such as counter offers, addendums, or any other document that the buyer and seller both sign");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Send SPDS, LBP or clue to other agent (immediately)(contract task)
- task_map.put("Subject","Send SPDS, LBP, CLUE to buyers agent");
- task_map.put("Description","Send the SPDS and Lead based paint addendum (if built before 1978) as well as loss history. If you don't have it filled out by the seller yet, you only have 3 days to give it to the buyer. Get the buyer to sign it and return it to the files after signed");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //create social media post (immediately)(social media)
- task_map.put("Type","Social Media");
- task_map.put("Subject","Create Under contract post in Listreports and upload to social media");
- task_map.put("Description","Create some kind of social media post and post it on your social media accounts because you're awesome");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Email signed docs to seller (1 business day)(contract task)
- task_map.put("Task_Type","Contract Task");
- task_map.put("Due_Date",zoho.currentdate.addBusinessDay(1));
- task_map.put("Subject","Email all signed docs to seller");
- task_map.put("Description","Gather all contract documents after broker review and email them to the seller");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Email seller info to title (1 business day)(contract task)
- task_map.put("Subject","Email seller info and commission split to title");
- task_map.put("Description","Email the seller contact information to title and request they send all necessary documents directly to the seller for signatures/filling out");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //-----------------------------------BINSR tasks------------------
- //Inspection period over tasks (1 day before inspection period is over)(contract task)
- task_map.put("task_mod","binsr");
- task_map.put("Due_Date",inspection_over.subDay(1));
- task_map.put("Subject","Make sure BINSR is received");
- task_map.put("Description","The BINSR is due tomorrow. If the buyer does not turn it in, they are moving forward without repairs");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Check again BINSR is due by buyer TODAY (inspection period over)(contract task)
- task_map.put("Due_Date",inspection_over);
- task_map.put("Subject","BINSR is due TODAY");
- task_map.put("Description","The BINSR is due today. Once BINSR is received, click the \"Through Inspections\" Transition at the top of this page");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Help seller organize repairs (contract task)(1 day after inspection is over)
- task_map.put("Due Date",inspection_over.addDay(1));
- task_map.put("Subject","Help Seller organize repairs");
- task_map.put("Description","Make sure sellers understand the ROC requirement for contractors over $1000 and help them fix things in contractual acceptable way");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Order LSU (1 day after inspection period is over)(contract task)
- task_map.put("Due_Date",inspection_over.addDay(1));
- task_map.put("Subject","Order LSU from lender");
- task_map.put("Description","If lender is out of state, you can provide them with blank LSU found in \"Blank Docs\"");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Order another LSU (10 days before closing)(contract task)
- task_map.put("Due_Date",closing_date.subDay(10));
- task_map.put("Subject","Order LSU from Lender to verify nearly complete");
- task_map.put("Description","");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //-----------------------------------------Closing tasks---------------
- task_map.put("task_mod","closing");
- //ask for estimated settlement statement (7 days before closing)(closing task)
- daysmod = "7";
- task_map.put("daysmod",daysmod);
- task_map.put("Subject","Ask for estimated settlement statement from title/escrow officer");
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Go over settlement statement with seller (5 days before closing)(closing task)
- daysmod = "5";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Go over settlement statement with seller");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- // Verify settlement is OK with title (4 days before closing)(closing task)
- daysmod = "4";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Verify settlement is OK with Title");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Send Commission instructions to broker for signature(10 days before closing)(closing task)
- daysmod = "10";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Send commission instructions to broker for signature");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //Send signed commission instructions to title (7 days before closing)(closing task)
- daysmod = "10";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Send broker signed commission instructions to title");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //-Email seller reminder to turn off utilities/ transfer on closing day (7 days before closing)(closing task)
- daysmod = "7";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Email seller reminder to turn off utilities/ transfer on closing day");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //--------Ask if seller wants a family photo (5 days before closing)(closing task)
- daysmod = "5";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Ask if seller wants a family photo");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //--------Ensure repairs are completed (5 days before closing)(closing task)
- daysmod = "5";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Ensure repairs are completed");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //--------Send repair receipts to buyer's agent (5 days before closing)(closing task)
- daysmod = "5";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Send repair receipts to buyer's agent");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //-------Check with lender to ensure clear to close (5 days before closing)(closing task)
- daysmod = "5";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Check with lender to ensure CD has been signed and is clear to close");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //--------Check Workdrive file to ensure all documents are uploaded/ completed (2 days before closing)(closing task)
- daysmod = "2";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Check Paperwork to ensure all documents are uploaded/ completed");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //---------Schedule seller signing with title(4 days before closing)(closing task)
- daysmod = "4";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Schedule seller signing with title");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //---------Ensure MLS has correct data (4 days before closing)(closing task)
- daysmod = "4";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Ensure MLS has correct data (contract price, closing date, concessions, commissions, etc.)");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //-------Call title company to make sure they have all documents required (1 day before closing)(closing task)
- daysmod = "1";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Call title company to make sure they have all documents required");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //-------Final walkthrough completed (1 day before closing)(closing task)
- daysmod = "1";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Final walkthrough completed?");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //----------Has property closed? (closing day)(closing task)
- daysmod = "0";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Has property closed?");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //---------Ensure MLS info is correct (closing day) (closing task)
- daysmod = "0";
- task_map.put("daysmod",daysmod);
- task_map.put("Due_Date",closing_date.subDay(daysmod));
- task_map.put("Subject","Change closing date in MLS is correct if property does not close today");
- create_task = zoho.crm.createRecord("Tasks",task_map,{"trigger":{"workflow"}});
- //--------------------------------------------------------PAPERWORK---------------------------------------------------------------------------
- paper_map = Map();
- paper_map = Map();
- paper_map.put("$se_module","Deals");
- paper_map.put("Deal_Name",{"id":deal_id});
- paper_map.put("Due_Date",zoho.currentdate);
- paper_map.put("Owner",{"id":deal_owner_id});
- paper_map.put("Status","Not Submitted");
- paper_map.put("Type","Purchase");
- //Purchase Contract
- paper_map.put("Name","Purchase Contract");
- paper_map.put("Due_Date",zoho.currentdate);
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- info create_paperwork;
- //Broker W-9
- paper_map.put("Name","Broker W-9");
- paper_map.put("Due_Date",closing_date.subDay(3));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- info create_paperwork;
- //HOA
- if(HOA == "Yes")
- {
- paper_map.put("Name","HOA Addendum");
- paper_map.put("Due_Date",zoho.currentdate);
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- info create_paperwork;
- }
- //On Site Wastewater Addendum
- if(septic == "Yes")
- {
- paper_map.put("Name","On Site Wastewater Addendum");
- paper_map.put("Due_Date",zoho.currentdate);
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- }
- //Solar Addendum
- if(!solar == "No Solar")
- {
- paper_map.put("Name","Solar Addendum");
- paper_map.put("Due_Date",zoho.currentdate);
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- }
- //Lead Based Paint Addendum
- if(year_built < 1978)
- {
- paper_map.put("Name","Lead Based Paint Addendum");
- paper_map.put("Due_Date",zoho.currentdate);
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- }
- //Claims History signed by buyer
- paper_map.put("Name","Claims History signed buyer");
- paper_map.put("Due_Date",contract_date.addDay(3));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Earnest Money Deposit Receipt
- paper_map.put("Name","Earnest Money Deposit Receipt");
- paper_map.put("Due_Date",contract_date.addDay(3));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //All Inspections
- paper_map.put("Name","All Inspections");
- paper_map.put("Due_Date",inspection_over.addDay(3));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //LSU
- paper_map.put("Name","Loan Status Update");
- paper_map.put("Due_Date",closing_date.subDay(7));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //MLS Detailed History
- paper_map.put("Name","MLS Detailed History (after closing)");
- paper_map.put("Due_Date",closing_date.addDay(1));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Preliminary Title Report
- paper_map.put("Name","Preliminary Title Report");
- paper_map.put("Due_Date",contract_date.addDay(10));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Buyer Pre-Qualification or Proof of Funds
- paper_map.put("Name","Buyer Pre-Qual or Proof of Funds");
- paper_map.put("Due_Date",contract_date.addDay(3));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Repair Receipts
- paper_map.put("Name","Repair Receipts");
- paper_map.put("Due_Date",closing_date.subDay(3));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //BINSR
- paper_map.put("Name","BINSR");
- paper_map.put("Due_Date",inspection_over);
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Settlement Statement Estimated
- paper_map.put("Name","Estimated Settlement Statement");
- paper_map.put("Due_Date",closing_date.subDay(3));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Settlement Statement Final
- paper_map.put("Name","Final Settlement Statement");
- paper_map.put("Due_Date",closing_date.addDay(1));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Recorded Deed
- paper_map.put("Name","Recorded Deed");
- paper_map.put("Due_Date",closing_date.addDay(1));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //SPDS Signed by Buyer
- paper_map.put("Name","SPDS Signed Buyer");
- paper_map.put("Due_Date",zoho.currentdate.addDay(1));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //Tax Record
- paper_map.put("Name","Tax Record");
- paper_map.put("Due_Date",zoho.currentdate.addDay(1));
- create_paperwork = zoho.crm.createRecord("Paperwork",paper_map,{"trigger":{"workflow"}});
- //
- //------------------------------------------------End-------------------------//
Advertisement
Add Comment
Please, Sign In to add comment