function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cooldamselcooldamsel 

[Urgent!!!] Assign Report Folders programatically

Hi,

I am trying to assign programatically the report folders to a set of users. I have a VF page where am selecting the report folders in a dropdown and a set of users in a grid. Then on saving i want to assign the selected report folders to the selected users.

Please suggest me on how to achieve this.

Thanks in advance,
Indhu
Ramu_SFDCRamu_SFDC
As report folder sharing is a metadata type it cannot be done using normal apex coding. You might have to consider using metadata api. To understand more about this please review the following post https://developer.salesforce.com/page/An_Introduction_to_Force.com_Metadata

List of salesforce metadata types http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_types_list.htm