Search code examples
c#botframeworkparameter-passingschemabot-framework-composer

How to pass variable from Botframework Composer to custom action?


I want to pass a value that comes from user input to a custom action. The value is stored in the user.age property but in the argument field of the custom action in composer you can not enter variable names, the input fields do only accept int values

How can I pass user.age to the MultiplyDialog custom action?

I tried the MultiplyDialog example

enter image description here

MultiplyDialog.schema

  ...
  "arg1": {
             "$ref": "schema:#/definitions/integerExpression",
             "title": "Arg1",
             "description": "Value from callers memory to use as arg 1"
       }
  ...

Solution

  • here steps how to get the values from the user ( If use the "user.age" also it should work)

    enter image description here