Microsoft now only supports connections to SharePoint which can be secured via multi-factor authentication (MFA).
This is driven by Microsoft's Secure Future Initiative (SFI) and "Secure by Default" principles and the recommended best practice to connect to SharePoint from Dynamics 365 \ Dataverse is to use Power Automate flow.
Therefore, this North52 function is deprecated.
Description
Create a SharePoint Document Location
Signature
SharePointCreateDocumentLocation( 'name', 'site-location-type|sharepointdocumentlocationid', 'regardingtype|regardingobjectid', 'relativeurl' )
Example 1
Create a top level SharePoint document location record
SharePointCreateDocumentLocation( 'TopLevelSite', 'sharepointsite|' + GetVar('GetSiteId') , 'email|' + [email.activityid], 'email','sharepointdocumentlocationid' )
Example 2
Create a individual record level SharePoint document location record
SharePointCreateDocumentLocation( 'Documents - ' + Left([email.subject], 50), 'sharepointdocumentlocation|' + GetVar('CreateOrRetrieveTopLevelSiteID') , 'email|' + [email.activityid], GetVar('FileName'), 'relativeurl' )
Parameters
Name | Type | Description | Required |
---|---|---|---|
name | xxxx | xxxx | xxxx |
site-location-type|sharepointdocumentlocationid | xxxx | xxxx | xxxx |
regardingtype|regardingobjectid | xxxx | xxxx | xxxx |
relativeurl | xxxx | xxxx | xxxx |