Fetch Product Details using Pluck and Join in Workflows
Efficiently managing and formatting product details is essential for streamlining order management, syncing data with external systems, or updating logs like Google Sheets. The “Pluck and Join” feature in workflows allows you to dynamically extract and format product details from orders. This guide will walk you through using this feature to automate processes, save time, and reduce manual effort.
The Pluck Helper extracts specific fields (like product titles) from a dataset, such as an array of objects.
The Join Helper combines these extracted values into a single, formatted string using a custom delimiter (e.g., commas).
This combination enables you to efficiently extract, format, and send product data to external systems, such as logging customer purchases in Google Sheets.
Follow these steps to extract and format product details from orders and send them to external platforms.

Extract Product Titles Using the Pluck Helper**
**Use the following syntax to pull product titles from the line_items array:
{{ pluck order.line_items “title” }}
Format Titles Using the Join Helper**
**Combine the extracted titles into a single string separated by commas:
{{ join (pluck order.line_items “title”) ", " }}
Example: Log Details in Google Sheets

You want to log customer orders in Google Sheets, including:
| Name | Products | |
|---|---|---|
| Alice | [email protected] | Product A, Product B |
| Bob | [email protected] | Single Item |
Question: Can I use custom separators with Join Helper?**
**Answer: Yes, replace the ", " in the syntax with any desired separator (e.g., "; " or " | ").
Question: What happens if no product titles are found?**
**Answer: The output will be an empty string. Ensure the input dataset is properly configured.
Question: Can I use Pluck and Join with other fields?**
****Answer: **Absolutely. You can extract and format any fields available in your dataset.
Question: What platforms can I integrate with?**
**Answer: Any platform that supports receiving structured data via APIs or connectors, such as Google Sheets,LeadMagicX, or analytics tools.
Question: How do I debug errors in workflows?**
**Answer: Use test submissions and review the output at each step. Tools like Postman can help validate triggers and data formats.
Question: Can I use Pluck and Join in combination with other workflow actions?**
**Answer: Yes. The formatted output can be mapped to any subsequent workflow action, such as creating rows in Google Sheets, updating a LeadMagicX record, or sending notifications.
Question: What is the specific difference between the “Pluck” and “Join” helpers?
Answer: The Pluck Helper is used to extract specific fields (like product titles) from a dataset, while the Join Helper takes those extracted values and combines them into a single, formatted string.