第三回Salesforce勉強会

927 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
927
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

第三回Salesforce勉強会

  1. 1. Salesforce.com 2011.11.30 Salesforce.com11 11 30
  2. 2. • Apex • Apex • Apex • Apex •11 11 30
  3. 3. Apex • Force.comIDE Force.comIDE11 11 30
  4. 4. Apex • Force.comIDE Installer11 11 30
  5. 5. Apex • Force.comIDE IDE11 11 30
  6. 6. Apex • Force.com •[File] ➤ [New] ➤ [Force.com Project] •[Project name] Force.com_ •[Username][Password] ID •[Environment] [Production/Developer Edition]11 11 30
  7. 7. Apex • Force.com • [ ] Force.com •11 11 30
  8. 8. Apex • •Force.com •[ ] ➤[ ] ➤[ ] •11 11 30
  9. 9. Apex • Force.com •Force.comIDE [Security Token] •[Next] •[Finish]11 11 30
  10. 10. Apex • Force.com • Apex Visualforce11 11 30
  11. 11. Apex • Apex •Visualforce • • • Web11 11 30
  12. 12. Apex • Apex11 11 30
  13. 13. Apex • Apex •Package Explorer [classes] •[New] ➤[Apex Class] •[Name] TaskDao • [Finish]11 11 30
  14. 14. Apex • Apex11 11 30
  15. 15. Apex • Apex •getAllActiveTasks • getAllActiveTasks • • List<Task__c> Ctrl+Space11 11 30
  16. 16. Apex • Apex • SOQL • Id,Name,TaskName__c,StartDate__c • Task__c • • ※ Date today Date today = Date.today();11 11 30
  17. 17. Apex • Apex •11 11 30
  18. 18. Apex • Apex •Force.comIDE [Execute Anonymous] • List<Task__c> taskList = TaskDao.getAllActiveTasks(); System.debug( +taskList.size()); for(Task__c task : taskList){ System.debug( + task.TaskName__c); System.debug( + task.StartDate__c); } • [Execute Anonymous] •Results11 11 30
  19. 19. Apex • (Test Driven Development) Test First11 11 30
  20. 20. Apex • •Package Explorer [classes] •[New] ➤[Apex Class] •[Name] TaskDaoTest •[Template] Test Class • [Finish]11 11 30
  21. 21. Apex • • • • • •11 11 30
  22. 22. Apex • •11 11 30
  23. 23. Apex • •Package Explorer [TaskDaoTest] •[Force.com] ➤[Run Tests] • [Apex Test Runner] •11 11 30
  24. 24. Apex • • assertEquals [0] [1] •[Force.com] ➤[Run Tests] • [Apex Test Runner] •Failures •Expected Actual11 11 30
  25. 25. Apex • Apex11 11 30
  26. 26. Apex • if(age > 0){ logicA }else{ logicB } age 0 1 100% age (age 3 9999 )11 11 30
  27. 27. Apex • •Force.com •[ ] ➤[ ] ➤[Apex ] •[ ] •11 11 30
  28. 28. Apex • Apex • • •11 11 30
  29. 29. Apex • Apex11 11 30
  30. 30. Apex • • • Status • • •11 11 30
  31. 31. Apex • Apex •Package Explorer [triggers] •[New] ➤[Apex Trigger] •[Name] MemberStatusUpdateTrigger •[Object] Task__c •[Apex Trigger Operations] after insert after update •[Finish]11 11 30
  32. 32. Apex • Apex •11 11 30
  33. 33. Apex • Apex11 11 30
  34. 34. • •Apex Servlet •Force.com •API11 11 30
  35. 35. • (API 22.0) SOQL 100 SQOL 50,000 SOSL 20 DML 150 DML 10,000 Script 200,000 heap 3Mbyte 10 10 Force.com11 11 30
  36. 36. • Apex →Force.com IDE • Apex → • Apex → • Apex →Apex • →Apex11 11 30

×