Skip to main content

Hi,

Not sure if anyone has encountered this.

 

Task Affected

  • Find Task in Project in Asana
  • Find Task by ID
  • GET Asana Task by ID

What I’m trying to do:

  • Get the values of specific custom fields. 

Problem

  • Custom Fields are returned in an Array (not a problem)
  • However, Zapier is grouping custom fields within the Array by the same key, e.g. an array of GUIDs. DSee screenshot 1 and 2] 

Expected Result

  • Expect it to group custom fields by GUID instead. 
  • E.g. being able to use the custom field value for each specific GUID.
  • I believe the way I can get around this at the moment is to format / map each to their respective field, but that seems counter-intuitive 

Options?

  • Is there anyway to play around with the array itself; and format this myself?
  • I know with Asana Zapier Triggers, the custom fields are their own item to select in Zapier. So I do not know why this is differentiated with tasks. 

Any help would be greatly appreciated!

Hi @fwp 

Good question.

This is the expected behavior for how Zapier handles line items with the same parameter labels.

OPTIONS

Formatter > Utilities > “Line Items”

Code


Hey thanks for the quick response. So following this and trying Utilities > Line Items; the commas for empty fields seem to be filtered out. 

 

Is there a way around this? 

 

The issue is – some fields may be empty – so the order is not consistent, and then cannot actually map the fields to the correct places. 


@fwp 

Would need to see detailed screenshots with how your Formatter step is configured.


Hey Troy

Thanks for the quick response.

I’ve attached some screenshots – of trying Formatter < Line Items; and then also with Code.

 


@fwp 

The attachments look like the didn’t upload correctly.

 


@fwp 

Perhaps check out some of these “Code Mode” articles for help.

https://community.zapier.com/search?q=code%20mode&content_type%5B0%5D=article


I’ve re uploaded


@fwp 

Code step output depends on the configured code being used, which isn’t shown in a screenshot.

NOTE: If any of the values have commas that can mess up the parsing.

 

If you use Formatter > Utilities > Line Items to Text

 


Hey there, @fwp! I wanted to stop in and see if you were able to get this sorted?

Full transparency, supporting custom code is outside the scope of Zapier Support but it’s possible a brainiac member of the Community is down to help! 🙃

Otherwise here’s another resource that could help:

Keep us posted how you’re getting along here. 🤗


Reply