# Accessing script field value from another script - is it possible?

**URL:** <https://discuss.elastic.co/t/accessing-script-field-value-from-another-script-is-it-possible/79603>\
**Category:** Elasticsearch\
**Created:** [March 22, 2017, 3:02pm UTC](https://discuss.elastic.co/t/accessing-script-field-value-from-another-script-is-it-possible/79603 "2017-03-22T15:02:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Golubev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergey_golubev/32/16455_2.png) [@Sergey\_Golubev](https://discuss.elastic.co/u/Sergey_Golubev)\
**Post date:** [March 22, 2017, 3:02pm UTC](https://discuss.elastic.co/t/accessing-script-field-value-from-another-script-is-it-possible/79603/1 "2017-03-22T15:02:49Z")

</div>

Hi guys!

Is it possible to access one script field from another script? Not sure what I'm doing is correct. I'm planning to do lookup in some another index with native script returning dictionary and then to access specific field from "subsequent" Painless inline script with takes id of found document and tries to look for this id key in resulted dictionary from 1st script.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 19, 2017, 3:02pm UTC](https://discuss.elastic.co/t/accessing-script-field-value-from-another-script-is-it-possible/79603/2 "2017-04-19T15:02:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
