web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How do i read the cust...
Copilot Studio
Unanswered

How do i read the custom event value in Copilot studio

(0) ShareShare
ReportReport
Posted on by 6

I am sending the custom event from client webchat like below but i can't find a way to read the value in Copilot studio ? can you please suggest how to read ? I have a requirement to pass the data on behind screen with out user seeing.

store.dispatch( {
type: 'WEB_CHAT/SEND_EVENT',
payload:
{
name: 'EVENT_GET_POSITION',
value: { latitude: '12345', longitude: '09886', text:'I am new here' }
}
} );

 
Categories:
I have the same question (0)
  • adilei Profile Picture
    Microsoft Employee on at

    Create a new topic with an "event received" trigger and populate a variable from System.Activity.Value.

     

    For example:

     

    kind: AdaptiveDialog
    beginDialog:
     kind: OnEventActivity
     id: main
     eventName: myEvent
     actions:
     - kind: SetVariable
     id: setVariable_ZaaEfM
     variable: Topic.myPayload
     value: =Text(System.Activity.Value)
  • manianna Profile Picture
    6 on at

    Thank you for providing the solution. I did implement the way you suggested but i am getting the content Validation Error. Attached the screenshot for your reference.

    When I go the system properties in a topic, I don't find anything called Activity.value. 

     

    manianna_0-1711380996415.pngmanianna_3-1711381327297.png

     

    manianna_1-1711381063784.pngmanianna_2-1711381079385.png

     

  • BradLawrence Profile Picture
    Microsoft Employee on at

    Main,

     

    The Activity.Value doesn't show up in the drop down, but it is available as a System variable.  you will want to use the parse variable node to get the value of it before trying to use it directly.  Here is an example from a deployed bot receiving a custom event and parsing the data.  The parse node will parse the JSON into a target variable that you can then use as normal.

     

    parseEventValue.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 619

#2
chiaraalina Profile Picture

chiaraalina 163 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 147

Last 30 days Overall leaderboard