You need to sign in to do that
Don't have an account?
Warren Wade, AE
Roll Up Trigger of Max Record that Returns text
I think I've exhausted my declarative means to get this info (native features, Process Builder and Flow) and I'm not a programmer so I'm reaching out.
Help!
- I have a two objects: Preserve__c (Master) and Activities__c (Detail).
- The Activities__c object has two pertinent fields: Date__c & Type__c.
- On Preserve__c, I have a field Most_Recent_Activity_Type__c.
- I need to roll the Type__c of the most recent Activity record to the Preserve record to that field.
- Type = Walk, Date = 1/1/2017
- Type = Run, Date = 6/1/2017
- Type = Fly, Date = 9/1/2017
Help!
Please try below code and please mark it solved.
Thanks
Hemant
All Answers
You can get this done using process builder with the below.
1. Create a Process builder on Activities__c
2. make sure to select the criteria as on record creation only
3. specify filter criteria if any
4. Select field update action on Preserve__c record
5. Then perform assignment to (Preserve object field)Type__c = Type__c (Activity__C field value)
So that (Preserve object field)Type__c field will get updated with the newly inserted Activities__c record Type__c value
Hope this helps .......!!!
Please mark as best answer if the above helps..!!!
Please try below code and please before saving this code please update field according to your fields. If this helps you please mark it solved.
Thanks
Hemant
When I made those adjustments, I'm now getting the following error from line 21 (lstPreserve.add(oActivities);) Any idea how to resolve this? I feel like you've gotten me 99% of the way there and I probably just typed something wrong.
Updated Code
Please try below code and please mark it solved.
Thanks
Hemant