Finish the API Call and Test the Function (Delete those Tasks!)

We use the API documentation to figure out how we should format our url within the invokeurl. Look at our code below and test out your function!

relatedTasks = zoho.crm.getRelatedRecords("Tasks","Deals",deal_ID);
info relatedTasks;
info relatedTasks.size();
for each  task in relatedTasks
 response = invokeurl
  url :"" + task.get("id")
  type :DELETE
 info response;
Back to Lesson