Thursday, 18 May 2017

[#Blogged] Different Types Of Sandboxes

Sandboxes :

sandbox is a replica of an engenderment environment utilized for a variety of purposes, commonly including testing and development. Here's how it works: When you engender or refresh (essentially effaces and reconstitutes a sandbox utilizing the same name) a sandbox, a facsimile of the engenderment environment at that point in time is made.


Different types of Sandboxes 


FullSandbox - Plenarily testing changes against authentic data afore promoting to engenderment.  This may include utilizer acceptance testing.  All changes must go through this sandbox.  If multiple admins/developers are working on overlapping areas, this is the place where changes get merged.  Force.com IDE can be habituated to compare changes by separate developers of the same apex code.
Full sandboxes have the same storage limit as your production organization.Once you refresh the Full Copy Sandbox then to refresh it one more time you have to wait for 29 Days.

 Partial Data Sandbox - This is an incipient sandbox type and I am not quite sure what the intention was.  Probably just a more frugal alternative to a full sandbox.  If you have a full sandbox, then partial data sandbox sounds like a good place for utilizer training for incipient features, incipient employees, etc.  Having authentic data can authentically avail with training.  Additionally, possibly a place to work on integration changes since it can hold quite remotely of authentic data.

Partial Data sandboxes have a 5 GB storage limit.
Once you refresh the Partial Data Sandbox then to refresh it one more time you have to wait for 5 Days.

Developer - A place to work through solutions to incipient requisites.  The main conception is to keep arbitrary experimentation out of the full sandbox.  It there are multiple admins/developers, each one should get their own so that they don't trample on each others work (until they deploy to the full sandbox).

Developer sandboxes have a 200 MB storage limit.


Once you refresh the Developer Sandbox then to refresh it one more time you have to wait for 1 Day.


Developer Pro - The main distinction between this and Developer is the amount of data that can be stored.  It additionally prehends some product data from engenderment.  If those two things are paramountutilize this one.  Otherwise, it's interchangeble with Developer.

Developer Pro sandboxes have a 1 GB storage limit.


Once you refresh the Developer Pro Sandbox then to refresh it one more time you have to wait for 1 Day.

Saturday, 13 May 2017

[#Blogged]Time To Upvote -Series (Part 1)

Here we have some idea's which need to be upvoted :

Idea 1 
Make the Manage External User button available in lightning

Currently the Manage External User button and the nested buttons it hosts are not available in the lightning user interface, as a result users have to switch between lightning and salesforce classic to access the functionality, another drawback to lightning as having to toggle back and forth between two different interfaces undermines the value of lightning.  Please make the manage external user button and the nested buttons it hosts available in lightning


Upvote 

Idea 2

Choose Who To Send Flow Fault emails and Process Builder Error Emails to
The notifications currently go to the user who built the flow or process builder.
I am currently in a situation where the original user who created the flows in Sandbox and deployed them is no longer active. I therefore must change his email in order to receive the error messages on existing flows.


Idea 3 
Increase the limit on the number of reports a user can subscribe to
The new report subscription feature is really nice, but only being able to subscribe to 5 reports is not helpful.  Most users who want to subscribe to reports want to do this for at least 10 - 15 reports.  I'm not sure why the limit is hard-coded to be 5 but having a higher limit (like 25?) would be much appreciated.

Upvote 

Idea 4 
Process Builder: Error messages
Process Builder works great, but when there is a validation error or any other error, it doesn't provide the much information to user and user will never know how to resolve that issue.
Admin gets an email for this exception with the proper message, but if we can improve the error messages for the end user also, that would be great.

Monday, 24 April 2017

[#Blogged]Today's Adventure - Salesforce Summer ’17


When Do Features Become Available?


Some features in Salesforce Summer ’17 affect all users immediately after the release goes live. Consider communicating these changes to your users beforehand so that they’re prepared.The Salesforce Summer’17 release is now in available under the pre-release program.


Get Better Assistance with the Restyled Lightning Experience Migration Assistant


Salesforce has given the Migration Assistant an easier-to-use, wizard-style interface.Accessing the Migration Assistant in Salesforce Classic is a no-brainer now. From Setup, click Get Started in the Lightning Experience Migration Assistant tile at the top of the menu. 

Switch More Users to Lightning Experience
 To help, the Switch Users to Lightning Experience tool now displays all users in your org, so you can switch the exact group that you want in one go. The tool also makes it easier to find specific users in the list and to see which users in your org are eligible to switch. This change applies to both Lightning Experience and Salesforce Classic.
Make Lightning Experience - the Only Experience 

Ready to move from Salesforce Classic to Lightning Experience without looking back? Just hide the option to switch to Salesforce Classic from your Lightning Experience users so that they stay in Lightning ExperienceThis feature is new in both Lightning Experience and Salesforce Classic.

Now you can create a permission set and assign it to different profile.

When you enable the permission for your Lightning Experience users, new and existing users see Lightning Experience the next time they log in to Salesforce. And, they no longer see the Switch to Salesforce Classic link.



Ditch Your Mouse

You can now use keyboard shortcuts to maximize your efficiency and speed while working in Lightning Experience. 



Navigate to a Record Directly from an Action Success Message

The message now includes the record name as an active link that takes you right to that record

Access Field History Related Lists in Lightning Experience

Track and display the field history for standard or custom objects, regardless of which Salesforce interface you’re using. If you added the History related list to objects in Salesforce Classic, you can now see it in Lightning Experience.
  • Click the Object Manager tab, and select an object from the list
  • In the left pane, click Fields and Relationships and then click Set History Tracking
  • Select the fields you want to track
  • Add that related list to your object’s page layout
Preview Case Details with Case Hovers

Users can hover over cases to get a sneak peek at the details, including the description and latest update
Find Favorites with a Simplified Favorites List
Salesforce has removed the top favorites section from your favorites list to simplify the way you access your favorite pages in Salesforce. Favorites give you instant access to important records, lists, groupsdashboards, and other frequently used pages. 

Thursday, 20 April 2017

[#Blogged] Login Failed in Apex Data-loader


If you are getting a failed to send request error you may need to check the server host Data Loader set. 
Resolution -Whenever you receive the error Failed to send a request to http://localhost/services/Soap/check the following:  1. Go to Settings | Settings and change the server name to https://www.salesforce.com 2. If logging into the sandbox, then the URL is https://test.salesforce.com
Check if your network is using a proxy - Getting the error message, "Failed to send a request to https://www.salesforce.com/services/Soap/u/31.0" typically indicates that you're going through a proxy server resulting in your login attempt from the Data Loader not making it from your local machine to Salesforce servers. If your network is utilizing a VPN, you'll need to include or set your proxy information in the Data Loader settings. We recommend contacting your IT department to get the following pieces of information:
Proxy host
- Proxy port
- Proxy username
- Proxy password settings
Check network connectivity or local machine issues - Review the affected user record's login history. If the Data Loader's login attempt has been recorded, you'll want to check the login attempt status. You'll be looking for login attempts that failed due to:
- Incorrect password
- Login restrictions
- Missing a required security token(For Developer Edition, give password+security token as password. Username is as usual username.)
If you've confirmed that these are correct and the login attempt is still not recorded this is indicative of a firewall, router, switch, or other network related device or connectivity issue that's preventing the Data Loader's login attempt from properly reaching the Salesforce servers.
You may troubleshoot potential network issues by running the network tests outlined in the article, How do I run a ping and traceroute to Salesforce? and reviewing the results as outlined in the article, How to Interpret the Traceroute? to determine whether it may be appropriate to engage your IT or network administration team to investigate or for further assistance.
If you continue to see an issue and have ruled out the above causes you may also try completely uninstalling the Data Loader and Installing Data Loader once again or trying to login via the Data Loader on another machine to potentially identify and/or rule out the behavior being an installation or local machine issue.

Sunday, 9 April 2017

[#Blogged] Steps to Download Apex Data Loader


The Salesforce Data Loader / Apex Data Loader is a client application for the bulk import or export of data. Use it to insert, update, delete, or extract salesforce.com records.
Frequently, you will use the Force.com platform to create applications that operate on data that you already have in some form - in comma-separated variable files, spreadsheets or other relational databases.
The Data Loader is an easy to use graphical tool that helps you to get your data into Salesforce objects. The Data Loader can also be used to extract data from database objects into any of the destinations mentioned above. You can even use the Data Loader to perform bulk deletions by exporting the ID fields for the data you wish to delete and using that source to specify deletions through the Data Loader.
Steps to Download Apex Data Loader :
1. Go to Setup - Administration Setup - Data Management - Data Loader in your Org.
2.  Click "Download the Data Loader" link to download the data loader.

Tuesday, 14 March 2017

[#Blogged]Like operator in SOQL

Like operator in SOQL


 Like keyword is same as like in SQL. We can find/get the record utilizing this keyword. Expression is true if the value in the designated fieldname matches characters of text string in the designated value.
    
The LIKE operator in SOQL and SOSL is homogeneous to the LIKE operator in SQL; it provides a mechanism for matching partial text strings and includes support for wildcards.
    
* % and _ wildcards are fortified for LIKE operator.
    * % wildcard matches zero or more characters.
    * _ wildcard matches precisely one character.
    * Text string in the designated value must be enclosed in single quotes.
    * LIKE operator is fortified for string fields only.
    * LIKE operator performs a case-callous match, unlike the case-sensitive matching in SQL.
    * LIKE operator in SOQL and SOSL fortifies eluding of special characters % or _.
    * Do not utilize the backslash character in a search except to elude a character.



For example 
List listOfAccounts;
listOfAccounts = [SELECT id, Name
                           FROM Account
                           WHERE Name  LIKE '%test%'];
This query matches both testasish,accounttest, and test.

 SELECT AccountId, FirstName, lastname FROM Contact WHERE lastname LIKE 'AC_%'

Select id, email from contact where email like '%a' or email like '%x';

Wednesday, 8 March 2017

[#Blogged]Salesforce 18th Birthday

Happy Birthday Salesforce !
Salesforce have turned 18th today , Isn't it exciting the company you work and it grows with you .
 The company was founded in 1999 by former Oracle executive Marc Benioff, Parker Harris, as a company specializing in software as a service (SaaS).[8]
I still remember , the first time I heard the name 'Salesforce '


I started my salesforce journey in 2013 after my 12th Class examinations , And from solving Force.com Fundamentals to grabbing a job as a Salesforce Developer  and Being the DG Leader in Chandigarh Tricity Area . Salesforce just changed my life as well as the thinking of mine .I am still pursuing my graduation and I literally don't think any other technology gives you a life-changing chance as Salesforce did.
I would like to thank and wish “Happy Birthday” to all Salesforce Employees, Customers, Partners, Non-Profit Organizations etc.=Party Hard ! Salesfor

Tuesday, 28 February 2017

[#BloggedFormula field to add 1 month exact in close date)


Formula field to add 1 month exact to close date



DATE ( 
YEAR(CloseDate) + FLOOR((MONTH(CloseDate) + 1 - 1)/12), 
CASE(MOD(MONTH(CloseDate) + 1, 12 ), 0, 12, MOD(MONTH(CloseDate)+ 1, 12 )), 
MIN(DAY(CloseDate), 
CASE(MOD(MONTH(CloseDate) + 1,12), 9, 30, 4, 30, 6, 30, 11, 30, 2, 
IF(MOD(YEAR(CloseDate) + FLOOR((MONTH(CloseDate) + 1)/12), 400) = 0 || (MOD(YEAR(CloseDate) + FLOOR((MONTH(CloseDate) + 1)/12), 4) = 0 && MOD(YEAR(CloseDate) + FLOOR((MONTH(CloseDate) + 1)/12), 100) <> 0 
),
29,28),
31)) 
)









Monday, 27 February 2017

[#Blogged]Day, Month and Year from Date

Sample Code (Use this in apex class):

Date gettingdate;
Integer dy = gettingdate.day();
Integer monh = gettingdate.month();
Integer yer = gettingdate.year();

Monday, 20 February 2017

[#Blogged]Managed or Unmanaged Packages

MANAGED OR UNMANAGED PACKAGES
Packages come in two forms:
  • Unmanaged
  • Managed

UNMANAGED PACKAGES

Unmanaged packages are typically used to distribute open-source projects or application templates to provide developers with the rudimentary building blocks for an application.
Once the components are installed from an unmanaged the package, the components can be edited in the organization they are installed in.
The developer who engendered and uploaded the unmanaged package has no control over the installed components, and can't change or upgrade them.

MANAGED PACKAGES

Managed packages are typically utilized by salesforce.com partners to distribute and sell
applications to customers.
These packages must be engendered from a Developer Edition organization.
Utilizing the AppExchange and the License Management
Application (LMA), developers can sell and manage utilizer-predicated licenses to the app.
Manage packages are withal plenarily upgradeable. To ascertain seamless upgrades, certain
destructive changes like abstracting objects or fields may not be performed in a managed
package.
Managed packages additionally offer the following benefits:
  • Astute property auspice for Apex.
  • Built-in versioning support for API accessible components
  • Remote access support (OAuth)
  • The competency to branch and patch an antecedent version
  • The competency to seamlessly push patch updates to subscribers
  • Unique denominating of all components to ascertain conflict free installs

Wednesday, 8 February 2017

[#Blogged] Anonymous Block

An anonymous block is Apex code that does not get stored in the metadata, but that can be compiled and executed using one of the following:

• Developer Console

• Force.com IDE

• The executeAnonymous Web services API call:

ExecuteAnonymousResult executeAnonymous(String
code)
You can utilize incognito blocks to expeditiously evaluate Apex on the fly, such as in the Developer Console or the Force.com IDE, or to indite code that changes dynamically at runtime
Note the following about the content of an incognito block (for executeAnonymous(), the code String):
* Can include utilizer-defined methods and exceptions.
* Utilizer-defined methods cannot include the keyword static.
* You do not have to manually commit any database changes.
* If your Apex trigger consummates prosperously, any database changes are automatically committed. If your Apex trigger does not consummate prosperously, any vicissitudes made to the database are rolled back.
* Unlike classes and triggers, incognito blocks execute as the current utilizer and can fail to compile if the code breaches the utilizer's object- and field-level sanctions.
* Do not have a scope other than local. For example, though it is licit to utilize the ecumenical access modifier, it has no denotement. The scope of the method is inhibited to the innominate block. 
* When you define a class or interface (a custom type) in an incognito block, the class or interface is considered virtual by default when the innominate block executes. This is true even if your custom type wasn’t defined with the virtual modifier. Preserve your class or interface in Salesforce to eschew this from transpiring. Note that classes and interfaces defined in an incognito block aren’t preserved in your organization.