Hi Community,
can anyone please advise me if / how I can use the Workfront API to create a record in WF and attach multiple custom forms to that simultaneously, at creation time?
It's straightforward to create a record with 1 CF attached, for example, to create a Program:
POST to the /PRGM end point.
Body: {"name":"Foo", "portfolioID":"<portfolioID>", "categoryID":"<ID of Custom form to attach>"}
Is there a way to attach multiple custom forms?
I assume the API supports that, because the recently added new "Create record" Workfront Module in Fusion allows us to do that.
But I can't figure out how to do it.
Appreciate any help with this.
Thank you,
Tibor
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
You would have to post a collection. I had to ask copilot how to do this, and the response was:
Launch Postman and create a new request.
Method: POST
URL: https://<your-instance>.attask/api/v14.0/project
Headers:
Content-Type: application/json
Authorization: Bearer <your-access-token>
In Postman, choose "Body" → "Raw" and enter this JSON payload:
(At this point, I put in something that looked similar to this: )
Views
Replies
Total Likes
You would have to post a collection. I had to ask copilot how to do this, and the response was:
Launch Postman and create a new request.
Method: POST
URL: https://<your-instance>.attask/api/v14.0/project
Headers:
Content-Type: application/json
Authorization: Bearer <your-access-token>
In Postman, choose "Body" → "Raw" and enter this JSON payload:
(At this point, I put in something that looked similar to this: )
Views
Replies
Total Likes
Hi Skye,
thanks a million!
It was the collection bit that was missing for me:
"objectCategories": [
{ "categoryID": "2468" },
{ "categoryID": "1357" }
]
I tested this and it works nicely.
Best,
Tibor
Views
Replies
Total Likes