Import or Sync from Powershell Help

Import or Sync from Powershell Help

avatar

Dear Support,

Our company planning to buy RDM, but im having some issue find the best way archive our gouls. Can you please help me with questions below ?

  • best would be to make csv or do i need to import/ sync each session individually?
  • if use csv can i somehow in csv to tell what is the type of session and where each session need to be in matter of folders ?
  • if csv possible can you share struct of csv, sample how csv should look like ?
  • how importer will handle duplicates ? Can i control it somehow ? (if duplicated can just update its property ?)
  • if csv is not possible can you please advice me what ps command from your ps module to use to archive all steps above ?
  • if csv not possible is it possible to create folder struct from ps commands ?
  • if i use new-rdmsession command how can i call refrefresh if RDM is open ?



Regards
Mike
Notino


All Comments (1)

avatar

Hello,

Thank you for reaching us out on that matter.

What data source type are you connected to?

Here are the answer to your questions.

  • If you have the ability to create a CSV file, RDM handles the import of CSV files.
  • In the article mentioned above, you can specify the entry type in the ConnectionType column and the destination folder in the Group column.
  • I have attached a CSV file sample in this post.
  • With a CSV file, we can read the CSV file in PowerShell and create the entries individually using the New-RDMSession cmdlet. We need to properly set the permissions and then save the entry with Set-RDMSession cmdlet.
  • The folder structure can be created in PowerShell using the New-RDMSession cmdlet. The Type must be set to Group value and for a subfolder, we need to specify the whole path in the -Group parameter.
$session = New-RDMSession -Name 'MyFolder' -Type Group -Group 'MyFolder'
$session = New-RDMSession -Name 'MySubFolder' -Type Group -Group 'MyFolder\MySubFolder'
  • Following the New-RDMSession that returns a PSConnection object, to have the session saved and available in RDM, we must use the Set-RDMSession to save it combined with the -Refresh switch.
Set-RDMSession $session - Refresh


Let us know if you have further questions about this.

Best regards,

Érica Poirier