fetch custom Entity Scorpes in an enum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1825

    #1

    fetch custom Entity Scorpes in an enum

    I am developing an extension, where I have an enum field, which options I would like to populate with all custom scopes. So far I only get all scopes, what is not convenient and also thes are displayed with ther names not with their labels.
    How can I achieve that?
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9592

    #2
    You would need to create a custom view that will filter out non custom scopes. The same view as this but with the filter logic in the checkAvailability method:

    Code:
            if (!defs.isCustom) {
                return false;
            }
    
            return true;
    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

    Working...