Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which parameter is being used to update existing event in calendar? #222

Open
Jaysojitra13 opened this issue Sep 1, 2022 · 4 comments
Open

Comments

@Jaysojitra13
Copy link

Thank you so much for introducing this module. It is really helpful.

I have the below scenario, please tell me how to handle that:

  • When the user booked an appointment at that time I'm creating one ics file with the below parameters. and we don't want end-user to confirm or reject the event. It will be 'accepted' by default. When a user clicks on "add to calendar" in Gmail then it will be created in the calendar.

{ start: [2022, 9, 1, 15, 0], // service time duration: { hours: 0, minutes: 30 }, // time duration title: Appointment created for service with cutter, // Sevice name description: 'calenderObj.description', // phone number location: address, // store address status: 'CONFIRMED', organizer: { name: 'Admin', email: process.env.SENDER_ADDRESS }, attendees: [ { name: jay, email: [email protected], partstat: 'ACCEPTED', role: 'REQ-PARTICIPANT' } ], uid: "123" }

  • Now, when the service gets updated/edited to another time then we need to send another email with the latest ics file will be triggered. And when the user clicks on "Add to Calendar" from Gmail then the new event is created in the calendar.

NOTE:: In both files, "uid" is the same.

Expected Result: the previous event should get updated.

Thank you in advance.

@Jaysojitra13
Copy link
Author

@adamgibbons I have one more question :

  • I add a description key in the event object and it's previewed in google calendar on the web. But in mobile application description is not previewed. Every time it is empty.

Can you please help me with this?

@getarun
Copy link

getarun commented Sep 13, 2022

Check that you increment the sequence. See example on package first page.

sequence | For sending an update for an event (with the same uid), defines the revision sequence number. [1]
[1]: https://www.npmjs.com/package/ics

@Jaysojitra13
Copy link
Author

@getarun Thank you for the answer. I have also tried this by adding sequence parameters 0 (for the first time) and 1 (the second time). But it didn't work

@cfarias-brunoFritsch
Copy link

Same problem here! Anyone could find a solution? The creation, update and cancelation works fine in Outlook, but Gmail keeps creating events when i try to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants