Problem in MAPI Items

Naidu.GNaidu.G Member Posts: 31
Hi Experts,

i am using the following automations.

Name DataType Subtype Length
autOLNamespace Automation 'Microsoft Outlook 12.0 Object Library'.NameSpace
autOLItems Automation 'Microsoft Outlook 12.0 Object Library'.Items
autOLMapiFolder Automation 'Microsoft Outlook 12.0 Object Library'.MAPIFolder
autOLMItem Automation 'Microsoft Outlook 12.0 Object Library'.MailItem



CLEAR(autOLAppl);
CREATE(autOLAppl);
autOLNamespace := autOLAppl.GetNamespace('MAPI');
autOLNamespace.Logon('','',TRUE,FALSE);
autOLMapiFolder := autOLNamespace.GetDefaultFolder(6);
autOLItems := autOLMapiFolder.Items;
i := 1;
intEndOfLoop := autOLItems.Count;

WHILE i <= intEndOfLoop DO
BEGIN
autOLMItem := autOLItems.Item(i);
ToAddress := autOLMItem."To";
i := i + 1;
END;

Here i want to store the " ToAddress " text into one filed in another table but some mails (autOLMItem."To") To address length exceeds the size(1024) of the string buffer how can i get the To address String exceeds the size(1024) of the stirng buffer.

Is it possible to split the autOLMItem."To" address into two strings.



Thanks & Regards,
Naidu. ](*,)

Comments

  • ara3nara3n Member Posts: 9,256
    unfortunately no.

    You have to write a automation outside of nav to do this.

    There is a way to do this in NAV 2009, but only on RT client.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.