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
erictgrubaugh
08/09/2024, 6:02 PM
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
battk
08/09/2024, 6:09 PM
The Event supported record entry lists restrictions associated with the calendar event
p
pen one
08/09/2024, 7:04 PM
👍 totally missed that important fact that recurring events is not supported in suite script.