Request response not active on my appointment


#1

Hello,
With Aspose.Email for Java 19.2, when I create a new appointment, the option “Request response” is not active.
Attendees can not answer …
How to enable this option when creating the appointment by Java code?
Thanks !!!


#2

@pdecal,

I have observed your requirements and suggest you to please visit this documentation link for your kind reference. If you still have any inquiry then please provide the working sample code along with details of requirements in the form of required output with us.


#3

@mudassir.fayyaz

// Les attendus : la salle de réunion
MailAddressCollection attendus = new MailAddressCollection();
MailAddress salle = new MailAddress(salleDeReunion.getMail(), salleDeReunion.getTitle());
attendus.addMailAddress(salle);
	
// Construction du RDV
Appointment monRdv = new Appointment(salleDeReunion.getTitle(), null, null, null, attendus);	
monRdv.setMethodType(AppointmentMethodType.Publish);

// Construction du message
AlternateView view = monRdv.requestApointment();
MailMessage mail = new MailMessage();
mail.addAlternateView(view);

// Sauvegarde OFT
String oftFileName = "test.oft";
MsgSaveOptions options = new MsgSaveOptions(MailMessageSaveType.getOutlookMessageFormatUnicode());
options.setSaveAsTemplate(true);
mail.save(oftFileName, options); 

The appointment :
image.png (49.7 KB)

The request :
slight_smile:image.png (15.2 KB)

I want a response from the attendees…

Thanks !!!


#4

@pdecal,

I have worked with the sample example shared by you and output OFT file does not seem to have option for Request Response set. An issue with ID EMAILJAVA-34551 has been created in our issue tracking system to further investigate the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


#5

Hello @mudassir.fayyaz,
do you have a delivery date for this issue please ?
It is becoming urgent…
Thanks !


#6

@pdecal,

We have internally investigated the issue in detail. We need to use KnownPropertyList.ResponseRequested property:

MapiMessage msg = MapiMessage.fromMailMessage(mail);
// Save the appointment as draft.
msg.setProperty(KnownPropertyList.ResponseRequested, true);
String oftFil
eName2 = "C:\\Email\\test2.oft";
msg.save(oftFileName2);

#7

It works !!
Thanks !


#8

@pdecal,

It’s good to know things are fine on your end. Please feel free to share if any further help is required from our side.