---
schema_version: "1"
id: 5948510e4af8bd28a691e7d66194afed94a98924c4e437fd9997ff223609cd4b
title: JUNCTIONIDLIST
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/customize_functions_junctionidlist.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.customize_functions_junctionidlist.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 57e22826b69f0198953ef8fe714f8e3f0dc3070237f7160d125a7e2e2c4d424f
description: Returns a JunctionIDList based on the provided IDs.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# JUNCTIONIDLIST

Returns a JunctionIDList based on the provided IDs.

A JunctionIDList is a string array of referenced ID values that represent the many-to-many relationship of an underlying junction entity.

## Use

`JUNCTIONIDLIST(id, id,...)` and replace id with the Salesforce ID you want to use.

![Contact Record ID Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_example.png)

Contact Record ID Example

`JUNCTIONIDLIST(Case.ContactId)`

This formula returns the case’s contact record ID. When used on the email action for cases, you can use this formula as a predefined value for the To Recipients field. Using this formula as a predefined value for the field ensures that sent emails are always associated with a Salesforce record. In the case feed publisher, users see the contact name instead of the ID or email address.