multiple child records on a model

Jack SanfordJack Sanford San Antonio, TX 💎💎
edited September 1, 2016 in Ideas
It would be great to add Child Records more than once to a model, so that you could have different Conditions on each instance. Similar to adding aggregations more than once, instead of checking a box, you click on the child record type and it adds it once to the model...


1
1 votes

Not Planned · Last Updated

Comments

  • Rob HatchRob Hatch 🛠️ 
    edited September 1, 2016
    Yes Jack.  That would be great.   However I think thats going to run into some core SOQL limitations..... 

    You could however do this with 2 or more models linked with UI Only formula fields. 

    So.... create an account model. 
    Then create contact aggregate models that count contacts, group by account,  and filter to only accounts in first model, and some field like "type"
    In the account model add model lookup formula fields:   
        MODEL_LOOKUP("ContactModel","CountId","AccountID",{{Id}})

    Rinse and repeat on the other type values to get counts of contacts by different types in your account data.   (Bye bye fomula fields....)

    You might want to add a model condition to the account model so when it is requeried,  conditions are passed to the contact models and they get requieried.  You know,  keep it all in synch and don't try to download all your records at the same time...

    Fun...
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!