# How to create templates using UserAdmin Party

**URL:** <https://forum.canton.network/t/how-to-create-templates-using-useradmin-party/4266>\
**Category:** App Development\
**Tags:** trigger, damlhub\
**Created:** [April 7, 2022, 7:09am UTC](https://forum.canton.network/t/how-to-create-templates-using-useradmin-party/4266 "2022-04-07T07:09:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Max](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/max/32/2128_2.png) [@Max](https://forum.canton.network/u/Max)\
**Post date:** [April 8, 2022, 12:16am UTC](https://forum.canton.network/t/how-to-create-templates-using-useradmin-party/4266/5 "2022-04-08T00:16:40Z")

</div>

Was able to finally import another module. My issue was

I started the repo using `create-daml-app`, and the repo itself was a daml project  
So when I tried to do `daml new triggers` within this repo, I wasn’t able to create a daml project within the daml project.

What I did to resolve it  
Create a new directory, move the entire create-daml-app into that repo.

- at the parent level directory, `daml new triggers` to create another daml project.

I had a lot of trouble trying to link up the dependencies properly but these sources helped:  
starting two separate daml projects in one repo

> [@Visual Studio Code "Could not find module Daml.Script" when multiple Daml projects open](https://discuss.daml.com/t/visual-studio-code-could-not-find-module-daml-script-when-multiple-daml-projects-open/4142):
>
> Hi, I created a new directory, and from there issued the following commands: daml new test1 daml new test2 daml studio When Visual Studio starts if I navigate to either “Main.daml” file I see the red wiggly line under “import Daml.Script” and the error is “Could not find module ‘Daml.Script’”. The option to run the script in Visual Studio is not there. If I run “daml studio” from directory “test1” or “test2” then there is no error and the script works fine. This used to work ok prior to Daml…

Importing templates into another module

> [@Importing templates into new modules](https://discuss.daml.com/t/importing-templates-into-new-modules/1310):
>
> In Main.daml I have template Asset with issuer : Party owner : Party name : Text dateOfAppraisal : Date value : Decimal where ensure name /= "" signatory issuer but when I try to import that template into a Treasury.daml with module Treasury where import Main (Asset) template TreasurerRole with treasurer : Party where signatory treasurer controller treasurer can CreateAsset : ContractId Asset with owner : Party …

Import choices from a template to another module

> [@Is it possible to import a specific template from a module?](https://discuss.daml.com/t/is-it-possible-to-import-a-specific-template-from-a-module/222):
>
> Is it possible to import a specific template from a module?

---

_[View the full topic](https://forum.canton.network/t/how-to-create-templates-using-useradmin-party/4266)._
