You need to sign in to do that
Don't have an account?
How to use list in this trigger
Hi,
Here Im trying to create a trigger where there is master object (Custom object-Opportunity) and child object(RFP).
Im mapping values from other object (Ratecard) when i entered some parameters in RFP.
In RFP there are some parameters(CompletesRequired,BID,Incidence rate,Market,Audience,Ratecard).We have same fields in Ratecard object with Actual CPI (currency) which we are uploading through dataloader.
When i entered these parameters in RFP the ActualCpi will populate automatically in RFP Object.
this scenario is working for one RFP entry.How can i use lists in this case for multiple rfp entry.
From what I've read and understood - I suppose you should go for Bulk triggers if the requirement is to set the trigger for multiple row entries :
http://developer.force.com/cookbook/recipe/trigger-pattern-for-tidy-streamlined-bulkified-triggers
http://salesforce.stackexchange.com/questions/12981/why-should-we-use-bulk-triggers
Hi amrit,
I think below code will help you.
Thanks for your reply.
i tried your code.ActualCPI value will update when i entered the parameters.The Actual CPI value in RFPobject shows different value compared with Actual CPI in Ratecard object.When i edit the record it saves correct Actual CPI value in Ratecard object.This only happens when i go for multiple entries.eg:
Firstentry -Completesreq- 200 , BID-20, Incidencerate-10 ,Market-India, Audience-B2B ,Ratecard -Decision , Actual CPI-4.20
Sec entry-Completesreq- 200 , BID-10, Incidencerate-20 ,Market-Argentina, Audience-GenPop , Ratecard- General ,Actual CPI-4.20
Here Actual CPI for sec entry is 22.60.It shows 4.20 only
Why is it so?
Hi Sonam.
Thanks for your reply