-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
3Questions
-
0Replies
Query to fetch recently created 10 records from object
Hi All,
How to write soql Query to get recently created 10 records from an Object
How to write soql Query to get recently created 10 records from an Object
- vishnu vardhan 142
- July 29, 2019
- Like
- 0
- Continue reading or reply
create 7 records by activating checkbox
Hi All
I have a scenario like
If Active checkbox is checked on Class record then
Create 7 Child Future (Date >= today) coaching session records
The Date range will determine the class date for Coaching Session record
The Date range will be generated from First Class Date field on the Class Record
For e.g. if an active Class record is created with a First Class Date of 1/9/2017
Then generate a date range with +7 days from this date
So the date range will be 1/9/2017 to 1/16/2017
Loop through this date range
check if the date is in future
if yes then create a Coaching Session Record with class id pointing to the newly created or update class
I have a scenario like
If Active checkbox is checked on Class record then
Create 7 Child Future (Date >= today) coaching session records
The Date range will determine the class date for Coaching Session record
The Date range will be generated from First Class Date field on the Class Record
For e.g. if an active Class record is created with a First Class Date of 1/9/2017
Then generate a date range with +7 days from this date
So the date range will be 1/9/2017 to 1/16/2017
Loop through this date range
check if the date is in future
if yes then create a Coaching Session Record with class id pointing to the newly created or update class
- vishnu vardhan 142
- December 27, 2018
- Like
- 0
- Continue reading or reply
Trigger on Class Object After Insert, After Update If Active checkbox is checked on Class record then Create 7 Child Future (Date >= today) coaching session records
Hi All
I unable to create the trigger for the below scenario,Someone pls help me out.
1 Trigger on Class Object
2 After Insert, After Update
3 If Active checkbox is checked on Class record then
1 Create 7 Child Future (Date >= today) coaching session records
2 The Date range will determine the class date for Coaching Session record
3 The Date range will be generated from First Class Date field on the Class Record
4 For e.g. if an active Class record is created with a First Class Date of 1/9/2017
1 Then generate a date range with +7 days from this date
2 So the date range will be 1/9/2017 to 1/16/2017
3 Loop through this date range
1 check if the date is in future
2 if yes then create a Coaching Session Record with class id pointing to the newly created or update class
5 if an active class record is created with a First Class Date of 1/3/2017
1 Then generate a date range with +7 days from this date
2 So the date range will be 1/3/2017 to 1/10/2017
3 Loop through this date range
I unable to create the trigger for the below scenario,Someone pls help me out.
1 Trigger on Class Object
2 After Insert, After Update
3 If Active checkbox is checked on Class record then
1 Create 7 Child Future (Date >= today) coaching session records
2 The Date range will determine the class date for Coaching Session record
3 The Date range will be generated from First Class Date field on the Class Record
4 For e.g. if an active Class record is created with a First Class Date of 1/9/2017
1 Then generate a date range with +7 days from this date
2 So the date range will be 1/9/2017 to 1/16/2017
3 Loop through this date range
1 check if the date is in future
2 if yes then create a Coaching Session Record with class id pointing to the newly created or update class
5 if an active class record is created with a First Class Date of 1/3/2017
1 Then generate a date range with +7 days from this date
2 So the date range will be 1/3/2017 to 1/10/2017
3 Loop through this date range
- vishnu vardhan 142
- December 26, 2018
- Like
- 0
- Continue reading or reply