Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

API endpoint error / not returning expected results.

Hi, I am pulling data from Workguru (our project management software) via API. All working ok however I cannot seem to get the data for a custom field. This is the Swagger page Swagger UI (workguru...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

    Base on your description, it seems like you're having trouble pulling the value of a custom field in Workguru via API: /api/services/app/CustomField/GetCustomFieldValuesByTypeAndId. To use this endpoint, you'll need to provide two parameters: 'customFieldTypeId' and 'entityId'. 'customFieldTypeId' refers to the ID of the custom field type you're trying to retrieve, you can get it from the returned detail of  `/api/services/app/CustomField/GetCustomFieldById` endpoint.  As for the `entityId`, you'll need to provide the ID of the project you're trying to retrieve the custom field value for. Once you have both of these parameters, you can make a GET request to the `/api/services/app/CustomField/GetCustomFieldValuesByTypeAndId` endpoint with the appropriate values and it should return the custom field value for that project.

    Best Regards