Sample Apex Code for call out with oAuth token
Sample Code: HTTP h = new HTTP(); HTTPRequest req = new HTTPRequest(); req.setEndPoint( '<Enter Endpoint URL>' ); ....
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 ....
Sample Code: Set < Id > setContentVerIds = new Set < Id >();List < ContentDocument > listFiles = new List < ContentDocument >();for ( FeedComment objFC : [ SELECT Id, ....
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 ....
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'); ....
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 ....
1. Go to File Upload and Download Security. 2. Click Edit and set it.