fetch custom Entity Scorpes in an enum

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

    #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
    • 9726

    #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;

    Comment

    Working...