Get multiple values from one line of text, Splitting is not working

Hi,

I am trying to set up a filter after my router that should filter out all non-LinkedIn content. However it seems I am not able to set this variable. I suspect I need to get it out of the Display value from Asana somehow, I’ve tried splitting the variable and setting as multiple values but it have not done the trick.

Could anyone help out? Would appreciate it a lot.



Hey Barry,

For your filter, you might try “Text operators: Contains (case insensitive)

Hi Donald,

It did not do the trick sadly. Should I do something early in the flow to them all out individually?

Oh, sorry, I didn’t read closely enough.
Sounds like you need help getting that data from Asana before applying a filter on it.
Are you able to share the output bundle from Asana?

Click that download button to download the output bundles and post it here?
image

The bundle contains the raw names, but I think you’d need to use something like this:
get(1.Custom Fields.3.Display Value)

I’ve actually tried doing what you’ve mentioned to try select the target value but it didnt work. Thanks for taking the time, I’ve exported and attached below.

Exported output from Asana module here

[
{
“gid”: “1208132855637098”,
“assignee”: null,
“assignee_status”: “upcoming”,
“completed”: false,
“completed_at”: null,
“created_at”: “2024-08-23T08:53:42.849Z”,
“custom_fields”: [
{
“gid”: “1208132855637112”,
“enabled”: true,
“name”: “Post Copy”,
“description”: “”,
“created_by”: {
“gid”: “1207619797048797”,
“name”: “”,
“resource_type”: “user”
},
“display_value”: “i is launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.”,
“resource_subtype”: “text”,
“resource_type”: “custom_field”,
“text_value”: “is launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.”,
“type”: “text”
},
{
“gid”: “1208132855637116”,
“enabled”: true,
“name”: “Image URL”,
“description”: “”,
“created_by”: {
“gid”: “1207619797048797”,
“name”: “”,
“resource_type”: “user”
},
“display_value”: “Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash”,
“resource_subtype”: “text”,
“resource_type”: “custom_field”,
“text_value”: “Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash”,
“type”: “text”
},
{
“gid”: “1208132855637125”,
“enabled”: true,
“enum_options”: [
{
“gid”: “1208132855637126”,
“color”: “blue”,
“enabled”: true,
“name”: “LinkedIn”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637127”,
“color”: “aqua”,
“enabled”: true,
“name”: “Facebook”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637128”,
“color”: “pink”,
“enabled”: true,
“name”: “Instagram”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637129”,
“color”: “cool-gray”,
“enabled”: true,
“name”: “X/Twitter”,
“resource_type”: “enum_option”
}
],
“multi_enum_values”: [
{
“gid”: “1208132855637126”,
“color”: “blue”,
“enabled”: true,
“name”: “LinkedIn”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637127”,
“color”: “aqua”,
“enabled”: true,
“name”: “Facebook”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637128”,
“color”: “pink”,
“enabled”: true,
“name”: “Instagram”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637129”,
“color”: “cool-gray”,
“enabled”: true,
“name”: “X/Twitter”,
“resource_type”: “enum_option”
}
],
“name”: “Platform(s)”,
“description”: “”,
“created_by”: {
“gid”: “1207619797048797”,
“name”: “”,
“resource_type”: “user”
},
“display_value”: “LinkedIn, Facebook, Instagram, X/Twitter”,
“resource_subtype”: “multi_enum”,
“resource_type”: “custom_field”,
“type”: “multi_enum”
}
],
“due_at”: null,
“due_on”: “2024-08-24”,
“followers”: [
{
“gid”: “1207619797048797”,
“name”: “”,
“resource_type”: “user”
}
],
“hearted”: false,
“hearts”: ,
“html_notes”: “”,
“liked”: false,
“likes”: ,
“memberships”: [
{
“project”: {
“gid”: “1208132854725061”,
“name”: “TEST Content Generator”,
“resource_type”: “project”
},
“section”: {
“gid”: “1208132855637109”,
“name”: “Ideation”,
“resource_type”: “section”
}
}
],
“modified_at”: “2024-08-23T12:08:26.528Z”,
“name”: “TEST PROJECT TITLE”,
“notes”: “”,
“num_hearts”: 0,
“num_likes”: 0,
“parent”: null,
“permalink_url”: “https://app.asana.com/0/1208132854725061/1208132855637098”,
“projects”: [
{
“gid”: “1208132854725061”,
“name”: “TEST Content Generator”,
“resource_type”: “project”
}
],
“resource_type”: “task”,
“start_at”: null,
“start_on”: null,
“tags”: ,
“resource_subtype”: “default_task”,
“workspace”: {
“gid”: “1204214711554278”,
“name”: “”,
“resource_type”: “workspace”
},
“custom_fields_collection”: {
“1208132855637112”: {
“gid”: “1208132855637112”,
“enabled”: true,
“name”: “Post Copy”,
“description”: “”,
“created_by”: {
“gid”: “1207619797048797”,
“name”: “”,
“resource_type”: “user”
},
“display_value”: " is launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.",
“resource_subtype”: “text”,
“resource_type”: “custom_field”,
“text_value”: “s launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.”,
“type”: “text”
},
“1208132855637116”: {
“gid”: “1208132855637116”,
“enabled”: true,
“name”: “Image URL”,
“description”: “”,
“created_by”: {
“gid”: “1207619797048797”,
“name”: “”,
“resource_type”: “user”
},
“display_value”: “Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash”,
“resource_subtype”: “text”,
“resource_type”: “custom_field”,
“text_value”: “Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash”,
“type”: “text”
},
“1208132855637125”: {
“gid”: “1208132855637125”,
“enabled”: true,
“enum_options”: [
{
“gid”: “1208132855637126”,
“color”: “blue”,
“enabled”: true,
“name”: “LinkedIn”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637127”,
“color”: “aqua”,
“enabled”: true,
“name”: “Facebook”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637128”,
“color”: “pink”,
“enabled”: true,
“name”: “Instagram”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637129”,
“color”: “cool-gray”,
“enabled”: true,
“name”: “X/Twitter”,
“resource_type”: “enum_option”
}
],
“multi_enum_values”: [
{
“gid”: “1208132855637126”,
“color”: “blue”,
“enabled”: true,
“name”: “LinkedIn”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637127”,
“color”: “aqua”,
“enabled”: true,
“name”: “Facebook”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637128”,
“color”: “pink”,
“enabled”: true,
“name”: “Instagram”,
“resource_type”: “enum_option”
},
{
“gid”: “1208132855637129”,
“color”: “cool-gray”,
“enabled”: true,
“name”: “X/Twitter”,
“resource_type”: “enum_option”
}
],
“name”: “Platform(s)”,
“description”: “”,
“created_by”: {
“gid”: “1207619797048797”,
“name”: “”,
“resource_type”: “user”
},
“display_value”: “LinkedIn, Facebook, Instagram, X/Twitter”,
“resource_subtype”: “multi_enum”,
“resource_type”: “custom_field”,
“type”: “multi_enum”
}
}
}
]

Just to confirm, you want to pass the entire bundle only if LinkedIn is included in the list of Platforms?

Try this on your filter:
image

Please paste this code into a scenario and you should get two modules.
Shows different ways to play with map() and get() functions depending on your needs.

Code

{
“subflows”: [
{
“flow”: [
{
“id”: 1,
“module”: “json:ParseJSON”,
“version”: 1,
“parameters”: {
“type”: “”
},
“mapper”: {
“json”: “[\n\t{\n\t\t"gid": "1208132855637098",\n\t\t"assignee": null,\n\t\t"assignee_status": "upcoming",\n\t\t"completed": false,\n\t\t"completed_at": null,\n\t\t"created_at": "2024-08-23T08:53:42.849Z",\n\t\t"custom_fields": [\n\t\t\t{\n\t\t\t\t"gid": "1208132855637112",\n\t\t\t\t"enabled": true,\n\t\t\t\t"name": "Post Copy",\n\t\t\t\t"description": "",\n\t\t\t\t"created_by": {\n\t\t\t\t\t"gid": "1207619797048797",\n\t\t\t\t\t"name": "",\n\t\t\t\t\t"resource_type": "user"\n\t\t\t\t},\n\t\t\t\t"display_value": "i is launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.",\n\t\t\t\t"resource_subtype": "text",\n\t\t\t\t"resource_type": "custom_field",\n\t\t\t\t"text_value": "is launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.",\n\t\t\t\t"type": "text"\n\t\t\t},\n\t\t\t{\n\t\t\t\t"gid": "1208132855637116",\n\t\t\t\t"enabled": true,\n\t\t\t\t"name": "Image URL",\n\t\t\t\t"description": "",\n\t\t\t\t"created_by": {\n\t\t\t\t\t"gid": "1207619797048797",\n\t\t\t\t\t"name": "",\n\t\t\t\t\t"resource_type": "user"\n\t\t\t\t},\n\t\t\t\t"display_value": "Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash",\n\t\t\t\t"resource_subtype": "text",\n\t\t\t\t"resource_type": "custom_field",\n\t\t\t\t"text_value": "Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash",\n\t\t\t\t"type": "text"\n\t\t\t},\n\t\t\t{\n\t\t\t\t"gid": "1208132855637125",\n\t\t\t\t"enabled": true,\n\t\t\t\t"enum_options": [\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637126",\n\t\t\t\t\t\t"color": "blue",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "LinkedIn",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637127",\n\t\t\t\t\t\t"color": "aqua",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Facebook",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637128",\n\t\t\t\t\t\t"color": "pink",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Instagram",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637129",\n\t\t\t\t\t\t"color": "cool-gray",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "X/Twitter",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t"multi_enum_values": [\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637126",\n\t\t\t\t\t\t"color": "blue",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "LinkedIn",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637127",\n\t\t\t\t\t\t"color": "aqua",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Facebook",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637128",\n\t\t\t\t\t\t"color": "pink",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Instagram",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637129",\n\t\t\t\t\t\t"color": "cool-gray",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "X/Twitter",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t"name": "Platform(s)",\n\t\t\t\t"description": "",\n\t\t\t\t"created_by": {\n\t\t\t\t\t"gid": "1207619797048797",\n\t\t\t\t\t"name": "",\n\t\t\t\t\t"resource_type": "user"\n\t\t\t\t},\n\t\t\t\t"display_value": "LinkedIn, Facebook, Instagram, X/Twitter",\n\t\t\t\t"resource_subtype": "multi_enum",\n\t\t\t\t"resource_type": "custom_field",\n\t\t\t\t"type": "multi_enum"\n\t\t\t}\n\t\t],\n\t\t"due_at": null,\n\t\t"due_on": "2024-08-24",\n\t\t"followers": [\n\t\t\t{\n\t\t\t\t"gid": "1207619797048797",\n\t\t\t\t"name": "",\n\t\t\t\t"resource_type": "user"\n\t\t\t}\n\t\t],\n\t\t"hearted": false,\n\t\t"hearts": null,\n\t\t"html_notes": "",\n\t\t"liked": false,\n\t\t"likes": null,\n\t\t"memberships": [\n\t\t\t{\n\t\t\t\t"project": {\n\t\t\t\t\t"gid": "1208132854725061",\n\t\t\t\t\t"name": "TEST Content Generator",\n\t\t\t\t\t"resource_type": "project"\n\t\t\t\t},\n\t\t\t\t"section": {\n\t\t\t\t\t"gid": "1208132855637109",\n\t\t\t\t\t"name": "Ideation",\n\t\t\t\t\t"resource_type": "section"\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t"modified_at": "2024-08-23T12:08:26.528Z",\n\t\t"name": "TEST PROJECT TITLE",\n\t\t"notes": "",\n\t\t"num_hearts": 0,\n\t\t"num_likes": 0,\n\t\t"parent": null,\n\t\t"permalink_url": "https://app.asana.com/0/1208132854725061/1208132855637098\",\n\t\t\"projects\”: [\n\t\t\t{\n\t\t\t\t"gid": "1208132854725061",\n\t\t\t\t"name": "TEST Content Generator",\n\t\t\t\t"resource_type": "project"\n\t\t\t}\n\t\t],\n\t\t"resource_type": "task",\n\t\t"start_at": null,\n\t\t"start_on": null,\n\t\t"tags": null,\n\t\t"resource_subtype": "default_task",\n\t\t"workspace": {\n\t\t\t"gid": "1204214711554278",\n\t\t\t"name": "",\n\t\t\t"resource_type": "workspace"\n\t\t},\n\t\t"custom_fields_collection": {\n\t\t\t"1208132855637112": {\n\t\t\t\t"gid": "1208132855637112",\n\t\t\t\t"enabled": true,\n\t\t\t\t"name": "Post Copy",\n\t\t\t\t"description": "",\n\t\t\t\t"created_by": {\n\t\t\t\t\t"gid": "1207619797048797",\n\t\t\t\t\t"name": "",\n\t\t\t\t\t"resource_type": "user"\n\t\t\t\t},\n\t\t\t\t"display_value": " is launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.",\n\t\t\t\t"resource_subtype": "text",\n\t\t\t\t"resource_type": "custom_field",\n\t\t\t\t"text_value": "s launching a new Cup. Eco-friendly paper cups. Plastic-free, PLA-free. For hot/cold drinks. Ideal for cafés, restaurants.",\n\t\t\t\t"type": "text"\n\t\t\t},\n\t\t\t"1208132855637116": {\n\t\t\t\t"gid": "1208132855637116",\n\t\t\t\t"enabled": true,\n\t\t\t\t"name": "Image URL",\n\t\t\t\t"description": "",\n\t\t\t\t"created_by": {\n\t\t\t\t\t"gid": "1207619797048797",\n\t\t\t\t\t"name": "",\n\t\t\t\t\t"resource_type": "user"\n\t\t\t\t},\n\t\t\t\t"display_value": "Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash",\n\t\t\t\t"resource_subtype": "text",\n\t\t\t\t"resource_type": "custom_field",\n\t\t\t\t"text_value": "Assorted garbage bottles on sandy surface photo – Free Plastic Image on Unsplash",\n\t\t\t\t"type": "text"\n\t\t\t},\n\t\t\t"1208132855637125": {\n\t\t\t\t"gid": "1208132855637125",\n\t\t\t\t"enabled": true,\n\t\t\t\t"enum_options": [\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637126",\n\t\t\t\t\t\t"color": "blue",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "LinkedIn",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637127",\n\t\t\t\t\t\t"color": "aqua",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Facebook",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637128",\n\t\t\t\t\t\t"color": "pink",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Instagram",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637129",\n\t\t\t\t\t\t"color": "cool-gray",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "X/Twitter",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t"multi_enum_values": [\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637126",\n\t\t\t\t\t\t"color": "blue",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "LinkedIn",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637127",\n\t\t\t\t\t\t"color": "aqua",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Facebook",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637128",\n\t\t\t\t\t\t"color": "pink",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "Instagram",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t"gid": "1208132855637129",\n\t\t\t\t\t\t"color": "cool-gray",\n\t\t\t\t\t\t"enabled": true,\n\t\t\t\t\t\t"name": "X/Twitter",\n\t\t\t\t\t\t"resource_type": "enum_option"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t"name": "Platform(s)",\n\t\t\t\t"description": "",\n\t\t\t\t"created_by": {\n\t\t\t\t\t"gid": "1207619797048797",\n\t\t\t\t\t"name": "",\n\t\t\t\t\t"resource_type": "user"\n\t\t\t\t},\n\t\t\t\t"display_value": "LinkedIn, Facebook, Instagram, X/Twitter",\n\t\t\t\t"resource_subtype": "multi_enum",\n\t\t\t\t"resource_type": "custom_field",\n\t\t\t\t"type": "multi_enum"\n\t\t\t}\n\t\t}\n\t}\n]"
},
“metadata”: {
“designer”: {
“x”: 0,
“y”: 0
},
“restore”: {
“parameters”: {
“type”: {
“label”: “Choose a data structure”
}
}
},
“parameters”: [
{
“name”: “type”,
“type”: “udt”,
“label”: “Data structure”
}
],
“expect”: [
{
“name”: “json”,
“type”: “text”,
“label”: “JSON string”,
“required”: true
}
]
}
},
{
“id”: 2,
“module”: “util:SetVariables”,
“version”: 1,
“parameters”: {},
“filter”: {
“name”: “LinkedIn Only”,
“conditions”: [
[
{
“a”: “{{first(map(1.custom_fields; "display_value"; "name"; "Platform(s)"))}}”,
“o”: “text:contain:ci”,
“b”: “linkedin”
}
]
]
},
“mapper”: {
“variables”: [
{
“name”: “Display Value”,
“value”: “{{map(1.custom_fields; "display_value")}}”
},
{
“name”: “Any Display Value has linkedin? (ci)”,
“value”: “{{contains(split(lower(join(map(1.custom_fields; "display_value"); ",")) + ","); "linkedin")}}”
},
{
“name”: “Item 3”,
“value”: “{{get(1.custom_fields; 3)}}”
},
{
“name”: “Display Value 3”,
“value”: “{{get(1.custom_fields; "3.display_value")}}”
},
{
“name”: “Display Value 3 (lower)”,
“value”: “{{lower(get(1.custom_fields; "3.display_value"))}}”
},
{
“name”: “Display Value 3 Has LinkedIn?”,
“value”: “{{contains(split(get(1.custom_fields; "3.display_value"); ","); "LinkedIn")}}”
},
{
“name”: “Display Value 3 Has linkedin? (ci)”,
“value”: “{{contains(split(lower(get(1.custom_fields; "3.display_value")); ","); "linkedin")}}”
},
{
“name”: “Display Value 3 Has linkedin?”,
“value”: “{{contains(split(get(1.custom_fields; "3.display_value"); ","); "linkedin")}}”
},
{
“name”: “Platforms”,
“value”: “{{first(map(1.custom_fields; "display_value"; "name"; "Platform(s)"))}}”
}
],
“scope”: “roundtrip”
},
“metadata”: {
“designer”: {
“x”: 429,
“y”: 11
},
“restore”: {
“expect”: {
“variables”: {
“items”: [
null,
null,
null,
null,
null,
null,
null,
null,
null
]
},
“scope”: {
“label”: “One cycle”
}
}
},
“expect”: [
{
“name”: “variables”,
“type”: “array”,
“label”: “Variables”,
“spec”: [
{
“name”: “name”,
“label”: “Variable name”,
“type”: “text”,
“required”: true
},
{
“name”: “value”,
“label”: “Variable value”,
“type”: “any”
}
]
},
{
“name”: “scope”,
“type”: “select”,
“label”: “Variable lifetime”,
“required”: true,
“validate”: {
“enum”: [
“roundtrip”,
“execution”
]
}
}
],
“interface”: [
{
“name”: “Display Value”,
“label”: “Display Value”,
“type”: “any”
},
{
“name”: “Any Display Value has linkedin? (ci)”,
“label”: “Any Display Value has linkedin? (ci)”,
“type”: “any”
},
{
“name”: “Item 3”,
“label”: “Item 3”,
“type”: “any”
},
{
“name”: “Display Value 3”,
“label”: “Display Value 3”,
“type”: “any”
},
{
“name”: “Display Value 3 (lower)”,
“label”: “Display Value 3 (lower)”,
“type”: “any”
},
{
“name”: “Display Value 3 Has LinkedIn?”,
“label”: “Display Value 3 Has LinkedIn?”,
“type”: “any”
},
{
“name”: “Display Value 3 Has linkedin? (ci)”,
“label”: “Display Value 3 Has linkedin? (ci)”,
“type”: “any”
},
{
“name”: “Display Value 3 Has linkedin?”,
“label”: “Display Value 3 Has linkedin?”,
“type”: “any”
},
{
“name”: “Platforms”,
“label”: “Platforms”,
“type”: “any”
}
]
}
}
]
}
],
“metadata”: {
“version”: 1
}
}

Here are the various outputs:
image

Basically one version checks if Display Value in ANY of the Custom Fields contains “linkedin”.
Another checks if Display Value of ONLY the third Custom Field has LinkedIn, and there are both case-sensitive an case-insensitive versions.

You can learn how these functions works then apply them in your filter.

Hope this helps!

Edit: Added the filter

Yes I want to pass the bundle if LinkedIn is included, at least that’s how I thought of it.
I produce various contents in Claude and want to pass the LinkedIn specific contents to LinkedIn but only if the bundle contains LinkedIn as platform.

Thanks but this did not work

@LinkYourTech showed you exactly what you need.
I completely left out the filter where name = Platform(s) but that’s all you need!

Hmm… :thinking:
What is the output value of the inline function? It should be “LinkedIn, Facebook, Instagram, X/Twitter”. I was working off the JSON you provided but some of the values might be off.

Not sure which inline function you’re referring to.

In this filter:
image

It resolves to:
image

Which resolves to True, which allows the record to pass the filter.

1 Like

It’s not passing for me for some reason if this is supposed to be it:

{{first(map(1.custom_fields; “display_value”; “name”; “Platform”))}}

FYI I changed name from Platform(s) in the origin.
image

I see an equal sign when I would expect to see the ~ character instead.
Can we see the actual filter? You should select Text operators: Contains (case insensitive)

Here it is
Edit: shit I see it now. Should be contains. Testing now.
Edit2: Tested with: Contains (case insensitive) but still same error.

That won’t work as the first() and map() functions need to be functions, right now they’re text. Also, Platform should be Platform(s).
After you type first and an opening parenthesis it should convert into a function and looks gray like this:
image

You can also copy and paste this:
{{first(map(1.custom_fields; "display_value"; "name"; "Platform(s)"))}}

Oh, my bad. I fixed map and first. However Platform(s) I did change in Asana to Platform so that is correct.

I still get not equal to with this filter:

first(map(1. Custom Fields;display_value;name;Platform))


image

As @Donald_Mitchell mentioned Platform should be Platform(s). For the map() function raw names must be exact. In the JSON you sent the raw name is Platform(s). You cannot go by the display name that make shows. If you hover your mouse above the text of the display name in the output bundle it should give you the raw name. Which in this case is Platform(s).

1 Like

Let’s check Asana’s new output just to see if it changed. There’s a chance that it retains the old underlying name.