# Write the value to the tag!

**URL:** <https://forum.inductiveautomation.com/t/write-the-value-to-the-tag/23845>\
**Category:** Module Development\
**Created:** [April 4, 2019, 10:17am UTC](https://forum.inductiveautomation.com/t/write-the-value-to-the-tag/23845 "2019-04-04T10:17:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![war\_vortex](https://avatars.discourse-cdn.com/v4/letter/w/6bbea6/32.png) [@war\_vortex](https://forum.inductiveautomation.com/u/war_vortex)\
**Post date:** [April 4, 2019, 10:17am UTC](https://forum.inductiveautomation.com/t/write-the-value-to-the-tag/23845/1 "2019-04-04T10:17:22Z")

</div>

Hi  
Write the value to the tag. Is it correct?

```
private GatewayContext gatewayContext;
public TagUtil(GatewayContext gatewayContext) {
    this.gatewayContext = gatewayContext;
}
public void write(String tagPath, Object value) {
    List<WriteRequest<TagPath>> list = new ArrayList<>();
    list.add(new BasicAsyncWriteRequest(parseTagPath(tagPath), value));
    gatewayContext.getTagManager().write(list, null, true);
}

```

Any help  
thank
