SlideShare a Scribd company logo
Weird sObjects
PRESENTATION BY DIRK KEATON
FOR MORE SALESFORCE TRAINING, FOLLOW ON LINKEDIN
Our Goals
Name new sObjects
Explore and Discuss Object Reference
Create flow accessing these objects
SObjects are Everywhere
“NORMAL” SOBJECTS
Task
Contact
Account
In the object manager
“WEIRD” SOBJECTS
Task Relation-Connects Accounts to Tasks
Contact Share-Created when a Contact is
Manually Shared with a User
Account History-Records changes to the
account object
Accessed through flow, apex, reports
It can get
silly:
What will our flow do?
Our flow is designed for an org with private sharing for accounts. When accounts are private a
person may be assigned a task related to an account that they can’t see.
Our flow addresses this problem. When a task is created, it will share all accounts related to the
task to the person who the task is assigned to.
Setting up
Under activity settings, allow users to relate multiple contacts to tasks and events
Under sharing settings,
make account sharing private:
Build a record triggered flow
Begin by choosing an object
Click choose object
Then choose task
Set the flow to “trigger”
when a record is created or
updated
Add a decision element
If you try to share an account
with yourself, you’ll trigger an
error that will stop the flow. To
avoid this, add a decision
element.
{!$Record.OwnerId} Does not
Equal {!$Record.CreatedById}
Getting the People from the Task
A standard whoid won’t work if there’s more
than one person on the task.
We need a weird subject—we need to go to
the object reference.
Immediately there are two candidates:
TaskRelation and TaskWhoRelation
The Refence includes
A list of fields
A code block (usually Apex) and links to
related sObjects
GetTaskrelations
Make the TaskId equal to
$Record.activityid
We select activity because all
tasks are activities.
Select all records (so we can
capture everyone added)
Create a loop
Loop through the collection variable you
created.
Connect your get records element
Make sure to connect your get records
element to the “not equal to creator” path.
You do not need to connect anything to
default outcome
Create a New Variable
Name it AccountShareExample
Make sure the record it targets is
AccountShare
Select the following options
Contactshare.contactid equals
Loop_Through_Relations.RelationId
ContactShare.UserOrGroupId
equals $Record.AssignedToId
We have to give the account and
opportunity read access
Create another variable
Call it ShareCollector
Allow multiple values so it can be a
a collection variable for
AccountShares
Adding to the collection
Choose share collector as the variable
Select the “add” operator. Then, select
ContactShareExample
You may get an error or the system may try to
add a field name after {!ContactShare} Ignore
it and do not include a period. Click “outside”
the box to ignore it.
Add a create records element
Choose multiple
Select ShareCollector as your values
Activate your flow and test it!
Take this contact, for example.
Our test user has no access.
Create the task
Make sure to include a person who the test
user doesn’t have access to
Assign it to them.
They now have full access!

More Related Content

Similar to Weird sObjects.pptx

Primavera - Tutorial
Primavera - TutorialPrimavera - Tutorial
Primavera - Tutorial
Rajeev Sharma
 
Object Oriented PHP - PART-1
Object Oriented PHP - PART-1Object Oriented PHP - PART-1
Object Oriented PHP - PART-1
Jalpesh Vasa
 
Ivanti Cheat Sheet by Traversys Limited
Ivanti Cheat Sheet by Traversys LimitedIvanti Cheat Sheet by Traversys Limited
Ivanti Cheat Sheet by Traversys Limited
Tim Read
 
Code camp 2011 Getting Started with IOS, Una Daly
Code camp 2011 Getting Started with IOS, Una DalyCode camp 2011 Getting Started with IOS, Una Daly
Code camp 2011 Getting Started with IOS, Una Daly
Una Daly
 
Excel
ExcelExcel
PPP03 - Complex Preventive Maintenance Procedures
PPP03 - Complex Preventive Maintenance Procedures PPP03 - Complex Preventive Maintenance Procedures
PPP03 - Complex Preventive Maintenance Procedures
Maintenance Connection
 
Modeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and FunctionalModeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and Functional
Rajani Bhandari
 
Il 09 T3 William Spreitzer
Il 09 T3 William SpreitzerIl 09 T3 William Spreitzer
Il 09 T3 William Spreitzer
wspreitzer
 
How to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design toolHow to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design tool
TL Technologies - Thoughts Become Things
 
