from_map = Map(); from_map.put("user_name", owner_name); from_map.put("email", owner_email); //// to_list = List(); for each person in email_list { to_map = Map(); to_map.put("email", person); to_list.add(to_map); } //// CRM template id ///\ template = Map(); template.put("id", "4202165000088355038"); /// param = Map(); param.put("from", from_map); param.put("to", to_list); param.put("template", template); param_list = List(); param_list.add(param); // data = Map(); data.put("data", param_list); info data; sent_mail = invokeUrl [ url: "https://www.zohoapis.com/crm/v6/Deals/"+deal_id+"/actions/send_mail" type: POST parameters: data.toString() connection: "zoauth" ]; info sent_mail;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter