27. The analytic user having all the permissions, but Create Dataflow button not available. what would be the reason?
To create a dataflow, first user need to have "Edit Wave analytics dataflows" permission. and analytics setting "Enable Replication" should be enabled.

Popular posts from this blog

Redirect Visualforce page to returning page
In this article, I'm going to show you how to redirect visualforce page to redirect into same standard page in classic and salesforce lightning. here I'm going to use standard account list view page, then add a button to call visualforce page. when you click on this button it will go to vf page then call the controller method then come back to same standard account list view page.I'm going to create visualforce page, extension controller and button.
Note: Salesforce lightning doesn't support javascript buttons. so we created visualforce page to call apex methods.
Create a Visualforce Page:
<apex:page standardController="Account" extensions="ListviewButtonController" action="{!doAction}" recordSetVar="accounts">
<!-- add your code-->
</apex:page>
Here we created a simple vf page with standardlist controller with extension controller. and we used an action attribut…

Salesforce Interview Question on Apex Unit testing 1. What is an apex Unit Testing? Why we need to write Test classes?2. What is @isTest annotation? When you will use it?
When you define method or class using @isTest annotation then it only contains code used for testing your application. Test classes should be public or private only. Test class doesn't count against your organization limit of 3 MB for all Apex code.
@isTest
private class MyTestClass {
// Methods for testing
@isTest static void test1() {
// Implement test code
}
}3. What is Test.startTest() and Test.stopTest()? When you will use it?
Test.startTest() and Test.stopTest() allow you to reset the governor limits within the context of your test execution and testing asynchronous classes. When Test.startTest() begins all the governor limits will be reset. and Test.stopTest() to end the execution of asynchronous process and switch back to the main context.

Dynamic SOQL with Database.Query and Database.countQuery
When we are working with Apex programming and SOQL( Salesforce Object Query Language) always it's not possible to write static SOQL queries. Using dynamic SOQL Queries we can achieve more flexible applications. Apex language has a greater feature to write some Dynamic SOQL queries using Database.Query, Database.getQueryLocatior and Database.countQuery. In this article, I'm going to show you some sample code snippets using these methods.
Database.Query:
Database.query allows developers to write Query in String format. Runtime it will execute as SOQL Query and return a single sObject or list of sObject type.

Ex: Query to returns a single sObject record.
sObject so = Database.query('SELECT Id FROM Account Limit 1');
Above example returns single account object record. when you try to run above query without LIMIT 1 it will throw error message "System.QueryException: List has more than 1 row for assignment to SO…