- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- General Development
- :
- Re: Can an OpportunityContactRole be created with ...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Can an Opportunit yContactRo le be created with no Role chosen?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-30-2008 07:32 AM
Select o.ContactId, o.Contact.FirstName, o.Contact.LastName, o.Role, o.IsPrimary from OpportunityContactRole o Where o.OpportunityId=someid
Re: Can an Opportunit yContactRo le be created with no Role chosen?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-30-2008 09:33 AM
Re: Can an Opportunit yContactRo le be created with no Role chosen?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-30-2008 09:40 AM
Thanks for responding werewolf,
Yeah it's not the query that's the problem, it's when i'm trying to parse out the results and looking for the Role and it doesn't exist in the "Any" structure. For my own testing purposes i'm trying to add a contact to my opportunity with a "blank" or "null" role like you said, and i'm wondering how to do that.
Re: Can an Opportunit yContactRo le be created with no Role chosen?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-30-2008 10:12 AM
Re: Can an Opportunit yContactRo le be created with no Role chosen?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-12-2008 07:07 AM
That did the trick, thanks. I used the api to create an OpportunityContactRole without a role.
I found out that our customer got in that situation because they did a data migration which left some of their opp contacts without roles.
Appreciated, thanks.
-KG

