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.

Beginner Asked on October 28, 2020 in SuiteCloud.
Add Comment
2 Answer(s)

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

Keep in mind that the documentation on this is contradictory. The SuiteScript Event, specifically the introductory lines about limitations states its not supported. The SuiteTalk Soap Event says its supported in a note.

You can try setting a Basic Recurrence Pattern by setting 3 or 4 required fields.

Intermediate Answered on October 28, 2020.

After looking at the Basic Recurrence Pattern documentation, I tried setting a value for the Period field. It works now, so I guess this field must be required. Thanks for the advice!

on October 28, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor