SlideShare a Scribd company logo
Chaining Approval Processes with 
Apex Code 
ASendniroerin Say Msteemnd Bozuasiness Analyst @AndreinaMend17 Scott Coleman 
Senior Software Application Engineer 
@scottsalesforce
Andreina Mendoza 
Senior System Business Analyst
Scott Coleman 
Senior Software Applications Engineer
Agenda 
•Overview 
•Use Case: Chaining 2 Approval Processes 
–Business Problem / Solution 
–Demo 
•Use Case: Content Approval Process 
–Business Problem / Solution 
–Demo 
•Q & A
Overview 
•Why are Approval Processes important? 
•Challenges when building an Approval Process 
•Apex Code will add more flexibility and power
Chaining 2 Approval Processes using 
Apex Code
Use Case: Chaining 2 Approval Processes 
Business Need / Problem 
•Red Hat Presales Engineers need to have access to free software when they need 
to built a Proof of Concept for a customer
Use Case: Chaining 2 Approval Processes 
Business Flow 
1st Approval Process 
NA Region – Final Step 
1st Approval Process 
APAC Region – Final Step 
1st Approval Process 
EMEA Region – Final Step 
1st Approval Process 
LATAM Region – Final Step 
Do this POC Opportunity 
Needs BU Approval? 
2nd Approval Process 
Business Unit 
Opportunity Status 
Set to Pending BU Approval 
YES 
POC Approved 
NO 
Approved? 
POC Rejected 
YES 
NO
Use Case: Chaining 2 Approval Processes 
•Code samples: http://gist.github.com/scottsalesforce 
•ChainPOCApprovals.trigger
Use Case: Chaining 2 Approval Processes 
What else can you do? 
•Chain Approval Processes across multiple records and objects 
•Implement child processes that run while the parent process waits
SFDC Content Approval Process
Use Case: SFDC Content Approval Process 
Business Need / Problem 
•Technical Engineers within Red Hat need the ability to add Content to a Technical 
Library, that is available to Red Hat Partners
Use Case: SFDC Content Approval Process 
Business Flow 
Technical Engineer Upload 
Document and Save 
Global Marketing Receive 
Notification – Approval 
Process Begins 
Contributed 
Content Approved 
Contributed Content 
Rejected 
Contributed 
Content Record ‘s 
attachment 
Submit for 
Approval 
SFDC CRM 
Content Record 
Published 
Contributed 
Content Record 
YES 
Approved? 
NO
Use Case: SFDC Content Approval Process 
•Code samples: http://gist.github.com/scottsalesforce 
•ContentTechnicalContributions.class 
•PublishContributedContent.trigger
Use Case: SFDC Content Approval Process 
What else can you do? 
•Use Custom Object as proxy for Standard Objects in Approval Processes 
•When the Standard Object does not support approvals 
•When you want to avoid locking the main record 
•Submit for Approval using Apex can be used with many different objects 
•Upon approval you can easily trigger other changes in the system 
•Creation of records 
•Update to records even when there is no pre-existing relationship
Andreina Mendoza 
•@AndreinaMend17 
Scott Coleman 
•@scottsalesforce 
Chatter Feed 
•https://success.salesforce.com/Ev_Sessions#/session/ 
a2q30000000guoWAAQ 
Resources 
Processing with Apex 
•https://www.salesforce.com/us/developer/docs/ape 
xcode/Content/apex_process.htm 
Approval Class 
•https://www.salesforce.com/us/developer/docs/ape 
xcode/Content/apex_methods_system_approval.ht 
m 
Code Samples 
•https://gist.github.com/scottsalesforce
Dreamforce - Chaining Approval Processes with Apex Code

More Related Content

What's hot

ATAGTR2017 What Lies Beneath Robotics Process Automation
ATAGTR2017 What Lies Beneath Robotics Process AutomationATAGTR2017 What Lies Beneath Robotics Process Automation
ATAGTR2017 What Lies Beneath Robotics Process Automation
Agile Testing Alliance
 
OSMC 2013 | The future of Nagios by Andreas Ericsson
OSMC 2013 | The future of Nagios by Andreas EricssonOSMC 2013 | The future of Nagios by Andreas Ericsson
OSMC 2013 | The future of Nagios by Andreas Ericsson
NETWAYS
 
ITAM Review Oracle Seminar NY Levy LeGette Presentation
ITAM Review Oracle Seminar NY Levy LeGette PresentationITAM Review Oracle Seminar NY Levy LeGette Presentation
ITAM Review Oracle Seminar NY Levy LeGette Presentation
Martin Thompson
 
WiKi Based Automation Testing: Fitness & DevOps
WiKi Based Automation Testing: Fitness & DevOpsWiKi Based Automation Testing: Fitness & DevOps
WiKi Based Automation Testing: Fitness & DevOps
Agile Testing Alliance
 
Think Cloud, Develop Locally
Think Cloud, Develop LocallyThink Cloud, Develop Locally
Think Cloud, Develop Locally
All Things Open
 
Visual studio 2015 - Application Insights
Visual studio 2015 - Application InsightsVisual studio 2015 - Application Insights
Visual studio 2015 - Application Insights
Delta-N
 
Scrum and TFS
Scrum and TFSScrum and TFS
Scrum and TFS
Nishanth K Hydru
 
Streamline Workflows Using Salesforce Process builder
Streamline Workflows Using Salesforce Process builderStreamline Workflows Using Salesforce Process builder
Streamline Workflows Using Salesforce Process builder
Suyati Technologies
 
Test Armada Sauce Labs
Test Armada Sauce LabsTest Armada Sauce Labs
Test Armada Sauce Labs
Test Armada
 
ATAGTR2017 Analytics Testing
ATAGTR2017 Analytics TestingATAGTR2017 Analytics Testing
ATAGTR2017 Analytics Testing
Agile Testing Alliance
 
Test armada integration with sauce labs
Test armada integration with sauce labsTest armada integration with sauce labs
Test armada integration with sauce labs
Test Armada
 
Must have tools for SharePoint
Must have tools for SharePointMust have tools for SharePoint
Must have tools for SharePoint
Alistair Pugin
 
Continuous delivering serverless applications in the pipeline: indispensable ...
Continuous delivering serverless applications in the pipeline: indispensable ...Continuous delivering serverless applications in the pipeline: indispensable ...
Continuous delivering serverless applications in the pipeline: indispensable ...
Codemotion
 
Info Card - Techical Debt Management
Info Card  - Techical Debt ManagementInfo Card  - Techical Debt Management
Info Card - Techical Debt Management
Fabricio Epaminondas
 
rpa tools
rpa toolsrpa tools
rpa tools
Anne Starr
 
IT Change Management Using JIRA
IT Change Management Using JIRAIT Change Management Using JIRA
IT Change Management Using JIRA
Atlassian
 
Turn Performance Testing up to 11
Turn Performance Testing up to 11Turn Performance Testing up to 11
Turn Performance Testing up to 11
Eggplant
 
Verification for system companies (LI) - value proposition
Verification for system companies (LI) - value propositionVerification for system companies (LI) - value proposition
Verification for system companies (LI) - value proposition
Hagai Arbel
 
ATAGTR2017 An Innovative Take on Versa Test
ATAGTR2017 An Innovative Take on Versa TestATAGTR2017 An Innovative Take on Versa Test
ATAGTR2017 An Innovative Take on Versa Test
Agile Testing Alliance
 
Quality automation at walmart scale
Quality automation at walmart scaleQuality automation at walmart scale
Quality automation at walmart scale
Test Armada
 

What's hot (20)

ATAGTR2017 What Lies Beneath Robotics Process Automation
ATAGTR2017 What Lies Beneath Robotics Process AutomationATAGTR2017 What Lies Beneath Robotics Process Automation
ATAGTR2017 What Lies Beneath Robotics Process Automation
 
OSMC 2013 | The future of Nagios by Andreas Ericsson
OSMC 2013 | The future of Nagios by Andreas EricssonOSMC 2013 | The future of Nagios by Andreas Ericsson
OSMC 2013 | The future of Nagios by Andreas Ericsson
 
ITAM Review Oracle Seminar NY Levy LeGette Presentation
ITAM Review Oracle Seminar NY Levy LeGette PresentationITAM Review Oracle Seminar NY Levy LeGette Presentation
ITAM Review Oracle Seminar NY Levy LeGette Presentation
 
