How to iterate map in Salesfore Lightning?
Apex Class: public class LightningController { @AuraEnabled public static Map < String, String > fetchMapData() { Map < String, String > mapCustomer ....
Apex Class: public class LightningController { @AuraEnabled public static Map < String, String > fetchMapData() { Map < String, String > mapCustomer ....
Remote Site Settings: Sample code: Map < String, String > mapCustomer = new Map < String, String >(); String endpoint = 'http://www.thomas-bayer.com/sqlrest/CUSTOMER/1/'; HTTP h = new HTTP(); HTTPRequest req = ....
If you face System.CalloutException: Method can not be null issue, make sure you are using POST Or GET Or PUT in your request suing setMethod(). HTTPRequest req = new HTTPRequest(); ....
1. Right click the project and select Share Project. 2. Select Team Foundation Server. 3. Select the server. 4. Select the Location. 5. Click "Finish". 6. Check In the components ....
If Team --> Share Project is disabled, open the project. Right Click the project in the Project Explorer and click "Open Project" to open the project and avoiding Share Project option ....
To know the features that are not available for external objects in Salesforce, check the below link https://help.salesforce.com/HTViewHelpDoc?id=platform_connect_considerations_compatibility.htm Cheers!!!
1. Go to Matching Rules. 2. Activate the standard rules. 3. Go to "Duplicate Rules". 4. Click New and select the object. I have selected Account for this example. 5. ....
Sample Formula code: IF( MONTH( TODAY() ) = 12, DATE( YEAR( TODAY() ), 12, 31 ), DATE( YEAR( TODAY() ), MONTH( TODAY() ) + 1, 1) - 1) Cheers!!!
To cover the test coverage for getURL method, use Test.setCurrentPage(Page.PageName). Test.setCurrentPage(Page.PageName) will help you to cover the codes which makes use of ApexPages.currentPage().getUrl(). Cheers!!!
Sample code: CASE( MOD(TODAY() - DATE(1900, 1, 7), 7), 1, 'Sunday', 2, 'Monday', 3, 'Tuesday', 4, 'Wednesday', 5, 'Thursday', 6, 'Friday', 'Saturday' ) Cheers!!!