Skip to content

Create Document using DQL

Below is the DQL query to create Document

The msw8 is the content type for MS Word file. The mapping between the extension and the Content type is available in dm_format object.

 

1. DQL Query

CREATE dm_document OBJECT
	SET object_name = 'DCTMGurusDQLExample.doc',
	SET title = 'DCTM Gurus Create Document DQL Example',
	SET subject = 'DCTM Gurus Create Document DFC Example',
	SETFILE 'C:\temp\DCTMGurusExample.doc' WITH CONTENT_FORMAT='msw8'
	LINK '/Temp'

 

2. Result

The Document is created in the /Temp cabinet

create_document_dql_da

Published inDQL