Newer Version Available
FolderShare
File Suffix and Directory Location
FolderShare objects are stored in the reports and dashboards directories. For each report or dashboard folder it contains, there’s a metadata file named FolderName-meta.xml. The FolderName-meta.xml metadata file contains the metadata information for that folder, such as the accessLevel. For example, if the reports directory contains a reports folder named myReportsFolder, it also has a myReportsFolder-meta.xml file at the same level as myReportsFolder.
Version
FolderShare components are available in API version 28 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| accessLevel | FolderShareAccessLevel (enumeration of type string) | Required. Specifies the combination of actions that can be taken on the folder.
Valid values are:
|
| sharedTo | string | Required. Specifies the user, group, or role that has the specified access level to the folder. |
| sharedToType | FolderSharedToType(enumeration of type string) | Required. Specifies the type of entity that the folder is shared with. Valid
values are:
|
Declarative Metadata Sample Definition
The following is an example of a FolderShare component for a dashboard folder:
1<?xml version="1.0" encoding="UTF-8"?>
2<DashboardFolder xmlns="http://soap.sforce.com/2006/04/metadata">
3 <folderShares>
4 <accessLevel>View</accessLevel>
5 <sharedTo>R1</sharedTo>
6 <sharedToType>Role</sharedToType>
7 </folderShares>
8</DashboardFolder>This is an example of a FolderShare component for a report folder:
1<?xml version="1.0" encoding="UTF-8"?>
2<ReportFolder xmlns="http://soap.sforce.com/2006/04/metadata">
3 <folderShares>
4 <accessLevel>View</accessLevel>
5 <sharedTo>R1</sharedTo>
6 <sharedToType>Role</sharedToType>
7 </folderShares>
8</ReportFolder>Wildcard Support in the Manifest File
This metadata type doesn’t support the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.