WiKi Based Automation Testing: Fitness & DevOps
WiKi Based Automation Testing: Fitness & DevOpsWiKi Based Automation Testing: Fitness & DevOps
WiKi Based Automation Testing: Fitness & DevOps
 
Think Cloud, Develop Locally
Think Cloud, Develop LocallyThink Cloud, Develop Locally
Think Cloud, Develop Locally
 
Visual studio 2015 - Application Insights
Visual studio 2015 - Application InsightsVisual studio 2015 - Application Insights
Visual studio 2015 - Application Insights
 
Scrum and TFS
Scrum and TFSScrum and TFS
Scrum and TFS
 
Streamline Workflows Using Salesforce Process builder
Streamline Workflows Using Salesforce Process builderStreamline Workflows Using Salesforce Process builder
Streamline Workflows Using Salesforce Process builder
 
Test Armada Sauce Labs
Test Armada Sauce LabsTest Armada Sauce Labs
Test Armada Sauce Labs
 
ATAGTR2017 Analytics Testing
ATAGTR2017 Analytics TestingATAGTR2017 Analytics Testing
ATAGTR2017 Analytics Testing
 
Test armada integration with sauce labs
Test armada integration with sauce labsTest armada integration with sauce labs
Test armada integration with sauce labs
 
Must have tools for SharePoint
Must have tools for SharePointMust have tools for SharePoint
Must have tools for SharePoint
 
Continuous delivering serverless applications in the pipeline: indispensable ...
Continuous delivering serverless applications in the pipeline: indispensable ...Continuous delivering serverless applications in the pipeline: indispensable ...
Continuous delivering serverless applications in the pipeline: indispensable ...
 
Info Card - Techical Debt Management
Info Card  - Techical Debt ManagementInfo Card  - Techical Debt Management
Info Card - Techical Debt Management
 
rpa tools
rpa toolsrpa tools
rpa tools
 
IT Change Management Using JIRA
IT Change Management Using JIRAIT Change Management Using JIRA
IT Change Management Using JIRA
 
Turn Performance Testing up to 11
Turn Performance Testing up to 11Turn Performance Testing up to 11
Turn Performance Testing up to 11
 
Verification for system companies (LI) - value proposition
Verification for system companies (LI) - value propositionVerification for system companies (LI) - value proposition
Verification for system companies (LI) - value proposition
 
ATAGTR2017 An Innovative Take on Versa Test
ATAGTR2017 An Innovative Take on Versa TestATAGTR2017 An Innovative Take on Versa Test
ATAGTR2017 An Innovative Take on Versa Test
 
Quality automation at walmart scale
Quality automation at walmart scaleQuality automation at walmart scale
Quality automation at walmart scale
 

Similar to Dreamforce - Chaining Approval Processes with Apex Code

Df14 Salesforce Advanced Developer Certification
Df14 Salesforce Advanced Developer CertificationDf14 Salesforce Advanced Developer Certification
Df14 Salesforce Advanced Developer Certification
Peter Chittum
 
COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...
COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...
COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...
Jade Global
 
Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...
Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...
Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...
Synergis Engineering Design Solutions
 
Discovering New Product Introduction (NPI) using Autodesk Fusion Lifecycle
Discovering New Product Introduction (NPI) using Autodesk Fusion LifecycleDiscovering New Product Introduction (NPI) using Autodesk Fusion Lifecycle
Discovering New Product Introduction (NPI) using Autodesk Fusion Lifecycle
Razorleaf Corporation
 
Virtual Dreamin Salesforce DevOps Top 10
Virtual Dreamin Salesforce DevOps Top 10Virtual Dreamin Salesforce DevOps Top 10
Virtual Dreamin Salesforce DevOps Top 10
Richard Clark
 
Good IT Project Management
Good IT Project Management Good IT Project Management
Good IT Project Management
William Francis
 
JDA: Building an Open Source Center of Excellence
JDA: Building an Open Source Center of ExcellenceJDA: Building an Open Source Center of Excellence
JDA: Building an Open Source Center of Excellence
Black Duck by Synopsys
 
Making the Move to Behavior-Driven Development
Making the Move to Behavior-Driven DevelopmentMaking the Move to Behavior-Driven Development
Making the Move to Behavior-Driven Development
TechWell
 
Acceptance Test Driven Development
Acceptance Test Driven DevelopmentAcceptance Test Driven Development
Acceptance Test Driven Development
Mike Douglas
 
