Skip to main content
New Idea

Turning a multi-select into an array

Related products:Freshservice
  • November 1, 2023
  • 2 replies
  • 51 views

Medic1334
Top Contributor ⭐
Forum|alt.badge.img+9

I have an automator where I am trying to perform an API query with the information from a multi-select dropdown out to another system.  The other system returns the message “Specify the value in an array”. The data being passed for two selections is Value1, Value2. I wrapped it in brackets, but the values themselves need to be wrapped in “” since they are string values inside the array. Being able to do this would add to the integration capability for the product.

2 replies

christian.mentor
Skilled Expert
Forum|alt.badge.img+6

Yes! I’ve had to supplement automations with Google Sheets to parse and action on multi-select items. I think having a “Loop” module in the Workflow Automator would compliment this as well!


Medic1334
Top Contributor ⭐
Forum|alt.badge.img+9
  • Author
  • Top Contributor ⭐
  • November 2, 2023

That’s an interesting way of getting around it. My specific use case is interacting with Jira via API. We attempted to use Split at the comma since the placeholder gives Value1, Value2 but the split command is escaping it which isnt the default behavior (https://shopify.dev/docs/api/liquid/filters/split).

Here’s an example on how it split two values: [\"Operations\", \" Strategy\"]"