# Accessing Payload Data with Custom Html Blocks

**URL:** <https://forums.losant.com/t/accessing-payload-data-with-custom-html-blocks/3430>\
**Category:** Help\
**Tags:** dashboard, workflow\
**Created:** [November 26, 2020, 9:02pm UTC](https://forums.losant.com/t/accessing-payload-data-with-custom-html-blocks/3430 "2020-11-26T21:02:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Rhodes1](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@Daniel\_Rhodes1](https://forums.losant.com/u/Daniel_Rhodes1)\
**Post date:** [November 26, 2020, 9:02pm UTC](https://forums.losant.com/t/accessing-payload-data-with-custom-html-blocks/3430/1 "2020-11-26T21:02:31Z")

</div>

I have a Geofence workflow that shows if the waypoint is inside or outside the geofence (All Data is created from the simulator). The output is a boolean to check if the GPS locations are inside the geofence or not.

I want to be able to access this data in one of my custom HTML blocks on my dashboard. Don’t know how to access this data as a query?

Trying to find out how can I access the payload with my custom HTML blocks.

My Workflow Diagram.

 ![workflowGeofence](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/0/096745e4138289ce7ed9fa95a561281f660fa3c3.png)

Please let me know if I need to show more information.

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [November 30, 2020, 4:47pm UTC](https://forums.losant.com/t/accessing-payload-data-with-custom-html-blocks/3430/4 "2020-11-30T16:47:13Z")

</div>

@Daniel_Rhodes1,

Could you explain more about your use case here? This could be possible but it would depend on what you’re doing ( and how you want to access ) with the value within the block itself.

The Custom HTML block has access to your device queries and context variables. Context Variables can be generated in a workflow and passed to a Dashboard. For more information on this, I’d recommend checking out the Dashboard and Experience courses in Losant University.

---

<div class="post-metadata">

**Author:** ![Daniel\_Rhodes1](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@Daniel\_Rhodes1](https://forums.losant.com/u/Daniel_Rhodes1)\
**Post date:** [November 30, 2020, 7:24pm UTC](https://forums.losant.com/t/accessing-payload-data-with-custom-html-blocks/3430/5 "2020-11-30T19:24:01Z")

</div>

@anaptfox

Hey, I have solved this myself. Yeah sorry, I just made a simple attribute of the result. Then I could access it from the dashboard.
