---
schema_version: "1"
id: 13e28d8f79a9ca3e8d537087736ef71c0713700e8135be5b88c0789bdfab3e1b
title: ConnectApi.CartToWishlistInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_cart_to_wishlist.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_cart_to_wishlist.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c2fa0c24f3c996e4ceef7b8ab41f60ec1c6879eeb3a7cb972663b6cca3a2c8ee
description: Copy products from a cart to a wishlist.
---
# ConnectApi.CartToWishlistInput

Copy products from a cart to a wishlist.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| wishlistId | String | ID of the wishlist to copy cart products to. | Required | 50.0 |