OLENotes in Directory - Back Track all tables they are from.

Posted on 2011-05-12
Medium Priority
Last Modified: 2013-12-11
I have a directory on the network that contains all the OLENotes (attachments) from Dynamics.  After extensive research, i have only identified only a few tables that contains the NOTEINDX value i need that ties back to the SY03900 table.  The tables i have identified are: RM00101. SOP30200, IV00101 and POP30300.  

Using the convert binary(binary(),Cast(dbo...)) function, i can identify the file names that are stored on the network by using the NOTEINDX value from the SY03900 table.  I currently have over 20,000 files in the OLENotes folder.  I now need to back track to the tables they are referenced to so i can get the information (Data side) that is associated to that attachment.

So basicallly, i should be able to tie back each of the files (20,000 +) to an assoicated table.
Question by:hiramq
  • 3
  • 2
LVL 10

Expert Comment

ID: 35762827
What's the problem? Please give an example.

Author Comment

ID: 35766039
We no longer use MS Dynamics and i need to extract all the attachments that were stored in the notes.  All the attachements have been converted into a binary file on the network.  I need to take those binary files and find out what tables they are referenced to.  So if i have a file named: 0012345, i should be able to convert that binary name and get the Noteindx value that is currently in the Sy03900 table and I NEED TO KNOW WHICH TABLE THE SAME NOTEINDX is linked to.  I have indentifed 4 tables but i am missing a few others.
LVL 10

Expert Comment

ID: 35767263
But these 20,000 files are embedded objects, how will you open them?
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 35768430
Ah, good question.  I am already in the works on creating a small program that will drag and drop the binary file into the Container using the Contain.exe file.  I am using send keys to perform this action.  I just need to work out a few bugs (If the container contains more than one attachment).  I have already identified 13,765 files (that link back to the appropriate tables that contain the NoteIndx value).  Dynamics contains so many tables so i was hoping for some insight on which tables contains the (noteIndx value) that associates the binary files that are stored on the network.
LVL 18

Accepted Solution

Victoria Yudin earned 2000 total points
ID: 35768448
You can find all the tables that have a field called NOTEINDX using this query (from http://victoriayudin.com/2010/04/23/how-to-find-all-sql-tables-with-a-column-name/):

   (SELECT name
    FROM sysobjects
    WHERE xtype = 'U')

In my sample install of GP 2010 this returns 244 tables.  However, there will also be cases where the note index is not called NOTEINDX.  For example, look at table POP10100 - there are 15 fields called PONOTIDS_1, PONOTIDS_2, etc. and each one represents a note index.  Even though you might only need to worry about one of these (as the others might point to notes elsewhere, like vendor, item, site, etc.), you still need to find out what each note index in tables like this is called.  I am not aware of any comprehensive listing of this.  And if you have any 3rd party products installed, this could complicate matters further.

Author Closing Comment

ID: 35770526
The answer provided let me down the path i needed to trace back the tables that are associated to the binary OLENOTES.    I was able to map back the 20,406 olenotes to their corresponding tables.  I have a remaining 126 files to look for which i am sure are located in one of the POP tables.  Thanks for help.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A frequent question here in the MAS90 Zone is, How do you get data out of MAS90 for analysis, reporting or using the data on your web pages?   This is an introductory level tutorial to getting data out of MAS90 using ODBC. Data can be accessed by…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part III
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question