How do i reference “distributeLeadshandler.js” in a button in "Leads.json"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • macMonkey
    Junior Member
    • Nov 2024
    • 18

    How do i reference “distributeLeadshandler.js” in a button in "Leads.json"

    According to the file structure in the picture, how can i refer “distributeLeadshandler.js” as the handler in the “Leads.json” code:

    Code:
    {
    "menu": {
    "list": {
    "buttons": [
    "__APPEND__",
    {
    "label": "Distribute Leads",
    "name": "distributeLeadsButton",
    "action": "distributeLeads",
    "style": "default",
    "acl": "edit",
    "aclScope": "User",
    "handler": “custom:distributeLeadshandler",
    "actionFunction": "openDistributeSlider"
    }
    ]
    }
    }
    }
  • Kharg
    Senior Member
    • Jun 2021
    • 410

    #2
    The handler location is not custom: but lead-manipulation-package:distributeLeadshandler same for the .js module

    Comment

    Working...