Get model with parent model attribute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jgarcia
    Junior Member
    • Aug 2023
    • 18

    Get model with parent model attribute

    Hello, I have a question, please could you guide me?

    I am creating a custom js file in client/src/handlers/select-related , I would like to know if there is a way to access the registry attributes that correspond to the external id attribute of the main model to which I have access.

    First of all thanks for any help
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    Hi, Either create a foreign field and access it from the current model or just make an API request to the backend to fetch it. As select-related is async.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • jgarcia
      jgarcia commented
      Editing a comment
      Thank you very much for the quick response, I used the first option you gave me but I will also try to do it through an API request.
Working...