# Resourcetype module id and types reference?

**URL:** <https://forum.inductiveautomation.com/t/resourcetype-module-id-and-types-reference/75362>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [June 21, 2023, 8:14pm UTC](https://forum.inductiveautomation.com/t/resourcetype-module-id-and-types-reference/75362 "2023-06-21T20:14:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [June 21, 2023, 8:14pm UTC](https://forum.inductiveautomation.com/t/resourcetype-module-id-and-types-reference/75362/1 "2023-06-21T20:14:39Z")

</div>

Trying to find what the moduleid and typeid would be for project script resources, perspective views, etc. Is there a list of what these exact values are for different resource types?

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [June 21, 2023, 8:33pm UTC](https://forum.inductiveautomation.com/t/resourcetype-module-id-and-types-reference/75362/2 "2023-06-21T20:33:38Z")

</div>

Ah, was able to find what I needed by just getting a project resource of the type and calling getModuleId and getTypeId.

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [July 24, 2023, 2:04pm UTC](https://forum.inductiveautomation.com/t/resourcetype-module-id-and-types-reference/75362/3 "2023-07-24T14:04:29Z")

</div>

bumping this back up, as I'm running into this issue again with resources that arent located in the resource tree. For something like the resource com.inductiveautomation.perspective\session-props, where would I find information on what the String 'typeid' that ignition considers it as?

For instance, when trying to get a specific resource from a string of the path, you have to have the path, and the correct ResourceType

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/2/c25e0d2939adb57c4ad7b3dda3897c756833d973.png)

But if you want to see this resource type, you first need the resource in order to call "getResourceType" or something of the like. And looking through the getAllResources Map _can_ get the resource, but in order to pull it out of the map you need the ResourceId, which can only be constructed from a ProjectResource. And inspecting the map in debug does not show the type id

I may just be missing something overall, but I feel stuck in a Catch-22

EDIT: nevermind, the map does show it, just had to dig a bit deeper

---

<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:** [July 24, 2023, 2:08pm UTC](https://forum.inductiveautomation.com/t/resourcetype-module-id-and-types-reference/75362/4 "2023-07-24T14:08:29Z")

</div>

There isn't anything like a central directory. The project system isn't really built around the idea that some outside module or process is going to need to know about all resource types, but rather that each subsystem knows about its own resources.

Most resources have the `ResourceType` specified as a static field on the class. In this case, `SessionPropsConfig.RESOURCE_TYPE` would be your static reference to it. Your module would need to depend on the Perspective module in order to access it, though.

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [July 24, 2023, 2:09pm UTC](https://forum.inductiveautomation.com/t/resourcetype-module-id-and-types-reference/75362/5 "2023-07-24T14:09:37Z")

</div>

thank you! exactly the kind of thing i was looking for
