RE: How to Update Event Frequency with SuiteScript

Hi, does anyone know how to update the Calendar Event record frequency field with SuiteScript?

This is the field I’m trying to update:

How to Update Event Frequency with SuiteScript

Here’s the code snippet from the UE script running afterSubmit:

How to Update Event Frequency with SuiteScript

Here is the error I keep getting whenever I change it to a value other than ‘NONE’ (Single Event):

How to Update Event Frequency with SuiteScript

I can change it to Single Event, but I can’t set it to Daily Event, which is what I need.

mmascitto Beginner Asked on October 28, 2020 in SuiteCloud.
Add Comment
2 Answers

Where is that screenshot from?  user event scripts are not scheduled, they run when a record is being created, viewed, edited, etc

 

 

Rookie Answered on October 28, 2020.

Right. It’s a User Event script running on the job record afterSubmit. It’s not scheduled.

on October 28, 2020.

I see, what value does eventFrequency hold?

should be “DAY”

 

on October 28, 2020.

I would also use:

type: record.Type.CALENDAR_EVENT

when loading the record

on October 28, 2020.

That’s what I’m setting it to. I’ve confirmed in the logs the variable is ‘DAY’ before I set it.

RE: How to Update Event Frequency with SuiteScript

on October 28, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.