Views:

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