IT NPI Process
IT NPI ProcessIT NPI Process
IT NPI Process
William Francis
 
GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...
GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...
GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...
ennVee TechnoGroup Inc
 
Pm training day 3
Pm training   day 3Pm training   day 3
Best practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementationBest practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementation
Feras Ahmad
 
20 best practices for fusion hcm cloud implementation
20   best practices for fusion hcm cloud implementation20   best practices for fusion hcm cloud implementation
20 best practices for fusion hcm cloud implementation
mohamed refaei
 
Bdf16 big-data-warehouse-case-study-data kitchen
Bdf16 big-data-warehouse-case-study-data kitchenBdf16 big-data-warehouse-case-study-data kitchen
Bdf16 big-data-warehouse-case-study-data kitchen
Christopher Bergh
 
Fishbowl's Packaged Tools for WebCenter Automation
Fishbowl's Packaged Tools for WebCenter AutomationFishbowl's Packaged Tools for WebCenter Automation
Fishbowl's Packaged Tools for WebCenter Automation
Fishbowl Solutions
 
Product Development
Product DevelopmentProduct Development
Product Development
John Gibbon
 
Cloud and Network Transformation using DevOps methodology : Cisco Live 2015
Cloud and Network Transformation using DevOps methodology : Cisco Live 2015Cloud and Network Transformation using DevOps methodology : Cisco Live 2015
Cloud and Network Transformation using DevOps methodology : Cisco Live 2015
Vimal Suba
 
Agile Software Development
Agile Software DevelopmentAgile Software Development
Agile Software Development
Synerzip
 
Synerzip Agile Software Development
Synerzip Agile Software DevelopmentSynerzip Agile Software Development
Synerzip Agile Software Development
Synerzip
 

Similar to Dreamforce - Chaining Approval Processes with Apex Code (20)

Df14 Salesforce Advanced Developer Certification
Df14 Salesforce Advanced Developer CertificationDf14 Salesforce Advanced Developer Certification
Df14 Salesforce Advanced Developer Certification
 
COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...
COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...
COLLABORATE 18 Presentation: Success Story- Cloud Product Information Managem...
 
Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...
Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...
Discovering New Product Introduction using Autodesk PLM 360 – Rodney Coffey, ...
 
Discovering New Product Introduction (NPI) using Autodesk Fusion Lifecycle
Discovering New Product Introduction (NPI) using Autodesk Fusion LifecycleDiscovering New Product Introduction (NPI) using Autodesk Fusion Lifecycle
Discovering New Product Introduction (NPI) using Autodesk Fusion Lifecycle
 
Virtual Dreamin Salesforce DevOps Top 10
Virtual Dreamin Salesforce DevOps Top 10Virtual Dreamin Salesforce DevOps Top 10
Virtual Dreamin Salesforce DevOps Top 10
 
Good IT Project Management
Good IT Project Management Good IT Project Management
Good IT Project Management
 
JDA: Building an Open Source Center of Excellence
JDA: Building an Open Source Center of ExcellenceJDA: Building an Open Source Center of Excellence
JDA: Building an Open Source Center of Excellence
 
Making the Move to Behavior-Driven Development
Making the Move to Behavior-Driven DevelopmentMaking the Move to Behavior-Driven Development
Making the Move to Behavior-Driven Development
 
Acceptance Test Driven Development
Acceptance Test Driven DevelopmentAcceptance Test Driven Development
Acceptance Test Driven Development
 
IT NPI Process
IT NPI ProcessIT NPI Process
IT NPI Process
 
GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...
GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...
GLOC 2018: Automation or How We Eliminated Manual EBS R12.2 Upgrades and Beca...
 
Pm training day 3
Pm training   day 3Pm training   day 3
Pm training day 3
 
Best practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementationBest practices for fusion hcm cloud implementation
Best practices for fusion hcm cloud implementation
 
20 best practices for fusion hcm cloud implementation
20   best practices for fusion hcm cloud implementation20   best practices for fusion hcm cloud implementation
20 best practices for fusion hcm cloud implementation
 
Bdf16 big-data-warehouse-case-study-data kitchen
Bdf16 big-data-warehouse-case-study-data kitchenBdf16 big-data-warehouse-case-study-data kitchen
Bdf16 big-data-warehouse-case-study-data kitchen
 
