The contact follow up is not setting properly


#1

Hi team,
I am working on java and I am using 18.6 aspose jar.
I have to set the property of follow up in contact and I am setting this as follow:

F> ollowUpOptions options = null;

if(ReminderTime == null)
{
options = new FollowUpOptions(“Follow Up”, m_FlagStartBy, m_FlagDueBy);
}
else
{
options = new FollowUpOptions(“Follow Up”, m_FlagStartBy,m_FlagDueBy,ReminderTime);
}

  		FollowUpManager.setOptions(mapiMessageObject, options);

  		mapiContactObject = (MapiContact) mapiMessageObject.toMapiMessageItem();
  		options 		 = null;

But the followup is not setted properlyFollowup not setted properly.png (15.1 KB)


#2

@Rajmohammad

Thank you for contacting Aspose Support.

According to our understanding, the image that you provided shows the output generated by Aspose API on the left and the expected output on the right. We were unable to reproduce the issue that you reported. We created a test contact in outlook and saved it as MSG. After that, we set the follow up for that contact using Aspose.Email API as shown below.

MapiMessage mapiMsg = MapiMessage.fromFile("contact.msg");
FollowUpOptions options = new FollowUpOptions("Follow Up", startDate, dueDate);
FollowUpManager.setOptions(mapiMsg, options);
MapiContact mapiContact = (MapiContact) mapiMsg.toMapiMessageItem();
mapiContact.save("contactUpdated.msg", ContactSaveFormat.Msg);

Proper follow up was set as shown in the attached image. Followup.jpg (11.7 KB)

In case our understanding of your requirements is not correct, please share a bit more detail and sample file so that we can assist you further.