ItemSetAttribute()

Sets an attribute for the item specified by MessageID.

Token ID

AFTKN_ITEM_SET_ATTRIBUTE or 685

Syntax

VOID ItemSetAttribute(ANSISTRING MessageID; 
                       ENUM ModifyAttribute; 
                       ENUM AttributeValue)

Parameters

MessageID As ANSISTRING

Unique item identifier, returned by ItemMessageIDFromView().

ModifyAttribute As ENUM

Apply attributes to specified item conditions The conditions are: creating personal item, creating group item, existing personal item, and existing group item:

104

Accepted

138

Completed

200

Private

206

Read

AttributeValue As ENUM

Set Attribute:

  • 0 No
  • 1 Yes

Remarks

You can only set attributes under certain conditions. For example, you can accept or decline scheduled items (appointments, tasks and notes), but not mail or phone items. When using this command, correctly match attributes and conditions.