# How to pass a tag in call.registerInParam

**URL:** <https://forum.inductiveautomation.com/t/how-to-pass-a-tag-in-call-registerinparam/12744>\
**Category:** Ignition\
**Created:** [March 2, 2017, 3:51pm UTC](https://forum.inductiveautomation.com/t/how-to-pass-a-tag-in-call-registerinparam/12744 "2017-03-02T15:51:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwaynesmith](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mwaynesmith](https://forum.inductiveautomation.com/u/mwaynesmith)\
**Post date:** [March 2, 2017, 3:51pm UTC](https://forum.inductiveautomation.com/t/how-to-pass-a-tag-in-call-registerinparam/12744/1 "2017-03-02T15:51:20Z")

</div>

I would like to pass a tag value into a SP with the call.registerInParam and I do not know the syntax.  
Something simple, I’m sure.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [March 2, 2017, 4:18pm UTC](https://forum.inductiveautomation.com/t/how-to-pass-a-tag-in-call-registerinparam/12744/2 "2017-03-02T16:18:01Z")

</div>

`
myValue = system.tag.getTagValue("[default]MyTag")`

---

<div class="post-metadata">

**Author:** ![mwaynesmith](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@mwaynesmith](https://forum.inductiveautomation.com/u/mwaynesmith)\
**Post date:** [March 2, 2017, 4:26pm UTC](https://forum.inductiveautomation.com/t/how-to-pass-a-tag-in-call-registerinparam/12744/3 "2017-03-02T16:26:21Z")

</div>

Thanks,  
So, a two step process? No way to specify the tag itself in the call.registerInParam?

---

<div class="post-metadata">

**Author:** ![anna](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@anna](https://forum.inductiveautomation.com/u/anna)\
**Post date:** [March 3, 2017, 11:26pm UTC](https://forum.inductiveautomation.com/t/how-to-pass-a-tag-in-call-registerinparam/12744/4 "2017-03-03T23:26:35Z")

</div>

mwaynesmith, you can make it one line of code:

`call.registerInParam("arg_one", system.db.INTEGER, system.tag.getTagValue("[default]MyIntTag").value)
`

… but you will still need to read tag value - it is value, not the tag that you want to pass. So yes, a 2-step process.
