# Programatically search through templates?

**URL:** <https://forum.inductiveautomation.com/t/programatically-search-through-templates/19862>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [September 27, 2018, 5:05pm UTC](https://forum.inductiveautomation.com/t/programatically-search-through-templates/19862 "2018-09-27T17:05:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 27, 2018, 6:58pm UTC](https://forum.inductiveautomation.com/t/programatically-search-through-templates/19862/2 "2018-09-27T18:58:02Z")

</div>

The following might get you started. You'll have to work out how to deserialize. Seriously unsupported....

> [@List project templates](http://forum.inductiveautomation.com/t/list-project-templates/9925/4):
>
> A little late on this one. In case anyone is looking for an answer. def getTemplateResourceType(): """Resource type string.""" return 'component-template' def getTemplateFilter(): """Filter throw away for template types.""" return lambda x: bool(x.getResourceType() == getTemplateResourceType()) def getContext(event): """Context.""" return event.source.parent.getAppContext() def getProjectReference(event): """Project reference.""" return getContext(event).getProject() def getTemp…

---

_[View the full topic](https://forum.inductiveautomation.com/t/programatically-search-through-templates/19862)._
