# Duplicate Custom Project Template with Zapier

**URL:** <https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991>\
**Category:** App Integrations\
**Tags:** projects\
**Created:** [25 July 2019 05:24 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991 "2019-07-25T05:24:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waira\_Mendoza\_Angle](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/waira_mendoza_angle/32/37978_2.png) [@Waira\_Mendoza\_Angle](https://forum.asana.com/u/Waira_Mendoza_Angle)\
**Post date:** [25 July 2019 05:24 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/1 "2019-07-25T05:24:52Z")

</div>

Currently there is no Zap to duplicate a pre made Asana project template. This is very frustrating as it requires manually duplicating the required project template within the workflow.

Other task management platforms have this capability within Zapier, could we get it? 🙂

---

<div class="post-metadata">

**Author:** ![Marie](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/marie/32/42208_2.png) [@Marie](https://forum.asana.com/u/Marie)\
**Post date:** [26 July 2019 13:15 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/2 "2019-07-26T13:15:37Z")

</div>

Hi @Waira_Mendoza_Angle and thanks for talking the time to share your feedback with us today. I don’t believe this is in our near-term plans, but I’ll keep you posted on this thread as soon as I have some updates on my end!

---

<div class="post-metadata">

**Author:** ![Michael\_Andrew1](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/michael_andrew1/32/39197_2.png) [@Michael\_Andrew1](https://forum.asana.com/u/Michael_Andrew1)\
**Post date:** [16 August 2019 21:50 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/3 "2019-08-16T21:50:39Z")

</div>

This is something we absolutely need as well. We create hundreds of projects using templates and would love to be able to trigger this with other apps.

---

<div class="post-metadata">

**Author:** ![Billy\_Rickman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/billy_rickman/32/45789_2.png) [@Billy\_Rickman](https://forum.asana.com/u/Billy_Rickman)\
**Post date:** [9 December 2019 23:49 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/4 "2019-12-09T23:49:44Z")

</div>

Totally agree! This is desperately needed!

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [10 December 2019 00:26 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/5 "2019-12-10T00:26:16Z")

</div>

Hi @Billy_Rickman and welcome to the forum!

This is actually easy to do now with my [Flowsana](https://flowsana.net) integration - see the **Auto-create a new project from a template** section of this forum post:

> [@Flowsana: workflow automation for your Asana projects](https://forum.asana.com/t/flowsana-workflow-automation-for-your-asana-projects/40221/22):
>
> Hi all, A new Flowsana update is out, featuring three big additions that a lot of people have been asking for. Add subtasks from a template Now you can have Flowsana automatically add a predefined set of subtasks to a task based on any available If-Then Rule condition. How this works is that you create a task, in any project, and add a set of subtasks underneath it. This task becomes in essence a “subtask template”. (One recommended approach for organizing things is that you create a project,…

Basically what you would do is use Zapier to trigger any of the Flowsana rule conditions - creating a new task, or adding a particular tag to a task, for example - and then that rule condition will trigger the **Auto-create a new project from a template** rule action.

---

<div class="post-metadata">

**Author:** ![anon25235355](https://luna1.co/8d76cd.png) [@anon25235355](https://forum.asana.com/u/anon25235355)\
**Post date:** [13 April 2020 12:11 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/6 "2020-04-13T12:11:08Z")

</div>

Hi All,

I need to have more than one form/template for the different projects/sections. Does anyone know if this is possible? For what I can see we can just have one Form within Asana.

With Flowsana is not possible either.

Thanks!

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [13 April 2020 13:23 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/7 "2020-04-13T13:23:38Z")

</div>

> [@anon25235355](#):
>
> more than one form/template for the different projects/sections

Asana currently doesn’t support more than one form per project. You can vote for an enhancement to allow multiple forms in a project here:

> [@Allow to have multiple forms attached to the same project](https://forum.asana.com/t/allow-to-have-multiple-forms-attached-to-the-same-project/48244):
>
> Multiple Forms per Project Each of our projects have multiple things we could use a form for - only being able to do a single form for an entire project drops the utility of this tool from almost-immeasurable to cute-but-basically-useless. We would like to have different forms for entering notes during different kinds of meetings. A form for creative briefs at the start of the project. A form for gathering information from a client. A different form for gathering other kinds of information from…

If I could do it in Flowsana (I’m the author), I would, but Asana’s programming interface doesn’t provide the means to get past the one-form-per-project limitation.

---

<div class="post-metadata">

**Author:** ![anon25235355](https://luna1.co/8d76cd.png) [@anon25235355](https://forum.asana.com/u/anon25235355)\
**Post date:** [13 April 2020 15:25 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/8 "2020-04-13T15:25:44Z")

</div>

Thanks a lot Phil! And congrats for Flowsana! 👏

---

<div class="post-metadata">

**Author:** ![Don\_Chamberlin](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/don_chamberlin/32/54101_2.png) [@Don\_Chamberlin](https://forum.asana.com/u/Don_Chamberlin)\
**Post date:** [25 April 2020 00:58 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/9 "2020-04-25T00:58:14Z")

</div>

Agreed! Having the ability for Zapier to duplicate an existing Asana project would be amazing!

To our business, Asana’s value is derived from our ability to replicate projects that replicate actions consistently and without mistakes. We don’t need to “re-invent the wheel” each time.

Thanks!

---

<div class="post-metadata">

**Author:** ![Mike\_Townsend](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/mike_townsend/32/55091_2.png) [@Mike\_Townsend](https://forum.asana.com/u/Mike_Townsend)\
**Post date:** [13 May 2020 03:43 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/10 "2020-05-13T03:43:41Z")

</div>

We absolutely need this!!! We are using Zapier-\> Asana to create projects and can’t use Asana unless templates are created automatically.

---

<div class="post-metadata">

**Author:** ![Michael\_Andrew1](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/michael_andrew1/32/39197_2.png) [@Michael\_Andrew1](https://forum.asana.com/u/Michael_Andrew1)\
**Post date:** [13 May 2020 06:11 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/11 "2020-05-13T06:11:56Z")

</div>

As far as I can tell there is nothing special about the template other than that it shows as option when creating a new project. Using the duplicate project API is more or less the same thing.

Therefore you can just use the ASANA api for duplicating a project (use the project Id of the template). We just write some basic code in Code by Zapier using input data from our trigger. Instead of choosing ASANA action choose Code by Zapier and write an API command in JavaScript or Python.

> **[Duplicate a project](https://developers.asana.com/reference/duplicateproject)**
>
> Creates and returns a job that will asynchronously handle the duplication.

---

<div class="post-metadata">

**Author:** ![Mike\_Townsend](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/mike_townsend/32/55091_2.png) [@Mike\_Townsend](https://forum.asana.com/u/Mike_Townsend)\
**Post date:** [14 May 2020 01:06 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/12 "2020-05-14T01:06:05Z")

</div>

hey Michael would you be willing to share the custom code you have to duplicate a project in Zapier?

---

<div class="post-metadata">

**Author:** ![Michael\_Andrew1](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/michael_andrew1/32/39197_2.png) [@Michael\_Andrew1](https://forum.asana.com/u/Michael_Andrew1)\
**Post date:** [14 May 2020 03:47 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/13 "2020-05-14T03:47:07Z")

</div>

Sure. Note that you will need to add info where it says ‘your’. And the input\_data is from the input data fields we created.

> id=‘{your project gid for template}’  
> due\_on=input\_data[‘dueOn’]  
> start\_on=input\_data[‘startOn’]  
> team=‘{your team where project exists}’  
> token=‘{your api token}’  
> name=input\_data[‘projectname’]  
> false=‘false’  
> url=‘[https://app.asana.com/api/1.0/projects/‘+id+’/duplicate](https://app.asana.com/api/1.0/projects/'+id+'/duplicate)’  
> zc='Bearer '+ token  
> data = {“data”:  
> {“include”: [  
> “members”,  
> “notes”,  
> “task\_notes”,  
> “task\_assignee”,  
> “task\_subtasks”,  
> “task\_attachments”,  
> “task\_dates”,  
> “task\_dependencies”,  
> “task\_followers”,  
> “task\_tags”,  
> “task\_projects”  
> ],  
> “name”:name,  
> “schedule\_dates”: {  
> “should\_skip\_weekends”: false,  
> “due\_on”: due\_on  
> },  
> “team”:team  
> }  
> }  
> headers={‘Content Type’:‘application/json’,‘Accept’:‘application/json’,‘Authorization’: zc}  
> response=requests.post(url, json=data,headers=headers)  
> return response.json()

---

<div class="post-metadata">

**Author:** ![Mike\_Townsend](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/mike_townsend/32/55091_2.png) [@Mike\_Townsend](https://forum.asana.com/u/Mike_Townsend)\
**Post date:** [27 May 2020 22:35 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/14 "2020-05-27T22:35:06Z")

</div>

Is there any other code you included? I’m getting this error…

> Traceback (most recent call last):  
> File “”, line 31, in the\_function  
> NameError: name ‘false’ is not defined

Code below(token numbers changed):

id=‘{11771254812342393}’  
token=‘{1/21234222307:e4194f808a11653c815c641af049ebb5}’  
team=‘{117526232307241}’  
name=input\_data[‘projectname’]  
start\_on=input\_data[‘starton’]  
url=‘[https://app.asana.com/api/1.0/projects/‘+id+’/duplicate](https://app.asana.com/api/1.0/projects/'+id+'/duplicate)’  
zc='Bearer '+ token  
data={“data”:  
{“include”: [  
“members”,  
“notes”,  
“task\_notes”,  
“task\_assignee”,  
“task\_subtasks”,  
“task\_attachments”,  
“task\_dates”,  
“task\_dependencies”,  
“task\_followers”,  
“task\_tags”,  
“task\_projects”  
],  
“name”: name,  
“schedule\_dates”: {  
“should\_skip\_weekends”: false,  
“start\_on”: start\_on  
},  
“team”:team  
}  
}

headers={‘Content Type’:‘application/json’,‘Accept’:‘application/json’,‘Authorization’: zc}  
response=requests.post(url,json=data,headers=headers)  
return response.json()

---

<div class="post-metadata">

**Author:** ![Michael\_Andrew1](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/michael_andrew1/32/39197_2.png) [@Michael\_Andrew1](https://forum.asana.com/u/Michael_Andrew1)\
**Post date:** [28 May 2020 02:31 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/15 "2020-05-28T02:31:03Z")

</div>

You probably need to remove {} from around input data. I didn’t mean to include those.

---

<div class="post-metadata">

**Author:** ![FreshyJon](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/freshyjon/32/6475_2.png) [@FreshyJon](https://forum.asana.com/u/FreshyJon)\
**Post date:** [29 May 2020 19:22 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/16 "2020-05-29T19:22:49Z")

</div>

I’m trying to do this too, and here is my screenshot of the code:

 ![](https://us1.discourse-cdn.com/asana/original/3X/7/8/78048241f02c2705a4b59ea9134ba853741676ba.png)

I’m getting an error of `ReferenceError: Invalid left-hand side in assignment` when I test it.

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [29 May 2020 19:30 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/17 "2020-05-29T19:30:03Z")

</div>

@FreshyJon,

I’m sure that issue is coming from

**false = ‘false’**

That has to be an typo in the previous code that you’re working off of.

---

<div class="post-metadata">

**Author:** ![FreshyJon](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/freshyjon/32/6475_2.png) [@FreshyJon](https://forum.asana.com/u/FreshyJon)\
**Post date:** [29 May 2020 19:30 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/18 "2020-05-29T19:30:52Z")

</div>

Yeah, I just noticed that and took it out. It’d now giving me `ReferenceError: id is not defined`

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [29 May 2020 19:43 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/19 "2020-05-29T19:43:06Z")

</div>

Ouch, that’s a tougher one - @Michael_Andrew1 might know what’s causing that?

---

<div class="post-metadata">

**Author:** ![FreshyJon](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/freshyjon/32/6475_2.png) [@FreshyJon](https://forum.asana.com/u/FreshyJon)\
**Post date:** [29 May 2020 20:09 UTC](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991/21 "2020-05-29T20:09:53Z")

</div>

Was able to get this to work by using this method instead:

 ![](https://us1.discourse-cdn.com/asana/original/3X/9/7/9740c7db83bc9cc0599e78080b20e70bd4ee8e9e.png)

Though, I do wonder if all of those `include` are necessary, or which ones are even accurate/valid. I don’t see a full list of options within the API documentation.

[Next page](https://forum.asana.com/t/duplicate-custom-project-template-with-zapier/55991.md?page=2)
