Can parameters have dimensions other than "report" ?

Ethan_Eversole
edited July 23 in Connectors

I'm working on a custom connector, and have a quick question.  In "Advanced Mode", is the "Show When" input able to use dimensions other than "report"? Trying to make it so that when a user selects a "Geographic Breakdown" (e.g. Geographic Breakdown == 'State'), a new "State" parameter appears where a user can select the state they want to pull data for.  I've been unsuccessful up to this point, and I'm wondering if it is because you can't use dimensions other than "report" within the "Show When" input.

Any guidance will be greatly appreciated!

Best Answer

  • ArborRose
    ArborRose Coach
    Answer ✓

    I think you can use other parameters are long as they are appropriately created and referenced. Something like this maybe? Making sure you keep everything case sensitive.

    {
    "parameters": [
    {
    "name": "Geographic Breakdown",
    "type": "select",
    "label": "Geographic Breakdown",
    "values": ["Country", "State"],
    "default": "Country"
    },
    {
    "name": "State",
    "type": "select",
    "label": "State",
    "values": ["California", "Texas", "New York", ...], // Add all states
    "showWhen": {
    "field": "Geographic Breakdown",
    "equals": "State"
    }
    }
    ]
    }

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

Answers

  • ArborRose
    ArborRose Coach
    Answer ✓

    I think you can use other parameters are long as they are appropriately created and referenced. Something like this maybe? Making sure you keep everything case sensitive.

    {
    "parameters": [
    {
    "name": "Geographic Breakdown",
    "type": "select",
    "label": "Geographic Breakdown",
    "values": ["Country", "State"],
    "default": "Country"
    },
    {
    "name": "State",
    "type": "select",
    "label": "State",
    "values": ["California", "Texas", "New York", ...], // Add all states
    "showWhen": {
    "field": "Geographic Breakdown",
    "equals": "State"
    }
    }
    ]
    }

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **