Custom filter from another entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cossplay
    Junior Member
    • Aug 2021
    • 18

    #1

    Custom filter from another entity

    Hi!

    I have custom entity ( HmsUsers ) and its related ( BelongsTo ) to Accounts

    Account have enum field of account country. I need the filter inside ( HmsUsers ) entity of account country.

    So, in entity ( HmsUsers ) i need filtering by account country ( cpadminCountry field in Account ).
  • rabii
    Active Community Member
    • Jun 2016
    • 1339

    #2
    if you have a relationship account Has Many HmsUsers then you can go to administration / entity manager / HmsUsers and adda new foreign field (select account and choose cpadminCountry as your foreign field), then go to search filter on HmsUsers and add new field there.
    Rabii
    EspoCRM & Web Dev

    🔗 See what I’ve built for EspoCRM

    Comment


    • cossplay
      cossplay commented
      Editing a comment
      Thank you!
Working...