i am creating a calendar entry from a custom recor...
# suitescript
p
i am creating a calendar entry from a custom record and am able to create a single entry but creating a recurring one is an issue. I am setting the value of _frequency to WEEK as c`alendarEvent.setValue('_frequency', "WEEK");` but when the script goes to the create the record I get this error: {"type":"error.SuiteScriptError","name":"UNEXPECTED_ERROR","message":"ReferenceError: \"showFreqOptions\" is not defined. but nowhere can i find the field showFreqOptions and what it should be set to. Any ideas?
e
That error (likely) has nothing to do with the field you're trying to set or the value you're providing. It's telling you that your code is referencing a token (either a variable or a function) called
showFreqOptions
, but no such token exists in your code. You need to identify where the reference is and assess why it's
undefined
b
The Event supported record entry lists restrictions associated with the calendar event
p
👍 totally missed that important fact that recurring events is not supported in suite script.