Skip to main content

 

Hi Zapier Community,

 

I’m encountering an issue with the Asana integration in Zapier. Previously, custom fields in the "Tag added to task" trigger came through as separate items. However, after a recent update, these custom fields are now coming through as line items instead.

 

Current Status:

Zapier support has informed me that this is a known issue affecting several users. They have added my email to the bug report, and they say that I'll receive notifications when there's a resolution.

 

Workarounds Attempted:

1. JavaScript Code:

```javascript
// Initialize an empty object to store the output
var output = {};

// Destructure the inputData object to get Cust_Field_Name and Cust_Disp_Values
var { Cust_Field_Name, Cust_Disp_Values } = inputData;

// Split the Cust_Field_Name and Cust_Disp_Values strings into arrays using comma as the separator
Cust_Field_Name = Cust_Field_Name.split(",");
Cust_Disp_Values = Cust_Disp_Values.split(",");

// Loop through the Cust_Field_Name array
for (var i = 0; i < Cust_Field_Name.length; i++) {
    // For each iteration, create a variable in the output object with the name as the current index of Cust_Field_Name
    // The value of this variable is the current index of Cust_Disp_Values
    outputÂCust_Field_Nameti]] = Cust_Disp_Values_i];
}

// Assign the output object to the output variable
output = { output };
```

2. Formatter by Zapier:
   - Utilities in Formatter > Line-Items to Text

 

3. Text Formatter:
   - Split Text > All (as separate fields)

 

Issue with Workarounds:

In all three workarounds, if a specific custom field is not populated, it doesn’t push that blank custom field as an output. Instead, it skips it, resulting in inconsistent placeholders for the outputs of the formatter steps.

 

Request for Assistance:

Has anyone else encountered this issue? If so, how did you resolve it? Are there any additional workarounds or solutions that I might have missed?

 

Thank you for your help!

Hi @Colin.Reed 

Try this approach:

 


Reply