training1 (1)

21
Chennai Salesforce Platform Developer User Group

Upload: anjith-kumar

Post on 11-May-2015

85 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Training1 (1)

Chennai Salesforce Platform Developer User Group

Page 2: Training1 (1)

Salesforce Winter’13 Release

Karanraj SankaranarayananDeveloper, Tiara Consulting services@karanrajs

Page 3: Training1 (1)

Agenda

• Visualforce Charting• GeoLocation Field• Load test data• Developer Console• SOQL Polymorphism

Page 4: Training1 (1)

Visualforce charting

• Now its Generally available• Types of Visualforce Charting– Pie chart– Gauge chart – Bar chart– Line chart– Radar chart– Scatter chart

Page 5: Training1 (1)

• Simple to implement• Customize your chart(change color,

appearances)

• Limits– Can’t use in render as PDF/excel page– Can’t use in visualforce email template– Display Error in the browser java script console

Page 6: Training1 (1)

Demo

Page 7: Training1 (1)

GeoLocation field

• Generally available – Beta release• Easy to calculate distances between two

Location using DISTANCES and GEOLOCATION formula funtion

Distances(Geoloc_field__c,GEOLOCATION(value),”km/mi”)

Page 8: Training1 (1)

Limits

• Counts toward your organization’s limits as three custom fields

• Not available in reports, dashboards, validation rules, Visual Workflow, or workflow and approvals

• Cannot be searched

Page 9: Training1 (1)

Demo

Page 10: Training1 (1)

Load Test Data

• No need to write many lines in test method to populate test data

• Create test data in a csv file and upload it into static resource

• Use Test.LoadData method in the test method

Page 11: Training1 (1)

Demo

Page 12: Training1 (1)

SOQL Polymorphism(Pilot)

• It’s available as developer preview• Just single query instead of multiple query• Referenced object can be different type• Eg:– What field in Event object

Page 13: Training1 (1)

Account

Opportunity

Name Phone Number Of Employees

Acme             (212) 555-5555       680

Global Media             (905) 555-1212       14668

Name Amount Close Date

Global Media – 400 Widgets 40000.0 2010-02-28

Acme – 1,200 Widgets 140000.0 2010-01-30

Acme – 600 Widgets 70000.0 2010-03-28

Acme – 200 Widgets 20000.0 2010-05-31

Page 14: Training1 (1)

Event Record

SubjectName of Account or Opportunity referenced by What field

Acme Event Acme

Global Media Event Global Media

Global 400 Widget Event Global Media – 400 Widgets

Acme 600 Widget Event Acme – 600 Widgets

Page 15: Training1 (1)

• Use “TYPEOF” in the SOQL query

SELECT Subject, TYPEOF What WHEN Account THEN Phone, NumberOfEmployees WHEN Opportunity THEN Amount, CloseDate ENDFROM Event

Page 16: Training1 (1)

Event.SubjectAccount.Phone or Opportunity.Amount

Account.NumberOfEmployees or Opportunity.CloseDate

Acme Event             (212) 555-5555       680

Global Media Event             (905) 555-1212       14668

Global 400 Widget Event 40000.0 2010-02-28

Acme 600 Widget Event 70000.0 2010-03-28

 

Page 17: Training1 (1)

Limits

• Not allowed in select clause of semi join• Can’t be used in Bulk API• Can’t use Count() /aggregate query

Page 18: Training1 (1)

Developer Console

• Test Tool• Query editor• System log view

• Minor enhancement1. Command line window2. Keyboard Shortcut - CTRL+SHIFT+?

Page 19: Training1 (1)

Demo

Page 20: Training1 (1)

Other features• Force.com Canvas(pilot)• Environment hub(pilot)• Salesforce for outlook panel• Export Joined report• Chatter poll• Salesforce touch

Check the Winter’13 release notes to know more about the other features http://www.salesforce.com/customer-resources/releases/

Page 21: Training1 (1)

Q&A