SharePoint Connection String
Adxstudio Portals 7 now supports uploading and displaying documents to and from SharePoint directly on an Entity Form, Web Form or Managed Forms in the portal. In order for the portal to make a connection to your SharePoint environment, a valid connection string must be specified in the portal's web.config. In the case where the SharePoint's user is the same as the Portal's CRM user, there is no configuration necessary. The SharePoint connection will use the Portal's CRM user's credentials when a SharePoint connection string is not supplied in the web.config.
Parameters
The table below explains many of the Connection String configuration parameters used by Adxstudio Portals.
Name | Description |
---|---|
Url | Specifies the URL to the SharePoint site. |
Domain | The domain that will verify user credentials. |
Username | The user's identification name associated with the credentials. |
Password | The password for the user name associated with the credentials. |
ApplicationName | SharePoint application name |
AuthenticationMode |
The mode of authentication. One of the following:
|
RequestTimeout | The requested time-out value in milliseconds. |
ValidateOnClient | The flag that indicates whether the client library needs to validate the method parameters on the client side. |
Examples
The following examples show the connection string for the various deployments and authentication schemes of Microsoft SharePoint 2013
Integrated On Premises
<connectionStrings> <add name="SharePoint" connectionString="Url=https://sp2013.contoso.com/sites/site1/;" /> </connectionStrings>
Active Directory
<connectionStrings> <add name="SharePoint" connectionString="Url=https://sp2013.contoso.com/sites/site1/; Domain=CONTOSO; Username=johndoe; Password=pass@word1" /> </connectionStrings>
SharePoint Online
<connectionStrings> <add name="SharePoint" connectionString="Url=https://contoso.sharepoint.com/sites/site1/; Username=proxy@contoso.onmicrosoft.com; Password=pass@word1;"/> </connectionStrings>