SlideShare a Scribd company logo
Wielding Workflow Varadarajan Rajaram, Salesforce.com Track: Advanced AppExchange Developers
Safe Harbor Statement “ Safe harbor” statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements the achievement of which involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions proves incorrect, our results could differ materially from the results expressed or implied by the forward-looking statements we make.  All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include - but are not limited to - risks associated with the integration of Sendia Corporation’s technology, operations, infrastructure and personnel with ours; unexpected costs or delays incurred in integrating Sendia with salesforce.com, which could adversely affect our operating results and rate of growth; any unknown errors or limitations in the Sendia technology; any third party intellectual property claims arising from the Sendia technology; customer and partner acceptance and deployment of the AppExchange and AppExchange Mobile platforms; interruptions or delays in our service or our Web hosting; our new business model; breach of our security measures; possible fluctuations in our operating results and rate of growth; the emerging market in which we operate; our relatively limited operating history; our ability to hire, retain and motivate our employees and manage our growth; competition; our ability to continue to release and gain customer acceptance of new and improved versions of our CRM service; unanticipated changes in our effective tax rate; fluctuations in the number of shares outstanding; the price of such shares; foreign currency exchange rates and interest rates. Further information on these and other factors that could affect our financial results is included in the reports on Forms 10-K, 10-Q and 8-K and in other filings we make with the Securities and Exchange Commission from time to time, including our Form 10-K for the fiscal year ended January 31, 2006. These documents are available on the SEC Filings section of the Investor Information section of our website at  www.salesforce.com/investor . Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all.  Customers who purchase our services should make purchase decisions based upon features that are currently available.  Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements, except as required by law.
Agenda Introduction Winter ‘07 Workflow – What’s new? Focus on approvals Q&A – Approvals API
Definition Workflow enables the automation of a business process, in while or part  within your organization – from sales, to service, to HR, to finance. It enforces a process within your organization which is consistently followed and improves efficiency and productivity.
Current Workflow Capabilities (Pre Winter ’07) Automated notification Review current discount policies on Opportunities Follow up on Cases for Platinum Customers Limited action types Email Alerts Create Tasks
Winter ’07 Workflow Capabilities Automate your business processes Field Updates, Outbound Messages, Approvals Enforce business processes Lock down Opportunities when it is closed Improve customer satisfaction Initiate a customer survey as soon as a Platinum customer case is closed Improved data quality Store only the last 4 digits of the SSN
Winter ’07 Workflow Capabilities Approval process automation Simple and complex multi-step processes Supported in the API Eliminate laborious manual processes Automate and eliminate your paper-based PTO requests Control business processes Discount policy controls – Enforce approvals on large discounts Campaign spending controls – Force approvals on costly campaigns
Winter ’07 Workflow
Field Update Action Automatically change the value in a field as a result of a workflow trigger, including owner and record type!
Outbound Message Action Send a customizable XML message to any desired Web-available listener. No more polling for changes! Can be used to automate updates to dependent records! Gain automated asynchronous integration with external systems
Other Workflow Enhancements Workflow rule limit increased from 50 to 300 per object More standard objects supported Opportunity Product Order Product Advanced “or” filters  New filter options Current user Special date values – Next X days, Last Week etc
Approval Process Automation Define simple or multi-step approval processes for any object Specify actions at each step of process Send approval requests to a queue Define one or more user  hierarchies for approval request routing
Approvals Demo PTO Request
Sample Approval Process
Anatomy of an Approval Process Process Definition (Global Characteristics) Entry Criteria Email Template Sent to Approvers Record Editability During Approval Approval Page Layout Approval Page Accessibility Allowed Submitters
Anatomy of an Approval Process Initial Submission Actions (Workflow Actions) Lock the Record Change Field Values Send Notification
Anatomy of an Approval Process Step Definition (Decision Criteria & Approval Assignment) (1+) Optional Decision Criteria Auto-Approve / Reject Assign Approver Allow Delegated Approval? Rejection Behavior
Anatomy of an Approval Process Final Rejection Actions (Workflow Actions) Unlock Record Change Field Values Send Notification
Anatomy of an Approval Process Final Approval Actions (Workflow Actions) Keep Record Locked Change Field Values Send Notification Integrate w/ External System
PTO Request – The Finished Product
Summary of Key Features New Workflow Action: Field Update – Automatically change the value in a field as a result of a workflow trigger, including owner and record type! Use Formula Editor wherever applicable to derive value from other fields, expressions, or values.  New Workflow Action: Outbound API Message – Send a customizable XML message to any desired Web-available listener. No more polling for changes! Use it to update dependent records Approval Process Automation – Create simple or multi-step approval processes to automate and enforce the approval of virtually anything in your company, from sales discount requests, to expense reports, to vacation requests.
Varadarajan Rajaram Sr. Product Manager QUESTION & ANSWER Salesforce.com Steve Tamm Technical Architect Salesforce.com
Approvals API New API – process Syntax ProcessResult[] = sfdc.process([ProcessRequest[]) ProcessRequest ProcessSubmitRequest: Submit a record for approval ProcessWorkitemRequest: Approve or Reject an approval request
Approvals API Access to approval history and requests through new objects ProcessInstanceStep The contents of the approval history for a given approval process. ProcessInstanceWorkitem The current approval requests assigned to a user Update this record to reassign workitems.
Approvals API - ProcessRequest Name Type Description objectId ID For submitting an item for Approval, can be the ID of any record with approval processes defined.  workitemId ID For submitting an item for processing after approval, the Id of the ProcessInstanceWorkitem. action String For approving or rejecting a workitem for processing, a string representing the kind of action to take: Approve, Reject, or Remove. nextActorIds String[] If the approval request requires the user to select the approver, specify the user ID of the next approver here comments String Any comments to be stored with the approval action in the approval history
Approvals API – ProcessResult Name Type Description entityId ID Object being processed Errors Error[] Set of errors instanceId ID The ID of the ProcessInstance InstanceStatus String The status of the current process instance: “Approved,” “Rejected,” “Removed,” “Started,” or “Pending” newWorkitemIds ID[] The IDs of the newly created approval requests, if any Success boolean “ True” if the approval completed successfully
Sample Code public ProcessResult[] doProcessSample(String comments, String id, String[] approverIds) throws ApiFault {          ProcessResult[] processResults;          ProcessSubmitRequest request = new ProcessSubmitRequest();          request.setComments(comments);          request.setNextApproverIds(approverIds);          request.setObjectId(id);          try {              PartnerConnection connection = Connector.newConnection(xconfig);              //calling process on the approval submission              processResults = connection.process(new ProcessSubmitRequest[]{request});              for (ProcessResult processResult : processResults) {                      if(processResult.getSuccess()){                          if(xconfig.isTraceMessage()){                              log.debug("Approval submitted for: " + id + ", approverIds: " + approverIds.toString() + " successful.");                              log.debug("Process Instance Status: " + processResult.getInstanceStatus());                          }                      } else{                          log.error("Approval submitted for: " + id + ", approverIds: " + approverIds.toString() + " FAILED.");                          log.error("ERRORS: " + processResult.getErrors().toString());                      }              }          } catch (ConnectionException ce) {              ApiFault fault = getApiFault(ce);              ce.printStackTrace();              throw fault;          }          return processResults;      }
Additional Resources “ Tips and Tricks for Advanced Workflow” Tuesday 3:45PM See how 144 Workflow helps Deutsche Bank reduce costs and increase efficiency Join ADN! http://www.salesforce.com/developer Documents, toolkits, discussion boards and more!
Session Feedback Let us know how we’re doing! Please score the session from 5 to 1 (5=excellent,1=needs improvement) on the following categories: Overall rating of the session Quality of content Strength of presentation delivery Relevance of the session to your organization Save time! Use your cell phone or mobile device to send Feedback via SMS/Text Messaging! Send a message to  26335 In the message body:   Session 239, ####   For example, “ Session 123, 5555 ” Session ID:  239 Session ID # Scores for 4 categories SMS Voting powered by:

More Related Content

What's hot (20)

PPT
Dreamforce '06 Keynote: Part 2
dreamforce2006
 
PPT
Crash Course in Salesforce Service and Support
dreamforce2006
 
PPT
Business Mashups Best of the Web APIs
dreamforce2006
 
PPT
Lower TCO and Higher ROI
dreamforce2006
 
PPT
Mobile AppExchange in the Field Great Apps at Work
dreamforce2006
 
PPT
Three Use Cases for Service & Support
dreamforce2006
 
PPT
Improving Customer Service with a Branded Self Service Portal
dreamforce2006
 
PPT
How Salesforce.com Uses Service & Support
dreamforce2006
 
PPT
Tips & Tricks for Building Advanced Workflow
dreamforce2006
 
PPT
How to Make Your Administrator Hat
dreamforce2006
 
PPT
AppExchange 101 - Building Custom Apps to Extend Salesforce
dreamforce2006
 
PPT
Extending Your CRM with World-Class Service and Support
dreamforce2006
 
PPT
Quote Management Made Easy Through Salesforce and the AppExchange
dreamforce2006
 
PPT
Next Generation Web Services
dreamforce2006
 
PPT
Salesforce PRM, Partner Edition Roadmap
dreamforce2006
 
PPT
Transforming the IT and Business Relationship with On-Demand
dreamforce2006
 
PPT
Running Your IT Helpdesk with Salesforce Service & Support
dreamforce2006
 
PPT
Demystifying S-Controls and AJAX
dreamforce2006
 
PPT
How to Make Change Management a Reality
dreamforce2006
 
PPT
Lead Distribution Programs to Optimize Channel Revenue Customer Panel
dreamforce2006
 
Dreamforce '06 Keynote: Part 2
dreamforce2006
 
Crash Course in Salesforce Service and Support
dreamforce2006
 
Business Mashups Best of the Web APIs
dreamforce2006
 
Lower TCO and Higher ROI
dreamforce2006
 
Mobile AppExchange in the Field Great Apps at Work
dreamforce2006
 
Three Use Cases for Service & Support
dreamforce2006
 
Improving Customer Service with a Branded Self Service Portal
dreamforce2006
 
How Salesforce.com Uses Service & Support
dreamforce2006
 
Tips & Tricks for Building Advanced Workflow
dreamforce2006
 
How to Make Your Administrator Hat
dreamforce2006
 
AppExchange 101 - Building Custom Apps to Extend Salesforce
dreamforce2006
 
Extending Your CRM with World-Class Service and Support
dreamforce2006
 
Quote Management Made Easy Through Salesforce and the AppExchange
dreamforce2006
 
Next Generation Web Services
dreamforce2006
 
Salesforce PRM, Partner Edition Roadmap
dreamforce2006
 
Transforming the IT and Business Relationship with On-Demand
dreamforce2006
 
Running Your IT Helpdesk with Salesforce Service & Support
dreamforce2006
 
Demystifying S-Controls and AJAX
dreamforce2006
 
How to Make Change Management a Reality
dreamforce2006
 
Lead Distribution Programs to Optimize Channel Revenue Customer Panel
dreamforce2006
 

Similar to Wielding Workflow (20)

PDF
Enterprise Integration - Solution Patterns From the Field
Salesforce Developers
 
PPT
Aen003 Rajaram 091707
Dreamforce07
 
PDF
Introducing salesforce shield - Paris Salesforce Developer Group - Oct 15
Paris Salesforce Developer Group
 
PPT
Next-Generation Native Apps
dreamforce2006
 
PPT
Meet Salesforce.com, Your New Employee: Automating Business Processes in the ...
Ross Bauer
 
PPT
Meet Salesforce, Your New Employee
dreamforce2006
 
PPT
Inside the Enterprise Case Studies of Customer Apps
dreamforce2006
 
PDF
Business Analyst -Claims-Management-System.pdf
shah1007yash
 
PDF
Business Analyst Case Study – CMS CMS Project – Scope to Impact Journey BA ...
shah1007yash
 
PPT
Environment & Release Management
elliando dias
 
PDF
TrailheaDX 2019 : Truly Asynchronous Apex Triggers using Change Data Capture
John Brock
 
PPT
Around the World in 100 Days a Global Deployment Case Study
dreamforce2006
 
PDF
Cutting Edge Mobile Development in the App Cloud
Salesforce Developers
 
PPT
Advanced Reporting and Dashboards for Executive Visibility
dreamforce2006
 
PPTX
Conducting a Large Admin Team by Andrew Wainacht & Judith Shimer
Salesforce Admins
 
PPTX
Event Driven Integrations
Deepu Chacko
 
PPTX
Navi Mumbai Salesforce DUG meetup on integration
Rakesh Gupta
 
PDF
Dallas user group February 20 2015
J Mo
 
PDF
Introduction to Force.com
Salesforce Developers
 
PDF
Df16 - Troubleshooting user access problems
Buyan Thyagarajan
 
Enterprise Integration - Solution Patterns From the Field
Salesforce Developers
 
Aen003 Rajaram 091707
Dreamforce07
 
Introducing salesforce shield - Paris Salesforce Developer Group - Oct 15
Paris Salesforce Developer Group
 
Next-Generation Native Apps
dreamforce2006
 
Meet Salesforce.com, Your New Employee: Automating Business Processes in the ...
Ross Bauer
 
Meet Salesforce, Your New Employee
dreamforce2006
 
Inside the Enterprise Case Studies of Customer Apps
dreamforce2006
 
Business Analyst -Claims-Management-System.pdf
shah1007yash
 
Business Analyst Case Study – CMS CMS Project – Scope to Impact Journey BA ...
shah1007yash
 
Environment & Release Management
elliando dias
 
TrailheaDX 2019 : Truly Asynchronous Apex Triggers using Change Data Capture
John Brock
 
Around the World in 100 Days a Global Deployment Case Study
dreamforce2006
 
Cutting Edge Mobile Development in the App Cloud
Salesforce Developers
 
Advanced Reporting and Dashboards for Executive Visibility
dreamforce2006
 
Conducting a Large Admin Team by Andrew Wainacht & Judith Shimer
Salesforce Admins
 
Event Driven Integrations
Deepu Chacko
 
Navi Mumbai Salesforce DUG meetup on integration
Rakesh Gupta
 
Dallas user group February 20 2015
J Mo
 
Introduction to Force.com
Salesforce Developers
 
Df16 - Troubleshooting user access problems
Buyan Thyagarajan
 
Ad

More from dreamforce2006 (19)

PPT
Why We Switched to Unlimited Edition Customer Panel
dreamforce2006
 
PPT
Trusted Reliability & Performance with the AppExchange Platform
dreamforce2006
 
PPT
Top Ten AppExchange Apps for Professional Edition
dreamforce2006
 
PPT
Tools to Increase Partner Adoption and Loyalty
dreamforce2006
 
PPT
The Mystery Is Solved Demystifying Integrations
dreamforce2006
 
PPT
Territory Management Made Simple
dreamforce2006
 
PPT
Success with Salesforce for Capital Markets
dreamforce2006
 
PPT
Sales ROI Benchmarking
dreamforce2006
 
PPT
Packaging It Up Latest Enhancements for App Distribution
dreamforce2006
 
PPT
Open It, Read It, Buy It Email Marketing with the AppExchange
dreamforce2006
 
PPT
Meet the Product Managers
dreamforce2006
 
PPT
Manage What You Measure Lessons from Dashboard Pros
dreamforce2006
 
PPT
Leveraging Your Customer Service Function to Drive Sales
dreamforce2006
 
PPT
IT Success with the Winter '07 Release Platform Overview
dreamforce2006
 
PPT
Introducing Analytics Mash-ups
dreamforce2006
 
PPT
Integrating Salesforce and QuickBooks
dreamforce2006
 
PPT
Instant Stardom How to Build Executive Dashboards
dreamforce2006
 
PPT
Information Peer Pressure
dreamforce2006
 
PPT
Improving Productivity with Outlook and Notes Integration
dreamforce2006
 
Why We Switched to Unlimited Edition Customer Panel
dreamforce2006
 
Trusted Reliability & Performance with the AppExchange Platform
dreamforce2006
 
Top Ten AppExchange Apps for Professional Edition
dreamforce2006
 
Tools to Increase Partner Adoption and Loyalty
dreamforce2006
 
The Mystery Is Solved Demystifying Integrations
dreamforce2006
 
Territory Management Made Simple
dreamforce2006
 
Success with Salesforce for Capital Markets
dreamforce2006
 
Sales ROI Benchmarking
dreamforce2006
 
Packaging It Up Latest Enhancements for App Distribution
dreamforce2006
 
Open It, Read It, Buy It Email Marketing with the AppExchange
dreamforce2006
 
Meet the Product Managers
dreamforce2006
 
Manage What You Measure Lessons from Dashboard Pros
dreamforce2006
 
Leveraging Your Customer Service Function to Drive Sales
dreamforce2006
 
IT Success with the Winter '07 Release Platform Overview
dreamforce2006
 
Introducing Analytics Mash-ups
dreamforce2006
 
Integrating Salesforce and QuickBooks
dreamforce2006
 
Instant Stardom How to Build Executive Dashboards
dreamforce2006
 
Information Peer Pressure
dreamforce2006
 
Improving Productivity with Outlook and Notes Integration
dreamforce2006
 
Ad

Recently uploaded (20)

DOCX
The Political Era of Accountability: A Reflection on South Africa's Past Self...
Matthews Bantsijang
 
PPTX
Introduction of Derivatives.pptx dwqdddff
XMenJEAN
 
PDF
The Future of Electricity Regulation in South Africa by Matthews Mooketsane B...
Matthews Bantsijang
 
PPT
Public Budgeting and Finance for public sector.ppt
salmansamir2
 
PPTX
Mastering-Full-Stack-Web-Development-An-NIELIT-Perspective.pptx
VedprakashArya13
 
PPTX
办理加利福尼亚大学圣芭芭拉分校文凭|购买UCSB毕业证录取通知书学位证书
1cz3lou8
 
PDF
Pyramid_of_Financial_Priorities_Part2_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPT
The reporting entity and financial statements
Adugna37
 
PPTX
FFD4_From Insight to Impact_TaxDev_ICTD_IISD.pptx
International Centre for Tax and Development - ICTD
 
PPTX
Commercial Bank Economic Capsule - July 2025
Commercial Bank of Ceylon PLC
 
PDF
STEM Education in Rural Maharashtra by Abhay Bhutada Foundation
Heera Yadav
 
PPTX
Internal-Controls powerpoint presentation
GamePro14
 
PDF
How To Trade Stocks deriv.com by Vince Stanzione
Vince Stanzione
 
PPTX
Session 1 FTP 2023 25th June 25 TRADE FINANCE
NarinderKumarBhasin
 
PDF
DC-Decumulation-Report-FV (1).pdf PI informatin
Henry Tapper
 
PPTX
MUSIC & ARTS 8 Quarter 1 Day 1 - EXPLORING EARLY PHILIPPINE MUSIC AND ARTS AC...
JhezabelLacno1
 
PDF
2025 Mid-year Budget Review_SPEECH_FINAL_23ndJuly2025_v5.pdf
JeorgeWilsonKingson1
 
PDF
Why Superstitions Still Influence Daily Life in the 21st Century
Harsh Mishra
 
PDF
EPF.PDF ghkvsdnkkxafhjbvcxvuhv ghghhhdsghhhhhhh
Satish Sathyameva Jayathe
 
The Political Era of Accountability: A Reflection on South Africa's Past Self...
Matthews Bantsijang
 
Introduction of Derivatives.pptx dwqdddff
XMenJEAN
 
The Future of Electricity Regulation in South Africa by Matthews Mooketsane B...
Matthews Bantsijang
 
Public Budgeting and Finance for public sector.ppt
salmansamir2
 
Mastering-Full-Stack-Web-Development-An-NIELIT-Perspective.pptx
VedprakashArya13
 
办理加利福尼亚大学圣芭芭拉分校文凭|购买UCSB毕业证录取通知书学位证书
1cz3lou8
 
Pyramid_of_Financial_Priorities_Part2_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
The reporting entity and financial statements
Adugna37
 
FFD4_From Insight to Impact_TaxDev_ICTD_IISD.pptx
International Centre for Tax and Development - ICTD
 
Commercial Bank Economic Capsule - July 2025
Commercial Bank of Ceylon PLC
 
STEM Education in Rural Maharashtra by Abhay Bhutada Foundation
Heera Yadav
 
Internal-Controls powerpoint presentation
GamePro14
 
How To Trade Stocks deriv.com by Vince Stanzione
Vince Stanzione
 
Session 1 FTP 2023 25th June 25 TRADE FINANCE
NarinderKumarBhasin
 
DC-Decumulation-Report-FV (1).pdf PI informatin
Henry Tapper
 
MUSIC & ARTS 8 Quarter 1 Day 1 - EXPLORING EARLY PHILIPPINE MUSIC AND ARTS AC...
JhezabelLacno1
 
2025 Mid-year Budget Review_SPEECH_FINAL_23ndJuly2025_v5.pdf
JeorgeWilsonKingson1
 
Why Superstitions Still Influence Daily Life in the 21st Century
Harsh Mishra
 
EPF.PDF ghkvsdnkkxafhjbvcxvuhv ghghhhdsghhhhhhh
Satish Sathyameva Jayathe
 

Wielding Workflow

  • 1. Wielding Workflow Varadarajan Rajaram, Salesforce.com Track: Advanced AppExchange Developers
  • 2. Safe Harbor Statement “ Safe harbor” statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements the achievement of which involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions proves incorrect, our results could differ materially from the results expressed or implied by the forward-looking statements we make.  All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include - but are not limited to - risks associated with the integration of Sendia Corporation’s technology, operations, infrastructure and personnel with ours; unexpected costs or delays incurred in integrating Sendia with salesforce.com, which could adversely affect our operating results and rate of growth; any unknown errors or limitations in the Sendia technology; any third party intellectual property claims arising from the Sendia technology; customer and partner acceptance and deployment of the AppExchange and AppExchange Mobile platforms; interruptions or delays in our service or our Web hosting; our new business model; breach of our security measures; possible fluctuations in our operating results and rate of growth; the emerging market in which we operate; our relatively limited operating history; our ability to hire, retain and motivate our employees and manage our growth; competition; our ability to continue to release and gain customer acceptance of new and improved versions of our CRM service; unanticipated changes in our effective tax rate; fluctuations in the number of shares outstanding; the price of such shares; foreign currency exchange rates and interest rates. Further information on these and other factors that could affect our financial results is included in the reports on Forms 10-K, 10-Q and 8-K and in other filings we make with the Securities and Exchange Commission from time to time, including our Form 10-K for the fiscal year ended January 31, 2006. These documents are available on the SEC Filings section of the Investor Information section of our website at www.salesforce.com/investor . Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all.  Customers who purchase our services should make purchase decisions based upon features that are currently available.  Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements, except as required by law.
  • 3. Agenda Introduction Winter ‘07 Workflow – What’s new? Focus on approvals Q&A – Approvals API
  • 4. Definition Workflow enables the automation of a business process, in while or part within your organization – from sales, to service, to HR, to finance. It enforces a process within your organization which is consistently followed and improves efficiency and productivity.
  • 5. Current Workflow Capabilities (Pre Winter ’07) Automated notification Review current discount policies on Opportunities Follow up on Cases for Platinum Customers Limited action types Email Alerts Create Tasks
  • 6. Winter ’07 Workflow Capabilities Automate your business processes Field Updates, Outbound Messages, Approvals Enforce business processes Lock down Opportunities when it is closed Improve customer satisfaction Initiate a customer survey as soon as a Platinum customer case is closed Improved data quality Store only the last 4 digits of the SSN
  • 7. Winter ’07 Workflow Capabilities Approval process automation Simple and complex multi-step processes Supported in the API Eliminate laborious manual processes Automate and eliminate your paper-based PTO requests Control business processes Discount policy controls – Enforce approvals on large discounts Campaign spending controls – Force approvals on costly campaigns
  • 9. Field Update Action Automatically change the value in a field as a result of a workflow trigger, including owner and record type!
  • 10. Outbound Message Action Send a customizable XML message to any desired Web-available listener. No more polling for changes! Can be used to automate updates to dependent records! Gain automated asynchronous integration with external systems
  • 11. Other Workflow Enhancements Workflow rule limit increased from 50 to 300 per object More standard objects supported Opportunity Product Order Product Advanced “or” filters New filter options Current user Special date values – Next X days, Last Week etc
  • 12. Approval Process Automation Define simple or multi-step approval processes for any object Specify actions at each step of process Send approval requests to a queue Define one or more user hierarchies for approval request routing
  • 15. Anatomy of an Approval Process Process Definition (Global Characteristics) Entry Criteria Email Template Sent to Approvers Record Editability During Approval Approval Page Layout Approval Page Accessibility Allowed Submitters
  • 16. Anatomy of an Approval Process Initial Submission Actions (Workflow Actions) Lock the Record Change Field Values Send Notification
  • 17. Anatomy of an Approval Process Step Definition (Decision Criteria & Approval Assignment) (1+) Optional Decision Criteria Auto-Approve / Reject Assign Approver Allow Delegated Approval? Rejection Behavior
  • 18. Anatomy of an Approval Process Final Rejection Actions (Workflow Actions) Unlock Record Change Field Values Send Notification
  • 19. Anatomy of an Approval Process Final Approval Actions (Workflow Actions) Keep Record Locked Change Field Values Send Notification Integrate w/ External System
  • 20. PTO Request – The Finished Product
  • 21. Summary of Key Features New Workflow Action: Field Update – Automatically change the value in a field as a result of a workflow trigger, including owner and record type! Use Formula Editor wherever applicable to derive value from other fields, expressions, or values. New Workflow Action: Outbound API Message – Send a customizable XML message to any desired Web-available listener. No more polling for changes! Use it to update dependent records Approval Process Automation – Create simple or multi-step approval processes to automate and enforce the approval of virtually anything in your company, from sales discount requests, to expense reports, to vacation requests.
  • 22. Varadarajan Rajaram Sr. Product Manager QUESTION & ANSWER Salesforce.com Steve Tamm Technical Architect Salesforce.com
  • 23. Approvals API New API – process Syntax ProcessResult[] = sfdc.process([ProcessRequest[]) ProcessRequest ProcessSubmitRequest: Submit a record for approval ProcessWorkitemRequest: Approve or Reject an approval request
  • 24. Approvals API Access to approval history and requests through new objects ProcessInstanceStep The contents of the approval history for a given approval process. ProcessInstanceWorkitem The current approval requests assigned to a user Update this record to reassign workitems.
  • 25. Approvals API - ProcessRequest Name Type Description objectId ID For submitting an item for Approval, can be the ID of any record with approval processes defined. workitemId ID For submitting an item for processing after approval, the Id of the ProcessInstanceWorkitem. action String For approving or rejecting a workitem for processing, a string representing the kind of action to take: Approve, Reject, or Remove. nextActorIds String[] If the approval request requires the user to select the approver, specify the user ID of the next approver here comments String Any comments to be stored with the approval action in the approval history
  • 26. Approvals API – ProcessResult Name Type Description entityId ID Object being processed Errors Error[] Set of errors instanceId ID The ID of the ProcessInstance InstanceStatus String The status of the current process instance: “Approved,” “Rejected,” “Removed,” “Started,” or “Pending” newWorkitemIds ID[] The IDs of the newly created approval requests, if any Success boolean “ True” if the approval completed successfully
  • 27. Sample Code public ProcessResult[] doProcessSample(String comments, String id, String[] approverIds) throws ApiFault {         ProcessResult[] processResults;         ProcessSubmitRequest request = new ProcessSubmitRequest();         request.setComments(comments);         request.setNextApproverIds(approverIds);         request.setObjectId(id);         try {             PartnerConnection connection = Connector.newConnection(xconfig);             //calling process on the approval submission             processResults = connection.process(new ProcessSubmitRequest[]{request});             for (ProcessResult processResult : processResults) {                     if(processResult.getSuccess()){                         if(xconfig.isTraceMessage()){                             log.debug("Approval submitted for: " + id + ", approverIds: " + approverIds.toString() + " successful.");                             log.debug("Process Instance Status: " + processResult.getInstanceStatus());                          }                     } else{                         log.error("Approval submitted for: " + id + ", approverIds: " + approverIds.toString() + " FAILED.");                         log.error("ERRORS: " + processResult.getErrors().toString());                      }             }         } catch (ConnectionException ce) {             ApiFault fault = getApiFault(ce);             ce.printStackTrace();             throw fault;         }         return processResults;     }
  • 28. Additional Resources “ Tips and Tricks for Advanced Workflow” Tuesday 3:45PM See how 144 Workflow helps Deutsche Bank reduce costs and increase efficiency Join ADN! http://www.salesforce.com/developer Documents, toolkits, discussion boards and more!
  • 29. Session Feedback Let us know how we’re doing! Please score the session from 5 to 1 (5=excellent,1=needs improvement) on the following categories: Overall rating of the session Quality of content Strength of presentation delivery Relevance of the session to your organization Save time! Use your cell phone or mobile device to send Feedback via SMS/Text Messaging! Send a message to 26335 In the message body: Session 239, #### For example, “ Session 123, 5555 ” Session ID: 239 Session ID # Scores for 4 categories SMS Voting powered by: