Record Trigger Flow | Schedule Trigger Flow | Day 6

  Рет қаралды 49,895

Salesforce Apex Hours

Salesforce Apex Hours

Күн бұрын

Пікірлер: 44
@chin2mittal
@chin2mittal 3 жыл бұрын
Hello, I guess the issue you faced is because by mistake on the last step while updating the Contacts, you selected 'Create Record' action over the collection of Contact which already has non-null IDs.
@wiama.3467
@wiama.3467 3 жыл бұрын
Quite confusing this time. And the error at the end was because Amit is trying to create new records...which need all required values assigned. He took the wrong DML-Element at the end. Update Records would be the right one.
@ragulhm
@ragulhm 3 жыл бұрын
From October 9th we are going to have sub flow for record flow. Kindly cover that part as well from preview sandbox. Single flow will not help replace 2000 lines of our company trigger.
@apexhours
@apexhours 3 жыл бұрын
We will try in future sessions
@ayushmanshahu9765
@ayushmanshahu9765 2 жыл бұрын
Scenerio works . take update record account id equals null. instead of create record.
@vanaramprajapati3890
@vanaramprajapati3890 Жыл бұрын
In this context, you can create a new variable resource and define its data type as a record. Make sure to select the "Allow Multiple Values" checkbox. After creating this variable, proceed to assign "add records" within the assignment block. Within the final loop, you can then update a record. To do this, utilize the previously defined variable of record type to modify the necessary record.
@derrickchavez8494
@derrickchavez8494 Жыл бұрын
Here is a helpful tip on deciding whether to use the Assignment Action vs. Update element for Scenario 2 at the 20-minute mark of the video. There is very little difference. You can use either the Update element or the Assignment element. The key is that triggers and validations are NOT recursively kicked off in before-save Flows as they are in after-save Flows. This means the performance is almost the same whether you use the Update or the Assignment element.
@elhadjimoryndaw5773
@elhadjimoryndaw5773 3 жыл бұрын
THANK YOU
@apexhours
@apexhours 3 жыл бұрын
Glad you like it
@massimotarquini1168
@massimotarquini1168 3 жыл бұрын
why did you opt for a get record in the scheduled flow rather than the initial contact object chosen in the start element? the first approach you had was more scalable as 250k records can enter the flow
@mohamedel850
@mohamedel850 3 жыл бұрын
Can you elaborate more on this please.
@somsamanta3498
@somsamanta3498 3 жыл бұрын
These are excellent videos with great use cases. Do you have a video series for process builder by any chance?
@apexhours
@apexhours 3 жыл бұрын
Flow is future
@shubhamband432
@shubhamband432 Жыл бұрын
We should avoid criteria which we added at first step , it should be "no criteria just execute " So we will able to run this flow on collection of records not on each and ever record
@vaibhavpatil478
@vaibhavpatil478 3 жыл бұрын
Error you received in last is because you have selected create record element instead of update record
@tugba5943
@tugba5943 2 жыл бұрын
I agree with you .
@AS-lb8rk
@AS-lb8rk 2 жыл бұрын
The scenario 2 - A flow which will run on Contact Records which were created in last week and do not have any related account, where was the part where you took care of contacts which were created in "last week" I didn't see that in the flow.
@hitashihusband9159
@hitashihusband9159 2 жыл бұрын
He took the wrong DML-Element at the end. Update Records would be the right one.
@muhammadusmanbabar8660
@muhammadusmanbabar8660 3 жыл бұрын
Amazing seriously
@apexhours
@apexhours 3 жыл бұрын
Keep watching all sessions.
@tmukhia
@tmukhia 2 жыл бұрын
Hi Amit , I have a scenario where I will be creating a checkbox field (Copy Comments to the Related Cases) and post it in "New Case Comments" action. Now I want, if "Copy Comments to Related Cases" is checked then copy that comment to all the Related Case Comments. Can you please show how it can be achieved? Thank you, Tarun
@sandireddyroja6991
@sandireddyroja6991 3 жыл бұрын
Hi I am getting this error while creating task,but currently i am using system admin profile only ,Please help me out here
@amitbagade3277
@amitbagade3277 2 жыл бұрын
Sir, if i want to create task 1 day after record is created so should i go for Record trigger flow or screen flow? and also it to assign to perticular user in org not owner??
@balajibasanolla
@balajibasanolla Жыл бұрын
19:45 it is not showing the create record because u chose the before insert I think the reason for that is not showing.
@sharmilajennas3469
@sharmilajennas3469 3 жыл бұрын
Good Job but a little confusing this time.
@apexhours
@apexhours 3 жыл бұрын
Looking forward for feedback and we are open to change it. Can you please suggest ?
@massimotarquini1168
@massimotarquini1168 3 жыл бұрын
@@apexhoursI agree with Sharmila; he was very thrown off about the create record element not being available; yet he had a before update operation and the create record element is not available for before events...
@veeranjineyulukuruva4028
@veeranjineyulukuruva4028 2 жыл бұрын
I have scenario there date field and owner field , when ever owner got changed and date field is today date so i need schedule email alert after 365 days ,so customer need to get after one year . I tried but is changed not possible in schedule folw
@sevdadalklc8410
@sevdadalklc8410 2 жыл бұрын
Flow is worked, but there is an error in this flow. Dummy account created but it doesn t have any related contact...Please can you share a video for this scenario again..(Also I think you did wrong with createdrecord in the last part, I did updaterecord but there is still something missing in this flow.It doesn t give relationship between Account and contact)
@sunalgautam6888
@sunalgautam6888 2 жыл бұрын
Its happening because we need to take the ''Current Item from Loop contact..' variable in the Update Records element, try it , it will work.
@igorferreira1486
@igorferreira1486 2 жыл бұрын
@@sunalgautam6888 Thank you. Worked.
@niteshwarsharma8595
@niteshwarsharma8595 3 жыл бұрын
Hi sir i have a scenario i want to achieve using flow .. i have a checkbox field and whenever checkbox field gets checked i want to populate a date field . both these fields are on account object
@ektachauhan9379
@ektachauhan9379 3 жыл бұрын
Have you done that?
@ektachauhan9379
@ektachauhan9379 3 жыл бұрын
Having the same question on case object..I have to populate the field to show the date and time for the checkbox
@niteshwarsharma8595
@niteshwarsharma8595 3 жыл бұрын
yup
@ektachauhan9379
@ektachauhan9379 3 жыл бұрын
@@niteshwarsharma8595 howz?
@PankajSharmaexplain
@PankajSharmaexplain Жыл бұрын
BLUNDER
@apexhours
@apexhours Жыл бұрын
Let us know how we can improve. we would love to have your feedback
@harpindersingh940
@harpindersingh940 Жыл бұрын
@@apexhours Scheduled flow is implemented in wrong way and indeed would be a blunder if implemented in a real project. Flow will be executed for all Contacts matching criteria and then inside the Flow there is a Get Record element to fetch all matching contacts again and looping through those.
@saikiran538
@saikiran538 2 жыл бұрын
Your way of teaching is good. But one thing you are lacking is you are very fast which is leading for mistakes and the new viewers will get confused. Please be little slower while explaining. All the best!
@BugsbunnyEh
@BugsbunnyEh Жыл бұрын
explanation is good but he did not handle the requirement properly. the flow is completely wrong. schedule flow run for batch which mean each record will run one by one. u don't need to get again all the contact, its like a loop inside another loop. u can create account and use update the contact. so only need 2 element for the entire flow. yes performance is always need to concern when teaching.
@chetsboy1
@chetsboy1 2 жыл бұрын
Help needed Instead of adding condition in first comment I have created a decision component and adding the Condition record.accountId equal globalconstant.emptystring But it always running default path only. Even though soql showing there are contact records without parent account
Platform Event Trigger Flow | Day 7
20:54
Salesforce Apex Hours
Рет қаралды 30 М.
Auto Launched Flow in Salesforce | Day5
27:37
Salesforce Apex Hours
Рет қаралды 54 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 32 МЛН
Scheduled Triggered Flow to Count Tasks (Roll Up Summary Example)
11:57
Salesforce Made Simple
Рет қаралды 2,4 М.
Record Triggered Flows with Real Time Scenarios
1:22:34
Salesforce Exclusive
Рет қаралды 68 М.
Salesforce Flow Builder Tutorial (Episode 11) - Record Triggered Flows
10:35
Salesforce Made Simple
Рет қаралды 7 М.