# How to dynamically format assertion in Postman

**URL:** <https://community.postman.com/t/how-to-dynamically-format-assertion-in-postman/76572>\
**Category:** Help Hub\
**Tags:** variables, scripts\
**Created:** [March 7, 2025, 9:50am UTC](https://community.postman.com/t/how-to-dynamically-format-assertion-in-postman/76572 "2025-03-07T09:50:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [March 7, 2025, 6:34pm UTC](https://community.postman.com/t/how-to-dynamically-format-assertion-in-postman/76572/3 "2025-03-07T18:34:57Z")

</div>

You need to read the other thread, which should explain why you can’t target elements like this.

[Concade dynamic variable with pm.response.json() to fetch response value - Ask the Experts and Postman Tips - Postman Community](https://community.postman.com/t/concade-dynamic-variable-with-pm-response-json-to-fetch-response-value/76566/4)

You cannot target the element using a string using plain old JavaScript.

You can however, use Lodash.

---

_[View the full topic](https://community.postman.com/t/how-to-dynamically-format-assertion-in-postman/76572)._
