venkat reddy

venkat reddy

  • NA
  • 18
  • 600

DISABLE RSVP actions in the Microsoft teasm

Oct 9 2020 12:04 AM
Hi All,
 
How to turn of MicroSoft Teams RSVP actions(if we make RSVP=FALSE in the code).
 
I am using the below code
  1. StringBuilder str = new StringBuilder();  
  2. str.AppendLine("BEGIN:VCALENDAR");  
  3. str.AppendLine("PRODID:-//Schedule a Meeting");  
  4. str.AppendLine("VERSION:2.0");  
  5. str.AppendLine("METHOD:REQUEST");  
  6. str.AppendLine("BEGIN:VEVENT");  
  7. str.AppendLine(string.Format("DTSTART:{0:yyyyMMddTHHmmssZ}", DateTime.UtcNow));  
  8. str.AppendLine(string.Format("DTSTAMP:{0:yyyyMMddTHHmmssZ}", DateTime.UtcNow));  
  9. str.AppendLine(string.Format("DTEND:{0:yyyyMMddTHHmmssZ}", DateTime.UtcNow.AddMinutes(15)));  
  10. //str.AppendLine("LOCATION: " + this.Location);  
  11. str.AppendLine(string.Format("UID:{0}", Guid.NewGuid()));  
  12. str.AppendLine(string.Format("DESCRIPTION:{0}", msg.Body));  
  13. str.AppendLine(string.Format("X-ALT-DESC;FMTTYPE=text/html:{0}", msg.Body));  
  14. str.AppendLine(string.Format("SUMMARY:{0}", msg.Subject));  
  15. str.AppendLine(string.Format("ORGANIZER:MAILTO:{0}", msg.From.Address));  
  16. str.AppendLine(string.Format("ATTENDEE;CN=\"{0}\";RSVP=FALSE:mailto:{1}", msg.To[0].DisplayName, msg.To[0].Address));  
  17. str.AppendLine("X-MICROSOFT-DISALLOW-COUNTER:TRUE");  
  18. str.AppendLine("BEGIN:VALARM");  
  19. str.AppendLine("X-MICROSOFT-CDO-BUSYSTATUS:BUSY");  
  20. str.AppendLine("TRIGGER:-PT15M");  
  21. str.AppendLine("ACTION:DISPLAY");  
  22. str.AppendLine("DESCRIPTION:Reminder");  
  23. str.AppendLine("END:VALARM");  
  24. str.AppendLine("END:VEVENT");  
  25. str.AppendLine("END:VCALENDAR");