Documente Academic
Documente Profesional
Documente Cultură
honeysalesforce.blogspot.in/2013/05/summer-13-release-note.html
1/5
8/1/13
Operators Supported on ID: The less than (<), less or equal (<=), greater than (>) and greater or equal (>=) comparison operators are now supported on ID (primary key) fields. Previously, only equals (=), not equals (!=), IN, and NOT IN were supported on ID fields.
Clauses:
UPDATE VIEWSTAT
The new UPDATE VIEWSTAT clause is used in a SELECT statement to report on Salesforce Knowledge article searches and views. It allows developers to update an articles view statistics. SELECT Title FROM KnowledgeArticleVersion WHERE PublishStatus='online' UPDATE VIEWSTAT; FOR VIEW AND FOR REFERENCE SOQL CLAUSES: A record is considered viewed when the user sees the details associated with it, but not when the user sees it in a list with other records. A record is considered referenced when a related record is viewed. You can use these clauses when objects are viewed in a custom interface, such as a mobile application or a custom page. This is an example of a SOQL query that retrieves one contact to show to the current user and uses FOR VIEW to update the last viewed date of the retrieved contact. The same statement both retrieves the record and updates its last viewed date. SELECT Name, ID FROM Contact FOR VIEW LIMIT 1 This is an example of a SOQL query that retrieves a contact and uses FOR REFERENCE to update the LastReferencedDate field of the retrieved contact. The same statement both retrieves the record and updates its last referenced date value. SELECT Name, ID FROM Contact FOR REFERENCE LIMIT 1
Workflow: Administrators now add workflow time triggers based on Contract Fields like Contract: EndDate, Contract: Activated Date. Example: Send an email reminder to the renewal manager 20 days before a contracts end date.
TestMethods:
honeysalesforce.blogspot.in/2013/05/summer-13-release-note.html
2/5
8/1/13
Starting in Summer 13, test methods can be defined only in test classes (classes annotated with @isTest). You can no longer add a test method in a non-test class. This change applies to new Apex code saved using Salesforce.com API version 28.0 and later. Apex code saved using earlier API versions isnt affected. Asynchronous calls are typically enclosed within Test.startTest and Test.stopTest statements in test methods so that they execute after Test.stopTest. In this case, mock callouts can be performed after the asynchronous calls and no changes are necessary. But if the asynchronous calls arent enclosed within Test.startTest and Test.stopTest statements, youll get an exception because of uncommitted work pending. To prevent this exception Enclose the asynchronous call within Test.startTest and Test.stopTest statements. Test.startTest (); MyClass.asyncCall (); Test.stopTest (); Test.setMock (..); // Takes two arguments MyClass.mockCallout (); Follow the same rules as with DML calls: Enclose the portion of your code that performs the callout within Test.startTest and Test.stopTest statements. The Test.startTest statement must appear before the Test.setMock statement. Also, the asynchronous calls must not be part of the Test.startTest/Test.stopTest block. MyClass.asyncCall (); Test.startTest (); Test.setMock (..); // Takes two arguments MyClass.mockCallout (); Test.stopTest ();
TestVisible Annotation:
Use the TestVisible annotation to allow test methods to access private or protected members of another class outside the test class. These members include methods, member variables, and inner classes. This annotation enables a more permissive access level for running tests only. This annotation doesnt change the visibility of members if accessed by non-test classes. Force.com Apex Code With this annotation, you dont have to change the access modifiers of your methods and member variables to public if you want to access them in a test method.
Sandbox templates:
honeysalesforce.blogspot.in/2013/05/summer-13-release-note.html 3/5
8/1/13
Sandbox templates provide control over the objects copied to your sandbox. You create a sandbox template that defines the object data you want in your sandbox. When you create or refresh a Full sandbox, youll have the option to use your sandbox template. Sandbox templates are only available for use with a Full sandbox. Custom Settings data is now copied to Developer and Configuration Only sandboxes. Previously, Custom Settings data was only copied to Full sandboxes. Change Sets: Approval processes are now available in change sets and are exposed in the Metadata API. Approval processes are not supported in managed or unmanaged packages. Auto-Response Rules and Escalation Rules are now available in change sets. However, these are not supported in managed or unmanaged packages. Assignment Rules are now available in change sets. However, these are not supported in managed or unmanaged packages. New Visualforce Components: The support: clickToDial component lets you add a phone field to custom Visualforce detail and edit pages. When user in organizations with Open CTI or Salesforce CRM Call Center click on the phone field, the phone number is dialed automatically and connects to the SoftPhone. Chatter: userPhotoUpload that lets users upload a photo to their Chatter profile page. Using this Visualforce component, you can create a custom page that lets users in your Ideas community upload a profile picture in either a cropped format or as a full image.
Formulas: Returns a true or false value. The field appears as a checkbox in record detail pages and reports. Use True for checked values and False for unchecked values. The Owner lookup and made its fields available for cross-object formulas. For example, if you need owner email and you dont use queues; your formula would be Owner:User.Email. If you do use queues, your formula could be IF (ISBLANK (Owner: User. Id), Owner: Queue.QueueEmail, Owner: User. Email)
8/1/13
You can use permission sets to assign custom record types to users. With record types in permission sets, you have the flexibility to layer record type assignments to users as needed, without having to create additional profiles. Ex: Suppose you have 20 Tier 2 customer support representatives. When these representatives create a case, they usually use the default Tier 2 record type and page layout. However, two of the representatives also need to create cases with a Defect Cases record type, another two also need to create cases with the Global Issues record type, and one more needs to create cases with either the Global Issues or Defect Cases record type. In the past, granting this type of access would mean creating four profiles. Tier 2 (15 users) Tier 2 with Defect Cases (2 users) Tier 2 with Global Issues (2 users) Tier 2 with Defect Cases and Global Issues (1 user) But with summer 13, you can create just one profile and two permission sets to accomplish the same requirement. Tier 2 profile (20 users) Defect Cases permission set (3 users) Global Issues permission set (3 users)
Note:From now onwards Customer ,Partner portals are not available,instead of these Salesforce suggests to use communities.
honeysalesforce.blogspot.in/2013/05/summer-13-release-note.html 5/5