3.1.4.2.5 Creating a Reply Template

A reply template is an FAI message that is used when creating a reply message. Before creating a rule (2) that has an "OP_REPLY" or "OP_OOF_REPLY" value for the ActionType field, the client MUST first create a reply template in the folder for which the rule (2) is to be created.

The following steps specify how to create a reply template:

  1. Create a new FAI message in the folder for which the rule (2) is to be created.

  2. Set the value of the PidTagMessageClass property ([MS-OXCMSG] section 2.2.1.3) to a string that has the prefix "IPM.Note.rules.ReplyTemplate." (for "OP_REPLY" values) or "IPM.Note.rules.OOFTemplate." (for "OP_OOF_REPLY" values).

  3. Set the value of the PidTagReplyTemplateId property (section 2.2.9.2) with a newly generated GUID. This value MUST be unique in the folder—no two reply templates can share the same GUID.

  4. Set the value of PidTagSubject property ([MS-OXCMSG] section 2.2.1.46), the text of the message, and other message properties as desired.

  5. Save the newly created message.

  6. Get the value of the Message ID structure, as specified in [MS-OXCDATA] section 2.2.1.2, and Folder ID structure, as specified in [MS-OXCDATA] section 2.2.1.1, from the saved message.

The value of the PidTagReplyTemplateId property generated by the client at step 3 is the value used by the ReplyTemplateGUID field of the OP_REPLY/OP_OOF_REPLY ActionData structure specified in section 2.2.5.1.2.2.

For more details about creating and working with FAI messages, see [MS-OXCFOLD] and [MS-OXCMSG].