I am attempting to transfer information from google sheets to google calendar but the script I put in keeps saying:
"Exception: The parameters (String,String) don't match the method signature for CalendarApp.Calendar.createEvent. shopSchedule @ Code.gs:31
I have very little experience with coding, and I am following the coding of another person, expect with my own variables, but I'm not sure what went wrong.
Here is overall script:
function shopSchedule() {
/**
Task 1) Open The Event Calendar.
*/
var spreadsheet = SpreadsheetApp.getActiveSheet();
var calendarId = spreadsheet.getRange("A52").getValue();
var eventCal = CalendarApp.getCalendarById(calendarId);
/**
Task 2) Pull the schedule information into the code, in a form that the code can understand.
*/
var signups = spreadsheet.getRange("A1:E2").getValues();
/**
[
[8/20/2021, Completion Date],
[8,27,2021, Shipping Date]
]
*/
/**
Task 3) Do the work!
*/
for (x=0; x<signups.length; x++) {
var shift = signups[x];
var jobName = shift[0];
var jobDate = shift[1];
eventCal.createEvent(jobName, jobDate);
}
}