forked from seanpat09/salesforce-rpt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseed.apex
56 lines (49 loc) · 1.61 KB
/
seed.apex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Account testAccount = new Account(Name = 'We CanCan Recycling');
insert testAccount;
List<Task> toInsert = new List<Task>();
toInsert.add(
new Task(
WhatId = testAccount.Id,
Status = 'Not Started',
Subject = 'Launch recycling campaign',
Description = 'Make sure marketing automation is set up correctly, reach out to marketing',
ActivityDate = Date.today().addDays(10)
)
);
toInsert.add(
new Task(
WhatId = testAccount.Id,
Status = 'In Progress',
Subject = 'Confirm sponsor donations',
Description = 'Call Mojo Pizza about catering and community rec center to confirm space',
ActivityDate = Date.today().addDays(3)
)
);
toInsert.add(
new Task(
WhatId = testAccount.Id,
Status = 'Completed',
Subject = 'Reach out to logistics company',
Description = 'Truck There It Is said they can offer some free pickups after the event',
ActivityDate = Date.today().addDays(-15)
)
);
toInsert.add(
new Task(
WhatId = testAccount.Id,
Status = 'Waiting on someone else',
Subject = 'Construct bins',
Description = 'Get It Together! said they can deliver bins we can use to hold recycled goods, waiting for their delivery by next week',
ActivityDate = Date.today().addDays(5)
)
);
toInsert.add(
new Task(
WhatId = testAccount.Id,
Status = 'Deferred',
Subject = 'Create Mr. Fusion reactor',
ActivityDate = Date.today().addYears(10),
Description = 'Doc said something about not needing streets?'
)
);
insert toInsert;