The SharePoint Online Provisioner solution is launched through a DOS window, i.e. from the command line.
Below you will find the different options that allow you to set up the import into SharePoint.
Syntax for an import to SharePoint ONLINE :
Cooperteam.SPOnlineProvisioner.exe -env online -site <site_URL> [-tenant <tenant_URL> -title <site_title> -lcid <site_lcid>] [-u <user_name> | -mfa [-noMFACache]] [-p <password>] -folder <source_folder_URL> [-mapfile <mapping_file_path>] -mode <CustomList | DocSets | FlatFiles> [-SkipResources] [-SearchUrl <SPO_search_site_URL>] [-limit <integer>] [-key <product_key>]
Syntax for an import to SharePoint ON-PREM :
Cooperteam.SPOnlineProvisioner.exe -env onprem -site <site_URL> [-ca <admin_URL> -title <site_title> -template <site_template> -lcid <site_lcid>] -u <user_name> [-d <domain>] [-p <password>] -fba -folder <source_folder_URL> [-mapfile <mapping_file_path>] -mode <CustomList | DocSets | FlatFiles> [-SkipResources] [-SearchUrl <SPO_search_site_URL>] [-limit <integer>] [-key <product_key>]
Syntax to generate the default mapping file :
Cooperteam.SPOnlineProvisioner.exe -generatemapfile -folder <source_folder_URL> -mapfile <path_to_out_XML_mapping_file> [-selectAllFields] [-key <product_key>]
For example, here is a command line to import a Notes database exported to a SharePoint Online site (without the resources):
Cooperteam.SPOnlineProvisioner.exe -env online -site https://takemotion.sharepoint.com/cooperteam -u firstname.lastname@cooperteam.com -folder C:\Data\MyExport -mapfile C:\Data\MyExport\SHAREPOINT\mapping.xml -mode CustomList -SkipResources
Description of the different arguments of the command line:
-env: Required. Choice of the Target environment, using 'online' if the target is SharePoint Online or 'onprem' for SharePoint On-Premises. The default value is Online.
-site: Required. Absolute URL of the target SharePoint site (Online or On-prem)
e.g. https://tenant.sharepoint.com/sites/SiteColl01/SubSite ou http://server/sites/SiteColl01/SubSite.
It may be an existing (sub-)site, or a site collection to be created. In the latter case, -tenant (or -ca), -title, -template and -lcid must be provided.
-tenant: URL du site d'administration du tenant SharePoint Online, par exemple https://tenant-admin.sharepoint.com
-ca: URL of the SharePoint on-prem Central Admin (CA) site, e.g. http://server:1000
Note: If the tenant admin URL or the CA URL is provided, a new site collection can automatically be created (only if no site can be found at the URL specified by <site_URL>).
In this case, <site_title>, <site_template> and <site_lcid> must be provided so the site collection can be created automatically.
Do not provide a tenant admin or CA site if you don't want the target site collection to be created automatically.
-title: Title of the SharePoint to create if needed.
-template: SharePoint template Id to use to create the site if needed (e.g. STS#3 for a modern team site, STS#0 for a classic team site).
-lcid: Identifier code of the location to create the site if necessary (e.g. 1033 for English US, 1036 for French).
-u: User name
If import to SP Online: optional (if absent, a login window will appear).
If import to On-Prem: required.
-d: Domain for user.
If import to SP Online: not used.
If import to SP On-Prem: required but in FBA mode.
-mfa: Switch to use MFA authentication instead of user/password credentials (a login window will pop-up).
If import to SP Online: optional.
If import to SP On-prem: not used.
-noMFACache: Force a new MFA authentication session from the browser window (don't use stored credentials).
-fba: Switch to use FBA authentication mode instead of Windows credentials.
If provided, domain should not be provided, but user name (and password) is still required.
Note: Automatic creation of site collection (i.e. when -ca parameter is specified) with FBA is not supported.
Si import Online: not used.
Si import On-prem: optional.
-p: Password (will be prompted for if not provided in the command line).
-folder: Required. Path to the source folder (the Notes extraction folder).
-mapfile:
- Import modes: Complete path to the XML file containing the mapping for lists and fields. If omitted, automatic mapping (default list names, exclusion of empty fields...) is used.
- When generating the mapping file: Required. Complete path to the XML file to be generated with the the default mapping for lists and fields.
-selectAllFields (optional, GENERATE DEFAULT MAPPING FILE mode only): Force all fields to be marked as '<Import>true</Import>' even if no item defines a value for this field (by default, the generated mapping file excludes unused fields by setting '<Import>false</Import>').
-mode: Required. Import mode can be: CustomList, DocSets or FlatFiles.
-SkipResources (optional): Skips the resources import phase.
-SearchUrl (optional): URL of a search center in target SharePoint Online tenant. Used for reference between databases.
-limit (optional): max number of elements to import in each list (all by default)
-key: Product key. Required on first use only, or to register a new activation key.
Comments
0 comments
Article is closed for comments.