Use an oft for several appointments


#1

Hi !

I want to generate an OFT once and use it several times to reserve a meeting room.

Once my OFT generated, I open it and I create my meeting. It works.
When I open my OFT a second time to create a new appointment, participants receive an update of the first appointment.
I would like it to be another appointment and not an update …

Do you have a solution for this problem?

Thanks !


#2

@pdecal,

I have observed your requirements and requirements shared by you and request you to please provide the sample source project used along OFT file. Please also provide the test account where by you want to share the appointment. If possible, please also share desired output that you want to achieve on your end too.


#3

// Appointment
Appointment myAppointment = new Appointment(“Room 1”, null, null, null, null);
myAppointment.setMethodType(AppointmentMethodType.Publish);
myAppointment.setDescriptionHtml(true);
myAppointment.setDescription("

");

// Resources
MailAddressCollection resources = new MailAddressCollection();
MailAddress room1 = new MailAddress("room1@test.com", “Room 1”);
resources.addMailAddress(room1);

// Message
MailMessage mail = new MailMessage();
mail.setBcc(resources);
mail.addAlternateView(myAppointment.requestApointment());

// Save
MsgSaveOptions options = new MsgSaveOptions(MailMessageSaveType.getOutlookMessageFormatUnicode());
options.setSaveAsTemplate(true);
MapiMessage msgMapi = MapiMessage.fromMailMessage(mail);
msgMapi.setProperty(KnownPropertyList.RESPONSE_REQUESTED, true);
msgMapi.setProperty(KnownPropertyList.BUSY_STATUS, 2);
msgMapi.save(“c:/room1.oft”, options);

I open the file for the first time to create a meeting.
The resource can accept the request. It’s OK.
oft 1.png (12.4 KB)

I open the file a second time to create another meeting.
The resource receives the request but it appears as an update of the first.
oft 2.png (16.5 KB)

I wish that the OFT could be used for several meetings.

Thanks !


#4

@pdecal,

I have observed the sample code shared by you and have observed that you are using null for start and end date for appointment. So, when you send the same appointment again with these null values it is considered as update of first. I suggest you to please try using appointments with some valid dates and then try on your end.


#5

@mudassir.fayyaz,

The dates are empty in the OFT because they are filled in when the appointment is created.
The goal is that the OFT is generic and can be used several times.
Even by filling in the dates when the OFT is created, if I open it a second time, the first appointment is updated.


#6

@pdecal,

I have observed your comments. An issue with ID EMAILNET-39540 has been created in our issue tacking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


#7

Hello @mudassir.fayyaz,
The issue is resolved but I had no return.
Is it corrected?
Thanks !


#8

@pdecal,

I like to share that the issue has been marked as resolved in upcoming Aspose.Email for .NET 19.8. We will share the good news with you as soon as the product will be shared online.


#9

OK, thanks.
An idea of ​​the availability date?


#10

@pdecal,

It is likely to be available by next week.


#11

The issues you have found earlier (filed as EMAILNET-39540) have been fixed in this update.


#12

Thank you but I use the Java version.


#13

@pdecal,

The respective Java based API has also been released.