Hello. I’m trying to mass update fields on projects from salesforce via workato. All was going fine after some tinkering. I instatiate a project from a template, make an API call to add the custom fields needed from the library. All good. Then I try and push values and nothing works at all.
This is the JSON body for the PUT call:
{
"data": {
"custom_fields": {
"1206042909386231": "ADP",
"1206014126293873": "This is a test"
}
}
}
and it will throw this error:
{
"errors": [
{
"message": "Custom field with ID 1206042909386231 is not on given object",
"help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"
}
]
}
But that field is definitely on the project:
{
"gid": "1206043168517206",
"custom_field": {
"gid": "1206014126293873",
"name": "BGC System",
"resource_subtype": "text",
"resource_type": "custom_field",
"type": "text",
"is_formula_field": false
},
(this snippet is from the 2nd ID in my little test sample, when I was troubleshooting by getting rid of the first, which is an enum, so I was trying to rule that out by going with just a plain text option, but this is true of literally field I’ve used. They all appear in the returned JSON from polling the project itself by the ID used in the update command above.
I tried using the gid of the container? of the custom field as shown in the last snippet. That didn’t help, and I’m pretty sure I have the right ID considering it’s the list I use to add them to the project to begin with.
So I’m stumped. What do I need to feed this API endpoint so it’s happy?