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

[Urgent!!!] Assign Report Folders programatically


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,
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

List of salesforce metadata types