function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JohnRyderJohnRyder 

Question about optimizing code in trigger

.........................................

Prashant TiwariPrashant Tiwari
define orders, li and ox as map and iterate through ox values in for loop. Populate Order_Line_Item__c ol inside for loop using all three map(pass ids) as per the required field.

Thanks, Prashant Tiwari
JohnRyderJohnRyder

Thanks Sir! I handled this by appyling exactly what you wrote.

Prashant TiwariPrashant Tiwari
That's Great !!

Please mark it as solved if the solution worked as it might help others !!


Thanks,

Prashant Tiwari