Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

api import
Last Post 07/12/2013 12:24 PM by Peter Donker. 2 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
doug
New Member
New Member
Posts:6


--
07/10/2013 10:32 PM
is there an api sample code I can do an import? I am wanting to do 20,000 files with property values by just using the computer script.

i do have the resource files but i am trying to figure out how to use it and where the commands i need are.

Doug
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
07/12/2013 12:22 PM
There is a bunch of common methods (like AddFolder and AddFile) collected in the class Bring2mind.DNN.Modules.DMX.API in the Core.dll. You could check that out. Note you will need to leverage that from some code that you run while inside DNN. I.e. it needs http context and DNN context to run.

Peter
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
07/12/2013 12:24 PM
One more note: these methods return the resulting EntryInfo which is the data holder of these items (folder/file). Naming in DMX follows the same naming conventions as DNN. So you should easily find the EntriesController for instance which you can use for more fine grained operations like you'll probably want.
You are not authorized to post a reply.