patrickjust3k

Creating Records from a sheet

Oct 11th, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. bool CREATE_CRM_RECORD(string first_name, string last_name)
  2. {
  3. if(!first_name.isEmpty() && !last_name.isEmpty())
  4. {
  5. map = Map();
  6. map.put("Owner","754074333");
  7. map.put("First_Name",first_name);
  8. map.put("Last_Name",last_name);
  9. map.put("Contact_Type","Investor");
  10. create_record = zoho.crm.createRecord("Contacts",map);
  11. info create_record;
  12. return true;
  13. }
  14. else
  15. {
  16. return false;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment