2 models using the same object

  • 1
  • Problem
  • Updated 11 months ago
  • Solved
Hi,

I need to use two models (Model A and Model B) with the same Salesforce object. But what happens is Model B is not getting the correct record. 

In Model A, I only need one record since I'm using the id page parameter. So in Model B, I just added a condition such that to get the record with the same Id in Record A. I checked the console log and my where condition is not being used in the SOQL.

Any suggestion? 
Photo of Rowel Ventura

Rowel Ventura

  • 132 Points 100 badge 2x thumb

Posted 11 months ago

  • 1
Photo of Rowel Ventura

Rowel Ventura

  • 132 Points 100 badge 2x thumb
Found out the solution I guess. It's better to clone the model and just add/remove the fields you needed.