+ Start a Discussion
Lisa KattawarLisa Kattawar 

Can Someone help me with a compile error?

Can someone help me with this compile error?  I'm not a developer and this is my first time to try and create a trigger.  I was given some sample code and modified it just a little bit.  For the life of me, I can't see what might possibly be wrong with line 3.

User-added image
Best Answer chosen by Lisa Kattawar
SeAlVaSeAlVa
Hi,

you have to state which kind of information the Set is going to store. Try something like...

trigger SetAccount on SBQQ__QuoteLine__c (before insert)
{
  Set<ID> ids = new Set<ID>();

  for (SBQQ__QuestionLine__c ql : trigger.new)
  {
    ids.add(ql.QuoteID);
  }
  ...


If it solves your problem, please mark it as "Best Answer", if not, just reply ;)

All Answers

SeAlVaSeAlVa
Hi,

you have to state which kind of information the Set is going to store. Try something like...

trigger SetAccount on SBQQ__QuoteLine__c (before insert)
{
  Set<ID> ids = new Set<ID>();

  for (SBQQ__QuestionLine__c ql : trigger.new)
  {
    ids.add(ql.QuoteID);
  }
  ...


If it solves your problem, please mark it as "Best Answer", if not, just reply ;)
This was selected as the best answer
Lisa KattawarLisa Kattawar
Thanks @SeAIVa!