Scan Outlook Inbox and extract text file attachment
rakeshranjan
Member Posts: 18
Hi All
Does anybody helpme out in Scan inbox attached with text file and save it to a diffrent folder or process it directly .
Regards
Rakesh Ranjan
Does anybody helpme out in Scan inbox attached with text file and save it to a diffrent folder or process it directly .
Regards
Rakesh Ranjan
0
Answers
-
This is complex to do and I don't think someone will just post this code as an answer to this question.
What have you tried yourself? Is your solution 95% finished or are you hoping for a free-of-charge solution.
Personaly I would not interface with outlook but directly with exchange via the NAS.0 -
I Have Done some coding on it, it scan and save the attached file to the specific folder , But having problem it not filter the sender and attached file i think it is completed by 80 %.0
-
I see.
It wil help if you post the code.
Do you use a dedicated mailbox for this solution? That usually helps so you can just process al emails that enter the inbox.0 -
This function copies attachments in mails to a given directory:
fctCopyAttachments(ptxtID : Text[250];ptxtDirectory : Text[250];VAR pintNumberOfMails : Integer) //fctCopyAttachments olMapiFolder := olNameSpace.GetFolderFromID(ptxtID); ltxtFindCriteria := '[Subject] = ''All mails containing this text'''; olItems := olMapiFolder.Items.Restrict(ltxtFindCriteria); //Save attachments to directory i := 1; lintEndOfLoop := olItems.Count; WHILE i <= lintEndOfLoop DO BEGIN olMItem := olItems.Item(i); olAttachments := olMItem.Attachments; IF olAttachments.Count = 1 THEN BEGIN olAttachment := olAttachments.Item(1); olAttachment.SaveAsFile(ptxtDirectory + '\' + olAttachment.FileName); END; i := i + 1; END; pintNumberOfMails := lintEndOfLoop; CLEAR(olItems); CLEAR(olMItem); CLEAR(olAttachments); CLEAR(olMapiFolder);
This function moves mails from one Outlook folder to another OL folder:fctMove2Folder(ptxtID : Text[250];ptxtID2 : Text[250]) //fctMove2Folder olMapiFolder := olNameSpace.GetFolderFromID(ptxtID); olMapiFolder2 := olNameSpace.GetFolderFromID(ptxtID2); ltxtFindCriteria := '[Subject] = ''All mails containing this text'''; olItems := olMapiFolder.Items.Restrict(ltxtFindCriteria); FOR i := 1 TO olItems.Count DO BEGIN olMItem := olItems.Item(i); olMItem.Move(olMapiFolder2); CLEAR(olMItem); i := 999999; END; CLEAR(olItems); CLEAR(olMItem); CLEAR(olMapiFolder); CLEAR(olMapiFolder2);
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
[Topic moved from 'NAV Three Tier' forum to 'NAV/Navision Classic Client' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks a lot , I got what i want... i also thanks a lot to mibuso team, who has developed such a gr8 forum for dynamics user.
Regards
Rakesh Ranjan0 -
The idea of a forum is to learn from each other, not just consume. I am still curious where your problem was and how your code looks.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

