You need to sign in to do that
Don't have an account?
magalie pickert
for loop problem
Hi,
I try to do a bulkifly trigger...
And I'm becoming a non understandable failure. I hope you can help me....
My Code is:
Thx
I try to do a bulkifly trigger...
And I'm becoming a non understandable failure. I hope you can help me....
Code:
Error: Kompilierungsfehler: Loop condition must be of type Boolean: Integer in Zeile 12 Spalte 19
Code:
trigger InitialContactSolution on Obj__c (after insert) { // create list Obj__c[] ObjToUpdate = new Obj__c[0]; // perform looping action for (Obj__c cl : Trigger.new) { ObjToUpdate.add(cl); } if (!ObjToUpdate.isEmpty()) { for (Integer i=0; ObjToUpdate.size(); i++){ newGatheringController.InsertTask(ObjToUpdate[i]); } } }
Thx
I know that i become only one row that's why i use this request:
Now i don't need a for loop.
But I will remember that for the next devloppment...
Thx