MAPI setProps(): "PT_CLSID" property fails with (-2147221005, 'Invalid class string', None, None)

Rono, Jacob 21 Reputation points
2020-10-19T13:53:45.287+00:00

We are trying to set "PT_CLSID" property of a mail using MAPI setProps() API, where we are sending the property in below format : 0x81460048 : '{\xa4\xa6\xcd|\x86\xcaG\xbd9\xb5\x01&e-\xb3'

API is throwing an exception (-2147221005, 'Invalid class string', None, None).

Below is the query:

  • Please help us understand the use and importance of "PT_CLSID".
  • Is it still currently in use or deprecated ?
  • Is there a particular format of the value of the property in which setProps() needs to be called.

Thanks in Advance.

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,813 questions
Office Management
Office Management
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Management: The act or process of organizing, handling, directing or controlling something.
1,972 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,281 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lucas Liu-MSFT 6,161 Reputation points
    2020-10-20T06:08:58.673+00:00

    Hi @Rono, Jacob ,
    Thank you for visiting our forum. Your question is how to use the "PT_CLSID" property and the specific format of the property, It's about Outlook API. Here we are mainly concerned with general issues about the Exchange server, and limited help for Outlook API settings. In order to better solve your problem, it is recommended that you post your question to the Outlook development forum for help.

    The reason we recommend reasonable posting is that you will get a more professional solution, and other partners who regularly read the forum can share their knowledge or learn from your interaction with us. Thank you for your understanding and hope that your problem can be resolved as soon as possible.

    ----------

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments