Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Highlighted
New Member
Posts: 26
Registered: ‎02-21-2011

Error creating an extension for OpportunityCompetitors entity

Hi there,

 

I am experiencing an issue when creating an extension for the Opportunity competitor entiy.

OpportunityCompetitor has one key OpportunityId Opportunity Competitor has two keys OpportunityID and CompetitorId.

When I set the isextension in my new enitity and I select opportunity competitor from the drop down and build I get:

 

D:\Users\mvolpe\BuildPath\implementation\COppCompetitorExt.cs(329,17):The name '_Id' does not exist in the current context
ERROR - D:\Users\mvolpe\BuildPath\implementation\COppCompetitorExt.cs(331,24):The name '_Id' does not exist in the current context

 

I think something is wrong with my keys.

 

Any idea ?

 

Thanks,

Marcelo.

Highlighted
Bronze Super Contributor
Posts: 129
Registered: ‎06-09-2009

Re: Error creating an extension for OpportunityCompetitors entity

IsExtension is meant for One to One relationships, not for One to Many.

 

You should leave the IsExtension off, and instead add Relationships to the Opportunity and to the Competitor objects.

Raul A. Chavez
http://raul.chavez.com
http://www.crmbi.com
Highlighted
New Member
Posts: 26
Registered: ‎02-21-2011

Re: Error creating an extension for OpportunityCompetitors entity

Hi Raul,

 

Thanks for your quick response, I do  want to create an OpportunityCompetitor extension and it is not working throwing the errors in my previous post. I don not want to create a 1:M, just an extension for opportunitycompetitor.

 

Many thanks,

Marcelo.

 

Highlighted
Bronze Super Contributor
Posts: 129
Registered: ‎06-09-2009

Re: Error creating an extension for OpportunityCompetitors entity

In that case, you need to add an ID field to the Opportunity Table (e.g. CompetitorID).

Next, in App Architect, Update the Opportunity Entity to select the New Field, and make sure it is set as a Standard ID.

Finally, create a Relationship from the Opportunity to the Competitor table via the newly created field.

Raul A. Chavez
http://raul.chavez.com
http://www.crmbi.com
Highlighted
New Member
Posts: 26
Registered: ‎02-21-2011

Re: Error creating an extension for OpportunityCompetitors entity

Hi Raul,

 

I want to create an OpportunityCompetitor extension, not an Opportunity extension, so:

 

opportunity->1:M->opportunitycompetitor
opportunitycompetitor->1:1->opportunitycompetitorext

 

Thanks a lot,

Marcelo.

Highlighted
Gold Super Contributor
Posts: 3,087
Registered: ‎03-19-2009

Re: Error creating an extension for OpportunityCompetitors entity

Why bother extending it.. just:

   a - add the new (custom) fields to the core table via the DB manager in the Architect (NOT AA).

   b - In the AA  just "update" the entity w/the new fields/properties

   c - rebuild interfaces and go..

 

This way gets rid of all the issues in doing 1:1 junk..

--
RJ Ledger - rjledger@rjlSystems.net +1 603.369.3047 x101

".. Innovators in Mobility - Experts in Workflow Automation..."
http://www.rjlSystems.net - blog: www.rjlSystems.net/blog.html