Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Task: CalendarEventListener_v2
- A1: Multiple Variables Set [
- Names: %from_account_regex=lnam.*
- %to_account=Google:[email protected]
- %delete_old_event=1
- Values Splitter: =
- Structure Output (JSON, etc): On ]
- <Loop events>
- A2: For [
- Variable: %ce_event
- Items: %cc_event_ids_added()
- Structure Output (JSON, etc): On ]
- A3: Get Calendar Events [
- Event ID: %ce_event ]
- A4: If [ %ce_account ~R %from_account_regex ]
- A5: Variable Set [
- Name: %event_to_delete
- To: %ce_event_id
- Structure Output (JSON, etc): On ]
- A6: Get Calendar Reminders [
- Event ID: %ce_event ]
- A7: Get Calendar Attendees [
- Event ID: %ce_event ]
- A8: Variable Clear [
- Name: %ce_event_id ]
- <Add new event>
- A9: Edit Calendar Event [
- Action: Add
- Calendar: %to_account
- Title: %ce_title
- Description: %ce_description
- All Day: %ce_all_day
- Start Time: %ce_start_time
- End Time: %ce_end_time
- Location: %ce_location
- Availability: %ce_available
- Colour: %ce_color ]
- A10: If [ %ce_event_id Set ]
- <Start recursing through attendees>
- A11: For [
- Variable: %index
- Items: %ce_attendee_id()
- Structure Output (JSON, etc): On ]
- A12: Edit Calendar Attendee [
- Action: Add
- Event ID: %ce_event_id
- Attendee ID: %ce_attendee_id(%attendee_id)
- Name: %ce_attendee_name(%index)
- Email: %ce_attendee_email(%index)
- Status: %ce_attendee_status(%index)
- Relationship: %ce_attendee_relationship(%index)
- Type: %ce_attendee_type(%index) ]
- <End recursing through attendees>
- A13: End For
- <Start recursing through reminders>
- A14: For [
- Variable: %index
- Items: 1:%ce_reminder_id(#)
- Structure Output (JSON, etc): On ]
- A15: Edit Calendar Reminder [
- Action: Add
- Event ID: %ce_event_id
- Reminder ID: %reminder_ids(%index)
- Minutes Prior: %ce_reminder_minutes_prior(%index)
- Method: %ce_reminder_method(%index) ]
- <End recursing through reminders>
- A16: End For
- <Deleting old one>
- A17: Edit Calendar Event [
- Action: Delete
- Event ID: %event_to_delete ]
- If [ %event_to_delete Set & %delete_old_event = 1 ]
- A18: End If
- A19: End If
- A20: End For
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement