Views:

Description

Shares a record with a user.

e.g. Shows how to share all privileges of a contact record with a system user except for the delete privilege

Signature

RecordShare(
  'entitynameofrecordtoshare',
  'guidofrecordtoshare',
  'systemuser\team', 
  'guidofsystemuser\team',
  'readaccess', 
  'writeaccess',
  'deleteaccess', 
  'assignaccess',
  'shareaccess', 
  'appendaccess',
  'appendtoaccess'
)

Example

RecordShare(
  'contact',
  '873489c-992f-22db-8454-0800255c9a55', 
  'systemuser', 
  '899989c-992f-22db-8454-0800255c9a55',  
  true, 
  true, 
  false, 
  true, 
  true,
  true,
  true
)

Parameters

Name Type Description Required
entitynameofrecordtoshare xxxx xxxx xxxx
guidofrecordtoshare xxxx xxxx xxxx
systemuser\team xxxx xxxx xxxx
guidofsystemuser\team xxxx xxxx xxxx
readaccess xxxx xxxx xxxx
writeaccess xxxx xxxx xxxx
deleteaccess xxxx xxxx xxxx
assignaccess xxxx xxxx xxxx
shareaccess xxxx xxxx xxxx
appendaccess xxxx xxxx xxxx
appendtoaccess xxxx xxxx xxxx