Skip to main content
14 events
when toggle format what by license comment
Jan 22, 2017 at 0:38 answer added Adrian Larson timeline score: 5
Jan 21, 2017 at 23:43 history edited Adrian Larson CC BY-SA 3.0
deleted 67 characters in body; edited tags
Jan 21, 2017 at 17:05 history edited crmprogdev CC BY-SA 3.0
Moved essence of comments to body of question
Jul 7, 2015 at 14:55 comment added NewtoApex MarginFactor has factors maintained based on common fields mentioned below. Common fields between quote and MarginFactor are Channel, Deal_type and "Term_MWh__c" on quote that fall between Range_high and Range_low in MarginFactor. So based on values on Quote I have to derive corresponding factors from MarginFactor.
Jul 7, 2015 at 14:51 comment added Anu their may be a loop from Margin_factor__c to Quote. If their, have Quote id as key and Margin_factor__c as value.
Jul 7, 2015 at 14:48 comment added crmprogdev What's the relationship between quote and marginFactor? I assume they're unique for each quote Id? If so, what would be the WHERE clause in a bulk query?
Jul 7, 2015 at 14:42 comment added dphil You likely need to use several maps. Use a map for each field that you need to compare with.
Jul 7, 2015 at 14:28 comment added NewtoApex Thanks for replying Anu. I'm not sure I understand. There are about 4 fields in common between Quote and Margin_factor__c custom object. And additional 2 fields that define range for a field in Quote. I'm not sure how I can map
Jul 7, 2015 at 14:28 review Suggested edits
Jul 7, 2015 at 15:01
Jul 7, 2015 at 14:27 comment added Adrian Larson These cost assignments seem likely to clobber each other frequently.
Jul 7, 2015 at 14:27 history edited Keith C CC BY-SA 3.0
Format
Jul 7, 2015 at 14:27 review First posts
Jul 7, 2015 at 14:30
Jul 7, 2015 at 14:25 comment added Anu better you can have Margin_Factor__c in map with Quote as key. Hope this will help you.
Jul 7, 2015 at 14:23 history asked NewtoApex CC BY-SA 3.0