Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

How to access channel data sent to Healthcare Bot. #3

Open

Description

I'm sending channel data from StartBotConversationAsync() in directlineClient to the healthcare Bot.

var userMessage = new Activity
            {
                From = new ChannelAccount(_userService...),
                Text = ActivityTextHelper.StartHealthcareBot,
                Type = ActivityTypes.Message,
                ChannelData = questionnaireViewModels
            };

The problem I'm having is accessing the channel data from the healthcare bot service. Is there a way that I can access ChannelData from the healthcare bot service? Thanks in advance.

Activity

  1. AdamWalkerMicrosoft commented on Jul 6, 2020

    @AdamWalkerMicrosoft
    Contributor

    Hi, Channel data is not accessible in the scenario authoring tools in Healthcare Bot. To transfer data to Healthcare bot you can pass custom variables in the Invoke event. This is then accessible in the scenarioArgs in Healthcare Bot.
    https://docs.microsoft.com/en-us/HealthBot/integrations/programmatic_invocation
    Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions