# Custom tool for tags creation

**URL:** <https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 21, 2023, 10:30pm UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228 "2023-11-21T22:30:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 21, 2023, 10:30pm UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228/1 "2023-11-21T22:30:08Z")

</div>

Hi all  
My customer would like to create Tags without using Ignition Designer. Is there any endpoint to connect to for Tags creation from outside? Or a tool like gcu, that could get a CSV file in and create gateway Tags accordingly?

Thanks in Advance, regards

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [November 21, 2023, 10:33pm UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228/2 "2023-11-21T22:33:14Z")

</div>

Yes, they can do this from vision (definitely, have done it) client, probably perspective (with a bit more work due to file access restrictions).

Open the CSV file. Parse it. Script with Jython to create the new tags.

```auto
# This example will add a new OPC Tag. It can be further expanded to modify more
# properties on the Tag. Additionally, this example can be used to edit an existing Tag
# by setting the baseTagPath to a Tag that already exists, and by modifying the collision policy.
 
# The provider and folder the Tag will be placed at. 
baseTagPath = "[default]MyFolder"
 
# Properties that will be configured on that Tag.
tagName = "myNewTag"
opcItemPath = "ns=1;s=[Simulator]_Meta:Sine/Sine0"
opcServer = "Ignition OPC-UA Server"
valueSource = "opc"
sampleMode = "TagGroup"
tagGroup = "Default"
 
# Configure the tag.
tag = {
            "name": tagName,           
            "opcItemPath" : opcItemPath,
            "opcServer": opcServer,
            "valueSource": valueSource,
            "sampleMode" : sampleMode,
            "tagGroup" : tagGroup
        }
 
# Set the collision policy to Abort. Thus, if a Tag already exists at the base path,
# we will not override the Tag. If you are overwriting an existing Tag, then set this to "o".
collisionPolicy = "a"
 
# Create the Tag.
system.tag.configure(baseTagPath, [tag], collisionPolicy)

```

[https://docs.inductiveautomation.com/display/DOC81/system.tag](https://docs.inductiveautomation.com/display/DOC81/system.tag)

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

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 21, 2023, 10:40pm UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228/3 "2023-11-21T22:40:08Z")

</div>

> [@pgmo](#):
>
> Is there any endpoint to connect

No.

Everything is supposed to be an API when 8.3 comes out, though.

In addition to a dedicated Vision or Perspective solution, you could also use WebDev to create an API.

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [November 21, 2023, 10:41pm UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228/4 "2023-11-21T22:41:23Z")

</div>

[![](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/4/149e2dd9ee1b03707f7f00648794417a79d1a645.jpeg "add tags from vision client demo ignition 7.9") ](https://www.youtube.com/watch?v=mYPxcihFVnA)

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 22, 2023, 8:52am UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228/5 "2023-11-22T08:52:32Z")

</div>

> [@Matrix\_Engineering](#):
>
> they can do this from vision

Hi @Matrix_Engineering, thanks for your suggestion: I know I could, but I was wandering if there were anything ready to go.

> [@pturmel](#):
>
> Everything is supposed to be an API when 8.3 comes out, though

Hi @pturmel , that sounds very good! Will that mean that through RESTful webservices calls it will be possible to configure some or any gateway/project parameters?

Thanks, regards

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 22, 2023, 12:59pm UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228/6 "2023-11-22T12:59:04Z")

</div>

> [@pgmo](#):
>
> webservices calls it will be possible to configure some or any gateway/project parameters

That's what Carl said at ICC this year.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [November 22, 2023, 2:44pm UTC](https://forum.inductiveautomation.com/t/custom-tool-for-tags-creation/82228/7 "2023-11-22T14:44:54Z")

</div>

Very nice, thanks @pturmel