SAP BO Dashboard Training Online
SAP BO Dashboard Training OnlineSAP BO Dashboard Training Online
SAP BO Dashboard Training Online
ashok training
 
SAP BO 4.1 Training
SAP BO 4.1 Training SAP BO 4.1 Training
SAP BO 4.1 Training
ashok training
 
BOBJ Training Online
BOBJ Training  OnlineBOBJ Training  Online
BOBJ Training Online
ashok training
 
Sap bo 4.2 course content
Sap bo 4.2 course contentSap bo 4.2 course content
Sap bo 4.2 course content
Anudeep K
 
SAP BusinessObjects Design Studio 1.7
SAP BusinessObjects Design Studio 1.7SAP BusinessObjects Design Studio 1.7
SAP BusinessObjects Design Studio 1.7
Madhukar Reddy
 
Online SAP BO 4.2 Training
Online SAP BO 4.2 TrainingOnline SAP BO 4.2 Training
Online SAP BO 4.2 Training
ashok training
 
SAP Business Objects 4.2 Training Online
SAP Business Objects 4.2 Training Online SAP Business Objects 4.2 Training Online
SAP Business Objects 4.2 Training Online
ashok training
 
FiletodbAdapters
FiletodbAdaptersFiletodbAdapters
FiletodbAdapters
XAVIERCONSULTANTS
 
Adaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedureAdaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedure
prathap kumar
 
Lab1-android
Lab1-androidLab1-android
Lab1-android
Lilia Sfaxi
 
SOA - Architecture and Design
SOA - Architecture and DesignSOA - Architecture and Design
SOA - Architecture and Design
Muthu Kumar
 

Similar to Weird sObjects.pptx (20)

Primavera - Tutorial
Primavera - TutorialPrimavera - Tutorial
Primavera - Tutorial
 
Object Oriented PHP - PART-1
Object Oriented PHP - PART-1Object Oriented PHP - PART-1
Object Oriented PHP - PART-1
 
Ivanti Cheat Sheet by Traversys Limited
Ivanti Cheat Sheet by Traversys LimitedIvanti Cheat Sheet by Traversys Limited
Ivanti Cheat Sheet by Traversys Limited
 
Code camp 2011 Getting Started with IOS, Una Daly
Code camp 2011 Getting Started with IOS, Una DalyCode camp 2011 Getting Started with IOS, Una Daly
Code camp 2011 Getting Started with IOS, Una Daly
 
Excel
ExcelExcel
Excel
 
PPP03 - Complex Preventive Maintenance Procedures
PPP03 - Complex Preventive Maintenance Procedures PPP03 - Complex Preventive Maintenance Procedures
PPP03 - Complex Preventive Maintenance Procedures
 
Modeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and FunctionalModeling- Object, Dynamic and Functional
Modeling- Object, Dynamic and Functional
 
Il 09 T3 William Spreitzer
Il 09 T3 William SpreitzerIl 09 T3 William Spreitzer
Il 09 T3 William Spreitzer
 
How to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design toolHow to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design tool
 
SAP BO Dashboard Training Online
SAP BO Dashboard Training OnlineSAP BO Dashboard Training Online
SAP BO Dashboard Training Online
 
SAP BO 4.1 Training
SAP BO 4.1 Training SAP BO 4.1 Training
SAP BO 4.1 Training
 
BOBJ Training Online
BOBJ Training  OnlineBOBJ Training  Online
BOBJ Training Online
 
Sap bo 4.2 course content
Sap bo 4.2 course contentSap bo 4.2 course content
Sap bo 4.2 course content
 
SAP BusinessObjects Design Studio 1.7
SAP BusinessObjects Design Studio 1.7SAP BusinessObjects Design Studio 1.7
SAP BusinessObjects Design Studio 1.7
 
Online SAP BO 4.2 Training
Online SAP BO 4.2 TrainingOnline SAP BO 4.2 Training
Online SAP BO 4.2 Training
 
SAP Business Objects 4.2 Training Online
SAP Business Objects 4.2 Training Online SAP Business Objects 4.2 Training Online
SAP Business Objects 4.2 Training Online
 
FiletodbAdapters
FiletodbAdaptersFiletodbAdapters
FiletodbAdapters
 
Adaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedureAdaptersdb-03-file2storedprocedure
Adaptersdb-03-file2storedprocedure
 
Lab1-android
Lab1-androidLab1-android
Lab1-android
 
