I have a script that creates an event from a custo...
# suitescript
p
I have a script that creates an event from a custom record. These events all are multiple day events with a start date and end date. When I try and save the event i get a popup that says: Invalid Date Range. The end day must be the same as the start day. I tried to make the end day equal the start day but still get the same error. What am I missing?
Copy code
var frequency = "DAY";
    var redirectUrl = url.resolveTaskLink({
        id: 'EDIT_EVENT',
        isEditMode: true,
        params: {
            'record.accesslevel': 'BUSY',
            'record._frequency': frequency,
            'record.organizer': empId,
            'resource.resource': 4,
            'record.custevent29' : empId,
            'record.custevent30' : cover,
            'record.noenddate' : 'F',
            'record.startdate' : fixDate,
            'record.enddate' : fixDate,
            'record.endbydate' : fixEndDate,
            'record.seriesstartdate' : fixDate
        }