Which API should i choose if i want to pull the value "Inbound WA" because that is what is selected in my custom fields dropdown
Hello @Az Zahra Syahida,
If the custom field type is text, you can access the text value in following way:
customField.value.text
To fetch the custom fields from api, follow the documentation.
Hi Az,
You can use this API endpoint to get a specific value (e.g. "Inbound WA") of an option in a custom field:
[Trello API] Get Option of Custom Field dropdown
As you can see, the endpoint needs an idCustomFieldOption so if you do not have it, you may need to use this API first to get all the options from the custom field and all their corresponding ids:
[Trello API] Get Options of Custom Field drop down
For all things custom field I recommend that you read this:
Getting started with Custom Fields
Also just to let you know that we do have our Trello developer community. We have a number of Trello Engineers who are active there, and they'd be happy to give some guidance for more advanced topics like these: https://community.developer.atlassian.com/c/trello
I hope this helps, but let us know if you have any questions!
----------------
If this post helps with your query, then please consider the Accept answer or Like button to help the other users find it more quickly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.