Skip to main content
13 events
when toggle format what by license comment
Aug 8, 2014 at 13:24 vote accept CaptainHaZ
Aug 8, 2014 at 12:51 comment added CaptainHaZ I want this trigger to create an Opportunities and Contracts record and apply the Opportunity Name to the Opportunity field within the O+C object.
Aug 8, 2014 at 12:47 comment added Chris Duncombe Can you just tell us (not in code) what you ant this trigger to accomplish. Might help as I am unclear as to what the end result you are looking for.
Aug 8, 2014 at 12:46 answer added BarCotter timeline score: 3
Aug 8, 2014 at 12:46 comment added Chris Duncombe What are you trying to set it to, you have it outside of the loop.
Aug 8, 2014 at 12:43 comment added CaptainHaZ I'm trying to specify the field within the Opportunities_and_Contracts__c object.
Aug 8, 2014 at 12:42 comment added BarCotter What are you trying to do with this line Opportunities_and_Contracts__c bb = Opportunity__c;?
Aug 8, 2014 at 12:37 comment added CaptainHaZ Definitely called Opportunity__c
Aug 8, 2014 at 12:22 comment added Chris Duncombe Can you go to the custom lookup field on the Opportunities_and_Contracts__c object and confirm the name of the lookup field is the default Opportunity__c, and you didnt name it something different.
Aug 8, 2014 at 12:20 comment added CaptainHaZ I retyped the field name and got this instead Error: Compile Error: Variable does not exist: Opportunity__c at line 2 column 40
Aug 8, 2014 at 12:07 comment added Chris Duncombe Your error suggests you have a typo in the code, although its not shown above. Its saying that you have Opportunity_c (only 1 underscore), where it should be Opportunity__c (2 underscores)
Aug 8, 2014 at 12:06 history edited Chris Duncombe CC BY-SA 3.0
added 28 characters in body
Aug 8, 2014 at 11:50 history asked CaptainHaZ CC BY-SA 3.0