You need to sign in to do that
Don't have an account?
V'Nath
Reg : system.query Excepiton
hi,
The below query retunrs the error system.query Exception but its working in System log . please any help regards this issue.
Pricebook2 pbook = [select id from Pricebook2 where IsStandard = true limit 1];
Regards,
V'nath
Try this:
Pricebook2 pbook = [select id from Pricebook2 where IsStandard =: true limit 1];
Hope this helps:)
Thanks,
Devendra