Skip to main content

Move event

Moves an event to another calendar

Function MoveEvent(Val Token, Val SourceCalendar, Val TargetCalendar, Val Event) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
SourceCalendar--fromStringID of the source calendar
TargetCalendar--toStringID of the target calendar
Event--eventStringID of the source calendar event

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token = "ya29.a0AeXRPp7yIYtWir0wC7l09O27fzCyaFxBylix9NPJ_QNA1wB4QVUrG4U7Fr2QSwtfnWG7ZYf6VNrnekZ-jXtryEWp_DVIDnn_y8ABtqeWr...";
Event = "2ckkn8i07utljhkpdbv254t29g";

SourceCalendar = "96e6863bfd3ed31672dffa73c8c3dceca1da60a058a3d0ecd92969eb6f32cb7c@group.calendar.google.com";
TargetCalendar = "bayselonarrend@gmail.com";

Result = OPI_GoogleCalendar.MoveEvent(Token, SourceCalendar, TargetCalendar, Event);
    oint gcalendar MoveEvent \
--token "***" \
--from "ce79e9b0c53ecffd49dc84b334cc0a1589e278f90329252e64de345cc916ccd2@group.calendar.google.com" \
--to "bayselonarrend@gmail.com" \
--event "ina8ajfp1cmg9c5a1mfppfens4"
Result
{
"kind": "calendar#event",
"etag": "\"3456908680754000\"",
"id": "7rfbn0fb8nai4i7v4l435tgl1c",
"status": "cancelled",
"htmlLink": "https://www.google.com/calendar/event?eid=N3JmYm4wZmI4bmFpNGk3djRsNDM1dGdsMWMgNjA2MTNkNTNjNDY3MGFiZGNlZWMzZTc2OTNjYTQ3NWIwZTg4ZGMxNjc4ZGI3MjEwNTIxMzU2YjQ5NDBhNjE0OEBn",
"created": "2024-10-09T06:12:19Z",
"updated": "2024-10-09T06:12:20.377Z",
"summary": "New event",
"description": "New event description",
"location": "InOffice",
"creator": {
"email": "bayselonarrend@gmail.com"
},
"organizer": {
"email": "bayselonarrend@gmail.com"
},
"start": {
"dateTime": "2024-10-09T12:12:19+03:00",
"timeZone": "Europe/Moscow"
},
"end": {
"dateTime": "2024-10-09T13:12:19+03:00",
"timeZone": "Europe/Moscow"
},
"iCalUID": "7rfbn0fb8nai4i7v4l435tgl1c@google.com",
"sequence": 0,
"reminders": {
"useDefault": true
},
"attachments": [
{
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
"title": "Image1",
"iconLink": ""
},
{
"fileUrl": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg",
"title": "Image2",
"iconLink": ""
}
],
"eventType": "default"
}