You need to sign in to do that
Don't have an account?
JBabu
How to filter opportunity records?
Hi,
I have field called "WhatId" and it can have either account./opportunity/contact.. records.
I need to filter out opportunity records.
I tried using below query:
select id, subject,whatid, whoid from Task
where whatid like '006%'
I am getting error message "Invalid operator on id field". I tried using substring also, it didnot work.
Please let me know a way to identify opportunity records?
Thanks,
JBabu.
Here's a link to basically the same problem you are having.
http://boards.developerforce.com/t5/forums/forumtopicprintpage/board-id/apex/message-id/52350/print-single-message/false/page/1
This is a piece of their code on how to identify if the WhatId/WhoId is the same for
the desired record.
--------------------------------------------------------------
Need Help? Call 1-888-407-9578
or visit http://www.salesforcesuperheroes.com/
All Answers
Here's a link to basically the same problem you are having.
http://boards.developerforce.com/t5/forums/forumtopicprintpage/board-id/apex/message-id/52350/print-single-message/false/page/1
This is a piece of their code on how to identify if the WhatId/WhoId is the same for
the desired record.
--------------------------------------------------------------
Need Help? Call 1-888-407-9578
or visit http://www.salesforcesuperheroes.com/
Thank you.