# Missing scripting functions

**URL:** <https://forum.inductiveautomation.com/t/missing-scripting-functions/22623>\
**Category:** Ignition Early Access\
**Created:** [February 15, 2019, 7:52pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623 "2019-02-15T19:52:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![martinel3746](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@martinel3746](https://forum.inductiveautomation.com/u/martinel3746)\
**Post date:** [February 15, 2019, 7:52pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/1 "2019-02-15T19:52:52Z")

</div>

I created a Vision window where Engineers can enter a Device Name, IP address and select a driver from a drop-down.  
When they click the 'Create Device' button I use:

> system.device.addDevice

and

> system.tag.addTag

To create the devices and tags.  
I have complete security control over which users can access the Device Configuration window and none of them need access to the Gateway or the Designer.  
I even test the IP to verify it's valid and then ping it before attempting to create the device and tags.

I am however concerned because those commands (system.device and system.tag.addTag) are not present in Ignition 8 Beta.  
Have they been moved to a place I haven't found yet?  
Have they been completely removed (not even deprecated)?  
Version 8 is not an option for me without them.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 15, 2019, 8:03pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/2 "2019-02-15T20:03:01Z")

</div>

`addTag` exists and is callable but is deprecated and hidden. It has a non-deprecated replacement.

The `system.device` functions are missing because they haven’t been ported yet. Should happen before RC.

---

<div class="post-metadata">

**Author:** ![larryjones](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/larryjones/32/4102_2.png) [@larryjones](https://forum.inductiveautomation.com/u/larryjones)\
**Post date:** [April 18, 2019, 12:03am UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/3 "2019-04-18T00:03:33Z")

</div>

What is the non-deprecated replacement for the addTag function?

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [April 18, 2019, 12:35am UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/4 "2019-04-18T00:35:18Z")

</div>

See [system.tag.configure](https://docs.inductiveautomation.com/display/DOC80/system.tag.configure).

---

<div class="post-metadata">

**Author:** ![larryjones](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/larryjones/32/4102_2.png) [@larryjones](https://forum.inductiveautomation.com/u/larryjones)\
**Post date:** [April 18, 2019, 2:33am UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/5 "2019-04-18T02:33:44Z")

</div>

I look forward to the documentation update that includes a code snippet. I’d like to see examples of how to create a list of tag definitions.

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [April 18, 2019, 4:34am UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/6 "2019-04-18T04:34:11Z")

</div>

I second this! wordswordswords

---

<div class="post-metadata">

**Author:** ![martinel3746](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@martinel3746](https://forum.inductiveautomation.com/u/martinel3746)\
**Post date:** [April 18, 2019, 2:34pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/7 "2019-04-18T14:34:27Z")

</div>

I played with system.tag.configure a little and am pleased with what I've seen so far.  
Here are Code Snippits using the script console:  
To create a new Integer tag with Null value:

> tagPath = '[default]'  
> tagAttributes = {}  
> tagAttributes['name'] = 'Test'  
> retVal = system.tag.configure( tagPath, tagAttributes )  
> print retVal
> 
> [Good]

Code Snippit to change the tag from Integer to String, set the value, add tooltip and documentation. Note that the 'o' to override was necessary.

> tagPath = '[default]'  
> tagAttributes = {}  
> tagAttributes['name'] = 'Test'  
> tagAttributes['tooltip'] = 'Test Tag'  
> tagAttributes['documentation'] = 'This is a test tag.'  
> tagAttributes['dataType'] = 'String'  
> tagAttributes['value'] = 'Hello'  
> retVal = system.tag.configure( tagPath, tagAttributes, 'o' )  
> print retVal
> 
> [Good]

I got lucky guessing the capitalization.  
@larryjones and @joshdunstan are right. We need wordswordswords

---

<div class="post-metadata">

**Author:** ![martinel3746](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@martinel3746](https://forum.inductiveautomation.com/u/martinel3746)\
**Post date:** [April 18, 2019, 2:36pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/8 "2019-04-18T14:36:09Z")

</div>

Thanks @witman for the link!

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [April 22, 2019, 9:59pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/9 "2019-04-22T21:59:37Z")

</div>

Thanks! By the way… wordswordswords was to bring the post character count up to I could post it. I wasn’t just being rude!

---

<div class="post-metadata">

**Author:** ![joshdunstan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/joshdunstan/32/43306_2.png) [@joshdunstan](https://forum.inductiveautomation.com/u/joshdunstan)\
**Post date:** [April 22, 2019, 10:00pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/10 "2019-04-22T22:00:48Z")

</div>

Here’s an example I got from support, also:

```auto
config = system.tag.getConfiguration("[default]Testing/24/nested",0)
config[0]['parameters']['top'] = '123'
system.tag.configure("[default]Testing/24/nested",config)

```

---

<div class="post-metadata">

**Author:** ![Tim](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim/32/3361_2.png) [@Tim](https://forum.inductiveautomation.com/u/Tim)\
**Post date:** [February 5, 2020, 5:44pm UTC](https://forum.inductiveautomation.com/t/missing-scripting-functions/22623/11 "2020-02-05T17:44:55Z")

</div>

system.tag.addTag does not appear to work with historical tags in 8.0.7. A standard memory tag works as before. I’ll migrate to system.tag.configure.
