Asana API + Zapier - Updating custom fields for Projects, not Tasks

:white_check_mark:-Tested and working fine
:x:-Tested, error code

Attempting to set up a Zap
Trigger is a Record being updated in Salesforce (Opportunity Stage):white_check_mark:
the first Action is to find the Project in Asana✅
the second Action is the specific Project custom field is updated to match the Salesforce Opportunity Stage❌

I have the GID for the custom field, and the GID for each enum option.
When I go to test, I am still getting a 400 error. What am I missing? I have tried several combinations (curly brackets, no curly brackets, curly brackets with “”, curly brackets without “”)…

Hi @Liv_Tillema,

You’re putting the custom fields into the query string; they need to go into the body instead.

When you put them in the body, I think you want it to end up getting sent like this:

"custom_fields":{
         "1202655549713788": "1114389648459687"
      }
2 Likes

Hey Phil! Thank you! I did try that and got the same error code. Thoughts?

Sorry, I should have put the whole body structure instead of just the custom fields portion - you need to wrap it in a “data” element like this:

{
   "data":{
      "custom_fields":{
         "1202655549713788": "1114389648459687"
      }
   }
}
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.