Custom field value via API

Hi, i cannot figure out how to get the custom field value for a task using the API V4

Cheers,

0
14 comments
Spot On Innovative Approach Stellar Advice

Hi @Stéphane Goyet, welcome to the Community!

Have you checked our Developers portal here? If you still need help with this, please let me know and I'll raise a ticket for you with our advanced support! 

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Spot On Innovative Approach Stellar Advice

I'm having the same problem. New to the API but I'm not sure when I query Tasks how to view the values of the custom fields on that task.

 

Seems like the Customer Fields page on the Developers portal only shows you how to view the definition of the fields themselves, not what value they take on a particular task.

 

Is it possible to see the task-level values of custom fields via API?

 

Thanks.

0
Spot On Innovative Approach Stellar Advice

Hi Jared Silver,

Thanks for your interest in Wrike API. To get custom field values for the particular tasks, please perform the GET/ task call and include task Ids in the endpoint (no additional parameters are required):

GET https://www.wrike.com/api/v4/tasks/taskId 

Here is my test in the Postman environment:


If you would like to query all tasks in your account and have Custom field values included in the response, please try the standard GET/ tasks call with the additional parameter ?fields=[customFields]. A sample request is shown below in cURL format:

Please check out our Developers portal for additional details about Tasks API requests: https://developers.wrike.com/api/v4/tasks/

I hope this helps. Please let me know if any questions arise, I will be happy to assist!

Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover

0
Spot On Innovative Approach Stellar Advice

Hi Lisa,

if I make this same request in postman, on a task with some values in my customfields, I don't get any list or values like you. 

What could be the problem? GET https://www.wrike.com/api/v4/tasks/taskId

 

Thanks in advance.

Gorka.

0
Spot On Innovative Approach Stellar Advice

Hi Gorka Remirez, welcome to the Community! 👋

I can see that you've already discussed this with our Support team 👍

Please let me know if I can help you with anything else.  

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Spot On Innovative Approach Stellar Advice

Yes, I sent it to support, thanks.

Now it is running as you said Lisa

0
Spot On Innovative Approach Stellar Advice

Great to hear that Gorka Remirez 🙌

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

0
Spot On Innovative Approach Stellar Advice

Hi All,

Is there an endpoint like this for projects, I want to see all custom fields associated with all the projects ( not one project at a time)

This command does not work  https://www.wrike.com/api/v4/folders?fields=[customFields]

similar endpoint for tasks below works 

https://www.wrike.com/api/v4/tasks?fields=[customFields]

Thanks

 

 

1
Spot On Innovative Approach Stellar Advice

I am having a similar issue.  After our integration was set up, I accidentally deleted a custom field (it was the wrong duplicate field) and now the recipe fails.  I don't know how to get the new field ID in workato or in Wrike or even find a list of ID's for them all.  I can't find any information on how to get the ID itself.

0
Spot On Innovative Approach Stellar Advice

Hi Richard Herzog, thanks for writing in. You can retrieve the API ID of the new custom field using the GET call to the custom field endpoint. The 'id' parameter will be returned in the API response. Here is a link to the article with more details: https://developers.wrike.com/api/v4/custom-fields/. Hope it helps! Feel free to reach out should you have any questions 🙌

Lisa K. Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa K. Wrike Team member Become a Wrike expert with Wrike Discover

0
Spot On Innovative Approach Stellar Advice

Hi Lisa K. I am trying to visualize all "Tasks" and "custom fields" from a "Folder" in Wrike into Power BI using the below APIs.

1) API : https://www.wrike.com/api/v4/tasks/taskId  - THIS WORKS!, BUT in this case I need to manually edit the source everytime a new Task is included. This is not practical as our production team is creating 100 maybe 1000 tasks.

2) API : https://www.wrike.com/api/v4/tasks?fields=[customFields] - with this API request I get a lot of tasks, tasks that are two years old or more.  but I do not see the tasks that I want to visualize*.

*Power BI has a limit of 1000 rows, could that be a reason? if yes, is there any work around? Maybe an API that works with one "Folder" and gives the "Tasks" inside that folder? My research did not yield one. Pls help!

0
Spot On Innovative Approach Stellar Advice

Hi Arvid Jacob, I see that my colleague from the Support team got in touch with you via email. Please let me know if I can help you with anything else.

Cansu Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Cansu Wrike Team member Become a Wrike expert with Wrike Discover

0
Spot On Innovative Approach Stellar Advice

I want to fetch the custom fields for a folder, and I am using the following call:https://www.wrike.com/api/v4/folders/XXXXXXX/folders?fields=[customFields].

However, the response doesnt contains the "custom fields" for any folder.

0
Spot On Innovative Approach Stellar Advice

If you want to retrieve "custom Field [Values]" from all Tasks in one particular Folder. Try this.

https://www.wrike.com/api/v4/folders/{FolderID}/tasks?descendants=true&fields=['parentIds','customFields']

Cheers, Arvid

0

Folllowing List for Post: Custom field value via API
[this list is visible for admins and agents only]

Top
Didn’t find what you were looking for? Write new post