link deals with vendors

link deals with vendors

i linked a field in deals with vendors through list, i need a field in deals to lookup that chosen and get the result with email from vendor.
i wrote the hereunder script but error Value is empty and 'getJSON' function cannot be applied Line Number:4, can anyone help.

deal_record = zoho.crm.getRecordById("Deals",deal_id);
vendor_id = deal_record.get("Developer_2").getJSON("id");
response = invokeurl
[
    url :"https://www.zohoapis.com/crm/v2/vendors/" + vendor_id
    type :GET
    connection:"crm_con"
];
vendor_data = response.get("vendors");
info vendor_data;
vendor_email = vendor_data.get("email");
update_map = {"DEmail":vendor_email};
update_resp = zoho.crm.updateRecord("Deals",deal_id,update_map);
info update_resp;

      • Sticky Posts

      • Connect with Zoho users from your industry, virtually!

        A couple of years ago, we started setting up industry-wise channels for users with similar businesses to chat and discuss Zoho contextually. We started with Real Estate and E-commerce sectors, creating a chatroom and hosting regular meetups on niche areas
      • Feature update: Advanced security settings

        We've previously written about how using security policies could be beneficial for admins. To enable you to better protect your organization, we've come up with a few additional settings for security policies in Zoho One that can be used to regulate your users' web sessions. What are web sessions? A web session refers to the period of time you stay signed in to your Zoho One account. You create a new web session every time you sign in to Zoho One (or any of its included apps), and this session exists