1

Which attribute can be used to pass the File Name while ingesting a document?

How to determine the file type when a document is pulled from Documentum using DFC API

rameshwar.k.rao
  • 11
  • 1
  • 2
  • 6

2 Answers2

1

Once a file is uploaded to Documentum, it "loses" its filename. A document is linked to a content object, which is again linked to the file itself on a filestore.

There are ways to get hints about the original filename and/or file extensions:

  1. Find the Content ID by looking at i_contents_id, and look at that object's set_file attribute. Normally, this string will contain the full path to path (including filename) of the original file, but there are no guarantees.

  2. If storage extensions are on (yes, they're on by default), you could use the following API command to get the file extension: getpath,c,<doc_id>

  3. The document's a_content_type links to the name attribute of a dm_format object. Look at that object's dos_extension attribute to see the registered file extension for that given format (there is no guarantee that this was the original file extension, however).

As for which attribute should contain the filename, there is no clear answer. It's all up to the client. Normally, using object_nameshould suffice, or you could create a custom type with a custom attribute if the original filename is very important to you.

eivamu
  • 3,025
  • 1
  • 14
  • 20
  • can you Please proivde the DFC API calls? – rameshwar.k.rao Jan 14 '15 at 13:06
  • To my knowledge there is no equivalent of `getpath` in DFC. I would code my way around it. But why do you need it, anyway? Normally this should only be necessary for very technical debugging etc., not in programs and/or more regular use cases. – eivamu Jan 14 '15 at 13:31
0

File in Documentum repository don't need to have document names that is originating from file that was uploaded from file system. When you export document via export action with WDK application, i.e. Documentum Administrator or Webtop exported file will have name based on the value that was place in object_name property of that specific object.

File type of the content that is related to sepecific document object in repository is written in attribute a_content_type. Values in this attribute are internal Documetnum notation but names are intuitive. Check this question for more info or google.

Community
  • 1
  • 1
Miki
  • 2,493
  • 2
  • 27
  • 39