Fishbowl's Packaged Tools for WebCenter Automation
Fishbowl's Packaged Tools for WebCenter AutomationFishbowl's Packaged Tools for WebCenter Automation
Fishbowl's Packaged Tools for WebCenter Automation
 
Product Development
Product DevelopmentProduct Development
Product Development
 
Cloud and Network Transformation using DevOps methodology : Cisco Live 2015
Cloud and Network Transformation using DevOps methodology : Cisco Live 2015Cloud and Network Transformation using DevOps methodology : Cisco Live 2015
Cloud and Network Transformation using DevOps methodology : Cisco Live 2015
 
Agile Software Development
Agile Software DevelopmentAgile Software Development
Agile Software Development
 
Synerzip Agile Software Development
Synerzip Agile Software DevelopmentSynerzip Agile Software Development
Synerzip Agile Software Development
 

Recently uploaded

Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Tatiana Kojar
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
maazsz111
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 

Recently uploaded (20)

Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 

Dreamforce - Chaining Approval Processes with Apex Code

  • 1. Chaining Approval Processes with Apex Code ASendniroerin Say Msteemnd Bozuasiness Analyst @AndreinaMend17 Scott Coleman Senior Software Application Engineer @scottsalesforce
  • 2. Andreina Mendoza Senior System Business Analyst
  • 3. Scott Coleman Senior Software Applications Engineer
  • 4. Agenda •Overview •Use Case: Chaining 2 Approval Processes –Business Problem / Solution –Demo •Use Case: Content Approval Process –Business Problem / Solution –Demo •Q & A
  • 5. Overview •Why are Approval Processes important? •Challenges when building an Approval Process •Apex Code will add more flexibility and power
  • 6. Chaining 2 Approval Processes using Apex Code
  • 7. Use Case: Chaining 2 Approval Processes Business Need / Problem •Red Hat Presales Engineers need to have access to free software when they need to built a Proof of Concept for a customer
  • 8. Use Case: Chaining 2 Approval Processes Business Flow 1st Approval Process NA Region – Final Step 1st Approval Process APAC Region – Final Step 1st Approval Process EMEA Region – Final Step 1st Approval Process LATAM Region – Final Step Do this POC Opportunity Needs BU Approval? 2nd Approval Process Business Unit Opportunity Status Set to Pending BU Approval YES POC Approved NO Approved? POC Rejected YES NO
  • 9. Use Case: Chaining 2 Approval Processes •Code samples: http://gist.github.com/scottsalesforce •ChainPOCApprovals.trigger
  • 10. Use Case: Chaining 2 Approval Processes What else can you do? •Chain Approval Processes across multiple records and objects •Implement child processes that run while the parent process waits
  • 12. Use Case: SFDC Content Approval Process Business Need / Problem •Technical Engineers within Red Hat need the ability to add Content to a Technical Library, that is available to Red Hat Partners
  • 13. Use Case: SFDC Content Approval Process Business Flow Technical Engineer Upload Document and Save Global Marketing Receive Notification – Approval Process Begins Contributed Content Approved Contributed Content Rejected Contributed Content Record ‘s attachment Submit for Approval SFDC CRM Content Record Published Contributed Content Record YES Approved? NO
  • 14. Use Case: SFDC Content Approval Process •Code samples: http://gist.github.com/scottsalesforce •ContentTechnicalContributions.class •PublishContributedContent.trigger
  • 15. Use Case: SFDC Content Approval Process What else can you do? •Use Custom Object as proxy for Standard Objects in Approval Processes •When the Standard Object does not support approvals •When you want to avoid locking the main record •Submit for Approval using Apex can be used with many different objects •Upon approval you can easily trigger other changes in the system •Creation of records •Update to records even when there is no pre-existing relationship
  • 16. Andreina Mendoza •@AndreinaMend17 Scott Coleman •@scottsalesforce Chatter Feed •https://success.salesforce.com/Ev_Sessions#/session/ a2q30000000guoWAAQ Resources Processing with Apex •https://www.salesforce.com/us/developer/docs/ape xcode/Content/apex_process.htm Approval Class •https://www.salesforce.com/us/developer/docs/ape xcode/Content/apex_methods_system_approval.ht m Code Samples •https://gist.github.com/scottsalesforce