SOA - Architecture and Design
SOA - Architecture and DesignSOA - Architecture and Design
SOA - Architecture and Design
 

Recently uploaded

Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptxOperational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
sandeepmenon62
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
Tier1 app
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
michniczscribd
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
ervikas4
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
Jhone kinadey
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
kalichargn70th171
 
What is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdfWhat is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdf
kalichargn70th171
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Paul Brebner
 
Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.
KrishnaveniMohan1
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
Pedro J. Molina
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical OperationsEnsuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
OnePlan Solutions
 
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
Luigi Fugaro
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
OnePlan Solutions
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
Cost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App DevelopmentCost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App Development
Softradix Technologies
 

Recently uploaded (20)

Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptxOperational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
Operational ease MuleSoft and Salesforce Service Cloud Solution v1.0.pptx
 
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
 
bgiolcb
bgiolcbbgiolcb
bgiolcb
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
 
What is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdfWhat is Continuous Testing in DevOps - A Definitive Guide.pdf
What is Continuous Testing in DevOps - A Definitive Guide.pdf
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
 
Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical OperationsEnsuring Efficiency and Speed with Practical Solutions for Clinical Operations
Ensuring Efficiency and Speed with Practical Solutions for Clinical Operations
 
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...Transforming Product Development using OnePlan To Boost Efficiency and Innova...
Transforming Product Development using OnePlan To Boost Efficiency and Innova...
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
Cost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App DevelopmentCost-Effective Strategies For iOS App Development
Cost-Effective Strategies For iOS App Development
 

Weird sObjects.pptx

  • 1. Weird sObjects PRESENTATION BY DIRK KEATON FOR MORE SALESFORCE TRAINING, FOLLOW ON LINKEDIN
  • 2. Our Goals Name new sObjects Explore and Discuss Object Reference Create flow accessing these objects
  • 3. SObjects are Everywhere “NORMAL” SOBJECTS Task Contact Account In the object manager “WEIRD” SOBJECTS Task Relation-Connects Accounts to Tasks Contact Share-Created when a Contact is Manually Shared with a User Account History-Records changes to the account object Accessed through flow, apex, reports
  • 5. What will our flow do? Our flow is designed for an org with private sharing for accounts. When accounts are private a person may be assigned a task related to an account that they can’t see. Our flow addresses this problem. When a task is created, it will share all accounts related to the task to the person who the task is assigned to.
  • 6. Setting up Under activity settings, allow users to relate multiple contacts to tasks and events Under sharing settings, make account sharing private:
  • 7. Build a record triggered flow
  • 8. Begin by choosing an object Click choose object Then choose task Set the flow to “trigger” when a record is created or updated
  • 9. Add a decision element If you try to share an account with yourself, you’ll trigger an error that will stop the flow. To avoid this, add a decision element. {!$Record.OwnerId} Does not Equal {!$Record.CreatedById}
  • 10. Getting the People from the Task A standard whoid won’t work if there’s more than one person on the task. We need a weird subject—we need to go to the object reference. Immediately there are two candidates: TaskRelation and TaskWhoRelation
  • 11. The Refence includes A list of fields A code block (usually Apex) and links to related sObjects
  • 12. GetTaskrelations Make the TaskId equal to $Record.activityid We select activity because all tasks are activities. Select all records (so we can capture everyone added)
  • 13. Create a loop Loop through the collection variable you created.
  • 14. Connect your get records element Make sure to connect your get records element to the “not equal to creator” path. You do not need to connect anything to default outcome
  • 15. Create a New Variable Name it AccountShareExample Make sure the record it targets is AccountShare
  • 16. Select the following options Contactshare.contactid equals Loop_Through_Relations.RelationId ContactShare.UserOrGroupId equals $Record.AssignedToId We have to give the account and opportunity read access
  • 17. Create another variable Call it ShareCollector Allow multiple values so it can be a a collection variable for AccountShares
  • 18. Adding to the collection Choose share collector as the variable Select the “add” operator. Then, select ContactShareExample You may get an error or the system may try to add a field name after {!ContactShare} Ignore it and do not include a period. Click “outside” the box to ignore it.
  • 19. Add a create records element Choose multiple Select ShareCollector as your values
  • 20. Activate your flow and test it! Take this contact, for example. Our test user has no access.
  • 21. Create the task Make sure to include a person who the test user doesn’t have access to Assign it to them.
  • 22. They now have full access!