Expand my Community achievements bar.

URL string to create project using a specific template

Avatar

Level 8
Hello, Does anyone know if there is a URL string we could create to allow the creation of a project using a particular template? This would be a hyperlink they would click on in a document outside of Workfront to bypass the Project -> + New Project option and scrolling through a ton of template options. For example, it would be something like https://xxxx.my.workfront.com/addProject? templateID=123456789 Adina Adina Pierce
9 Replies

Avatar

Community Advisor
Could you provide them with the link to the template, then direct them to use the Template Actions dropdown and select Create Project? It doesn't get them directly to a new project, but a couple fewer clicks and less scrolling.

Avatar

Level 2
That would be great to know. I wonder if an API expert could figure it out. I can see this being really useful for PMs to have a reference page with links to quickly create a project from the few templates that apply to their projects. Love the idea! Cory Anderson Cisco Systems- Communication Services

Avatar

Level 10
Hi - you can definitely do this via the API. My preferred method would be to use a service like Fusion, where you can setup a web-based form that users can go to using their web browser. They would need to enter the template name (or ID) that they want to use, plus something to identify them (like their email address), and optionally something like a project name. Fusion can then do a series of API calls to create a project, attach a template, assign the project owner, etc. Another option is that users could a desktop tool such as Postman to send the API calls, but I think it would get too complex for most people. I'm not aware of any way that users could do this via a URL in their browser. There are various GET API calls you can do, but to my understanding POST (to create items) can't be done without a browser extension. David Cornwell

Avatar

Level 7
Ah, yep! It can be done via the API. People currently can run a call via a browser, though my only testing has been with Chrome and Firefox. We will be removing the ability to run certain calls via the browser in the near future, though I don't have an exact ETA on when. I believe the API call would be simply adding &templateID=GUIDGOESHERE though I'm by no means an API expert myself. Good luck! Dustin Martin Assigned Support Engineer Workfront

Avatar

Level 10
Hi Adina, You can use this format to create the project using a template. https:// YOUR_DOMAIN .my.workfront.com/attask/api/v9.0/project?name= PROJECT_NAME &templateID= YOUR_TEMPLATE_ID_HERE &method=post&apiKey= YOUR_API_KEY_HERE Depending on what you're doing, you can calculate this on a custom form so that you can create a clickable, user-friendly URL as seen in the ""https://wf-pro.com/textmode/text-mode-views/#user-friendly-url">Text Mode in Views " WFPro page. I prefer the calculated field b/c it allows me to build my own user-friendly features, such as this report that performs a few back-end actions once the links are clicked and open in a second Chrome tab. I'm sure the use case in this screenshot is obvious: Thanks, Narayan

Avatar

Level 10
In fact, now is probably a great time to add ""https://wf-pro.com/textmode/api/">API " to the WFPro Text Mode library.

Avatar

Level 8
Thanks, Narayan! It worked! Adina Pierce

Avatar

Level 10
Hi @Narayan Raum - the idea to create calculated URLs in reports is pretty cool for sysadmin purposes. I presume you would not share a report like this for end users through, because then they could get your sysadmin API key (big security risk). I'm pretty sure you wouldn't be able to dynamically insert the APIkey of the user who is running the report. David Cornwell

Avatar

Level 10
David, I agree completely. You don't want this report visible to anyone who might want to use that API Key for something they shouldn't. You can lock down the report, but you can also lock down the user account to ensure its abilities are limited. My approach is good for repetitive, admin type work. @Adina Pierce I'm glad it worked out for you! Narayan Raum Workfront Delivery Lead - SunTrust Bank https://wf-pro.com for Text Mode & Solutions