Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

NAV OLSync : Email Body Empty

Posted on by Microsoft Employee

Hi!
I have been trying to set up a bidirectional Outlook Integration using Default Web Services. So Far All the fields are being synced, except the body of the email, from Outlook to NAV.

I am looking to perform some actions on the body but the body string always comes empty.

68m5n5vixfwv.png

Codeunit 5305 - Outlook Synch. Process Line
This particular piece of code returns a blank string for every email.

Any pointers towards this would be very helpful.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: NAV OLSync : Email Body Empty

    Yes there is value in OProperty Variable. 

    The value gets updated with all the fields that i have mapped. 

    When the value of OProperty is Body then the OPropertyValue is Blank;

    I tried to get all the different kind of Bodies from Outlook Mail Item, and got something finally, let it be Junk Values

    2018_2D00_02_2D00_13-15_5F00_40_5F00_56_2D00_Edit-_2D00_-Email-Item.png

    Body is of Blob Type and is Empty, The RTFBody and the HTML Body also doesn't make sense.

    The Body Format Suggests that it is HTML Body, or Text  

    Any pointer on How I can Parse the Value of HTML Body or RTF Body?

    Regards

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: NAV OLSync : Email Body Empty

    Maybe you've to check the returned XML, is the format is correct.

    Check the line:

    IF TagName = 'Field' THEN BEGIN

         OProperty := XMLTextReader.GetCurrentNodeAttribute(ChildIterator,'Name');

    Do you have these fields/properties?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,228 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans