AnsweredAssumed Answered

Sugar 7 record.js - get bean record without id

Question asked by Ramon Marcondes on Dec 12, 2017
Latest reply on Dec 12, 2017 by Francesca Shiekh


I'm using Sugar Enterprise

I have two modules: Opportunities and Revenue Line Items.

They don't have a relationship table, but the Revenue has the "opportunity_id" field.


On clicking the 'edit' button in an Opportunity, I need to use its "id" to get a Revenue Line Item by the revenue's "opportunity_id" field. The click function already works, but the problem is getting the bean record I need.

I tried something like this, but it didn't work:

var revenue ="RevenueLineItems", {opportunity_id: opportunityId});


How can I get a single Bean record by another field that isn't the module's id?

Any help would be appreciated.