How to query all private reports in Salesforce
Use the below query to query all private reports in Salesforce. Sample SOQL: SELECT Id, Name, Owner.Name FROM Report USING SCOPE allPrivate To know more about USING SCOPE, check the ....
Use the below query to query all private reports in Salesforce. Sample SOQL: SELECT Id, Name, Owner.Name FROM Report USING SCOPE allPrivate To know more about USING SCOPE, check the ....
Sample Code: HTTP h = new HTTP(); HTTPRequest req = new HTTPRequest(); req.setEndPoint( '<Enter Endpoint URL>' ); ....
1. Go to the below link to download Visual Studio 2017 Enterprise. https://www.visualstudio.com/downloads/ 2. Install it. 3. Click Launch. 4. Go to Team - > Manage Connections... 5. Click Manage ....
1. Under "Administer," select Security Controls --> Login Access Policies. 2. Select Administrators Can Log in as Any User. Note: If Administrators Can Log in as Any User is not ....
Following code with correct WHERE condition can be used to delete files attached to FeedItem after deleting FeedItem in Salesforce. Sample Code: Set < Id > setContentVerIds = new Set ....
Sample Code: Set < Id > setContentVerIds = new Set < Id >();List < ContentDocument > listFiles = new List < ContentDocument >();for ( FeedComment objFC : [ SELECT Id, ....
Sample Test Class: @isTest private class CollaborationGroupFeedTest { static testMethod void test() { CollaborationGroup cg = new CollaborationGroup(Name = 'Test', CollaborationType = 'Public'); ....
Please check the following if the Batch class execute() method is not getting covered by test class 1. Remember that the execute method will be called only once. 2. If you ....
Sample Test Class: @isTest private class CollaborationGroupFeedTest { static testMethod void test() { CollaborationGroup cg = new CollaborationGroup(Name = 'Test', CollaborationType = 'Public'); insert cg; FeedItem FI = new FeedItem(Body ....