To do that, you’ll first need to get the Asana Workspace ID.
You can get this manually from an Asana Zap step where you select the Workspace. (see example below)
OR
You can use the AsanaAPIExplorer: Workspaces > GET /workspaces (make sure to select all checkboxes for Include Fields and adjust other settings as necessary)
Then you can use the AsanaAPIExplorer to get the WorkspaceCustomFields: Custom Fields > GET /workspaces/:workspace_gid/custom_fields (make sure to select all checkboxes for Include Fields and adjust other settings as necessary)
Thanks Troy.
can’t log a ticket yet. waiting on the boss to active the paid membership.
100% @Troy Tessalone tired that first as you suggested
it was only when that didn’t work did I try adding in the _value ( in some vain hope )
@Mark J
Did you try it with “date” instead of “date_value”?
well I didn’t know that there was two types.
typed it in (instead of copy and paste) and looked to be straight quotes… no luck
even tried adding _value just incase that worked - NOPE
@Mark J
Unsure if this will make a different, but try adjusting the double quotes to not be slanted, but instead straight vertical. " (yes there are 2 types of double quotes)
thanks Troy, tried your suggestion. and once again all custom fields are blank.
{“date”:“1. Deal informatio…: Deal End Date:2023-06-25”}
Wanted to share since I hadn’t seen this anywhere yet. For the new Date custom field type, when reading a date value via the API you receive “date_value”: { “date”: “2022-08-18”, “date_time”: null } For a date. If the value was a datetime, then you would have “date”:null and “date_time” would have an appropriate value.
When updating a custom field in a task, instead of simply specifying the value for the field as “2022-08-18” like you might for a text field, you have to pass an object with either (but not both) a “date” key or a “date_time” key. These dates then follow the same formatting as due_on and due_at.
So to update a date custom field, the call would look something like: “custom_fields”: { “4578152156”: {“date”:“2022-08-18”} },
I didn’t see this in the API docs yet and I didn’t find it when trying to search the forums.
If you use the wrong format, the API returns an error saying your object isn’t formatted correctly or that it was expecting an object, but it took a little trial and error to get it right. Hope this helps someone else.
Thanks for responding Tony appreciate your help.
The Default date format coming out of hubspot looks to already be in YYYY-MM-DD
and unfortunately that doesn’t work.
Hi @Mark J
Good question.
Generally app APIs use this format for dates: YYYY-MM-DD
Give that a try and let us know.
Great Question @ken.a
I was thinking the same.. that it might be the date format.
All I could find online was that it only accepts MM-DD-YYYY
but I tried that and it still wouldn’t work.
Hi there @Mark J,
Before we dive deeper, it's worth checking if Asana has specific requirements for date formats that need to match the format in your Asana app. Could you kindly confirm whether the date format you're trying to send matches the one specified in your Asana app?