Create CounterParty Zoho Contract Sample Code

Create CounterParty Zoho Contract Sample Code

Hello Sample Code Create a CounterParty

  1. userlist = List();
  2. usermap = Map();
  3. usermap.put("displayName", "Piyush Goyal");
  4. usermap.put("emailId", "piyushgoyal@yopmail.com");
  5. usermap.put("jobTitle","test");
  6. usermap.put("phoneNumber","8955484428");
  7. userlist.add(usermap);

  8. mp = Map();
  9. mp.put("name", "Piyush Goyal Test API 2");
  10. mp.put("city", "Alwar");
  11. mp.put("country", "IN");
  12. mp.put("state", "RJ");
  13. mp.put("buildingNumber","");
  14. mp.put("address", "Bhartpur");
  15. mp.put("zipCode", "321606");
  16. mp.put("website", "");
  17. mp.put("counterPartyType", "customer");
  18. mp.put("users",userlist);
  19. CounterPartyDataCreate = invokeurl
  20. [
  21. url: "https://contracts.zoho.com/api/v1/counterparties"
  22. type: POST
  23. parameters: mp.toString()
  24. connection: "zohocontract"
  25. ];
  26. info CounterPartyDataCreate ;

if you have any Queries Please post the comment we are here for the Strong Bond on Zoho Community and help for Zoho Development.

Thanks & Regards
Piyush Goyal
Zoho Developer || 3+ years Experience
+91-8619164837