Creating a Task with Custom Fields via Deluge Function
Hi all,
I am using invokeurl.
I have some custom fields in my boards (just text fields for now) and would like to fill the fields when the task is being created, but I can't figure out how. All of the forums I've found are using json arrays, which have unsupported characters for a webhook. Is there a way to do this in a custom function like mine below? I have a custom field called "Participant ID" that I wold like to add. This is my working function:
- void hl_connect_create_task(string inputBoardId, string inputTaskTitle, string inputsectionId, date inputstartTime)
- {
- // Create a map that holds the values of the task info that needs to be created
- headerdata = Map();
- headerdata.put("Authorization","Zoho-oauthtoken d92d401c803988c5cb849d0b4215f52");
- scopeID = "scopeID=<myscopeid>";
- boardId = "&boardId=" + inputBoardId;
- titlespaces = inputTaskTitle.replaceAll(" ","%20");
- title = "&title=" + titlespaces;
- sectionId = "§ionId=" + inputsectionId;
- duedate = "&eyear=" + inputstartTime.getYear() + "&emonth=" + inputstartTime.getMonth() + "&edate=" + inputstartTime.getDay();
- priority = "&priority=High";
- position = "&position=7";
- urltogether = "https://connect.zoho.com/pulse/api/addTask?" + scopeID + boardId + title + priority + sectionId + duedate + position;
- res = invokeurl
- [
- url :urltogether
- type :POST
- headers:headerdata
- connection:"<myconnectionname>"
- ];
- info res;
- }
Thank you for your help!
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.