Automate User Invitations on Zoho Desk with API

Automate User Invitations on Zoho Desk with API

Automate User Invitations on Zoho Desk with API

Hello Team,

We are excited to announce that you can now automatically invite users to the Zoho Desk portal using the API!

### How It Works

For example, when a contact is created in Zoho Desk and you enable their portal access, you can utilize the API to send out the invitation seamlessly. 

### Custom Code

To help you get started, I am sharing some custom code that demonstrates this process. Please take a look, and I hope it proves helpful for your future development projects!

Sample Code---------------------
  1. orgid = "756495615";
  2. HelpCenterDetails1 = invokeurl
  3. [
  4. url: "https://desk.zoho.com/portal/api/helpCenters?orgId=756495615"
  5. type: GET
  6. connection:"zohodesk"
  7. ];
  8. portalid1 = "627886000000148013";
  9. lidatata = List();
  10. helpCenterIdmap = Map();
  11. helpCenterIdmap.put("helpCenterId", portalid1);
  12. lidatata.add(helpCenterIdmap);
  13. POrtalInviote = invokeurl
  14. [
  15. url: "https://desk.zoho.com/api/v1/contacts/627886000011703001/inviteAsEndUser"
  16. type: POST
  17. parameters: lidatata.toString()
  18. connection:"zohodesk"
  19. ];
  20. info POrtalInviote;
627886000011703001 = Contact ID.

Feel free to reach out if you have any questions or need further assistance.

Thanks & Regards
Piyush Goyal
Zoho Developer | Certified in CRM and Creator
+91-8619164837