Magnet Customer icon

Magnet Customer

Consume Magnet Customer API

Lead → Get Many

AI-generated

Overview

This node interacts with the Magnet Customer API to retrieve multiple lead records. It supports pagination and allows users to specify the number of results per page. Additionally, it offers an option to resolve custom fields, which means that instead of returning only the IDs of custom fields and option fields, it fetches and includes their actual names and values. This is useful for users who want detailed and human-readable lead data from their Magnet Customer account.

Use Case Examples

  1. Retrieve a list of leads from Magnet Customer with a limit of 15 results per page.
  2. Fetch all leads and automatically resolve custom fields to get detailed information about each lead's custom attributes.

Properties

Name Meaning
Authentication Select the authentication method to use for the API requests (API Token or OAuth2).
Page The page number of results to retrieve when fetching multiple leads.
Limit The maximum number of lead records to return per request, with a minimum value of 15.
Resolve Custom Fields If enabled, custom fields and option fields in the lead data are resolved to their actual names and values instead of just returning their IDs.

Output

JSON

  • _id - Unique identifier of the lead.
  • name - Name of the lead.
  • email - Email address of the lead.
  • phone - Phone number of the lead.
  • customFields - Custom fields associated with the lead, which can be resolved to actual names and values if the option is enabled.
  • createdAt - Timestamp when the lead was created.
  • updatedAt - Timestamp when the lead was last updated.

Dependencies

  • Magnet Customer API

Troubleshooting

  • If the node fails to retrieve leads, check that the API token or OAuth2 credentials are correctly configured and have the necessary permissions.
  • If custom fields are not resolving correctly, ensure that the 'Resolve Custom Fields' option is enabled and that the custom fields exist in the Magnet Customer account.
  • Errors related to pagination or limits may occur if invalid values are provided; ensure 'Page' and 'Limit' are set to valid numbers, with 'Limit' being at least 15.

Discussion