Adding a task in Connect using custom app
Hello, I am creating a custom app which, upon form submission, posts a message in a channel (working) and creates a task in a board (not working yet). I have created the following custom function to be run upon successful form submission:
- headerMap = Map();
- headerMap.put("Authorization","Zoho-oauthtoken d92d401c803988c5cb849d0b4215f52");
- parameterMap = Map();
- parameterMap.put("scopeID","6111000000002008");
- parameterMap.put("boardId","6111000000018075");
- parameterMap.put("title",input.Student_Name);
- parameterMap.put("desc","Year: " + input.Year_field1 + "\nStart Date: " + input.First_Session + "\nTutor: " + input.Tutor + "\nDuration: " + input.Duration + "\nFrequency: " + input.Frequency + "\nLocation: " + input.Location);
- parameterMap.put("sectionId","6111000000033433");
- parameterMap.put("priority","High");
- parameterMap.put("position","1");
- parameterMap.put("userIds","7003956628");
- parameterMap.put("checkList","Add resources and services fee\nCheck lesson type\nSend contract\nSet up invoicing\nSend contract and invoice message\nConfirm contract signed, card details on file, and invoice paid");
- createTask = invokeurl
- [
- url :"https://connect.zoho.com/pulse/api/addTask"
- type :POST
- parameters:parameterMap
- headers:headerMap
- connection:"taskcreation"
- ];
- info createTask;
Nothing seems to be happening and I'm not sure why as the info function doesn't seem to do anything so I can't see what the error might be. I have tried taking out the optional parameters and just keeping it simple but still no luck in getting a task created.
I am also not sure how to format the parameter for checkList, for now I've put a "\n" between each item, but there were no examples I could find on how to separate each item for the checklist.
Any help would be greatly appreciated. Thanks!
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 WorkDrive 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.