https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
j

jolly-journalist-68574

05/26/2023, 8:35 PM
When setting up the Experiment Assignment Queries, what is
experiment_id, experiment_name, variation_name
? This is the SDK output that our Engineers are sending to me:
Copy code
"experiment": {
      "force": null,
      "variations": [
        {
          "id_2": 2,
          "id_3": 3,
          "id_1": 1
        },
        {
          "id_1": 4,
          "id_2": 5,
          "id_3": 6
        },
        {
          "id_1": 7,
          "id_2": 8,
          "id_3": 9
        }
      ],
      "namespace": null,
      "hashAttribute": "id",
      "key": "test-json",
      "weights": [
        0.3334,
        0.3333,
        0.3333
      ],
      "active": true,
      "coverage": 1,
      "condition": null
    },
    "experimentResult": {
      "value": {
        "id_1": 7,
        "id_2": 8,
        "id_3": 9
      },
      "hashUsed": true,
      "hashAttribute": "id",
      "hashValue": "ec62aa1bc0b142348b3ea6ea0382a722",
      "inExperiment": true,
      "variationId": 2
    }
• Feature Key = Experiment ID? like
test-json
in the example above • What is an example of "Experiment Name"? Where in the GrowthBook UI is that input? • How do we get "Experiment Name" and "Variation Name" to be passed back by the SDK?
f

fresh-football-47124

05/26/2023, 8:50 PM
The experiment_id would be the ‘key’ inside the ‘experiment’ object. and variation_id would be the index of the variation. In. your image, the experiment name and variation name you’ve likely added as dimensions
j

jolly-journalist-68574

05/26/2023, 8:51 PM
experiment_name
and
variation_name
auto populate there as "Required columns" when I check that "Use Name Columns" option to the left
So I assumed they are GrowthBook fields? I see an option to add a variation name here:
But what is "Experiment Name"
f

fresh-football-47124

05/26/2023, 8:53 PM
yes
if you hover over the (i) icon
it should explain. - I believe its just used in the API or for naming
but not passed in the SDK response - unless that’s new
j

jolly-journalist-68574

05/26/2023, 8:58 PM
Hm, ok. Still slightly confused on where 'Experiment Name' gets populated, but let me try putting in the optional 'Variation Name' and seeing if that gets returned back in the SDK. The confusing thing is that it sometimes pre-populates the variation name, so I would expect that to return in the SDK, but let me try overwriting the pre-populated values and seeing if that returns:
10 Views