---
schema_version: "1"
id: d3b2059368ba1ba512341163827f7923d2a2340c7fcc4ba742ecddc1291509d7
title: Queue Management Implementation Instructions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/workdotcom_dev/guides/wdc-qm-queue-management-implementation.md
canonical_url: https://developer.salesforce.com/docs/service/workdotcom-dev/guide/wdc-qm-queue-management-implementation.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 21fdef4a997eab45ad68ec277c03dc599e8ba9b94dc510fa6275dc1c0eb15e57
products:
  - Work.com Developer Guide
  - Service Cloud Developer Content
---

# Queue Management Implementation Instructions

These instructions guide you through the process of creating a customized visitor experience using Queue Management Salesforce objects.

## Before You Begin

**important:** These steps are automatically performed when you install the [Queue Management Visitor Sign-Up Experience](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3u00000MRoEKEA1) package. To learn more, see [Create a Visitor Sign-Up Form](https://help.salesforce.com/articleView?id=que_mgmt_signup_next_steps.htm&type=5).

Before following the implementation instructions, review these prerequisites:

- SMS is the only supported channel type for Broadcast Messaging.

- You must have a Messaging channel for SMS text messages associated with a working phone number. You can use a short code, or toll free number. You must have access to the [MessagingChannel](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_messagingchannel.htm) record.

- Your messaging channels must be associated with a queue.

- You must create a queue (a [LocationWaitlist](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_locationwaitlist.htm) record) using the Digital Waitlist app.

- You must create a form that asks for the necessary information to create a wait-list party. This form must include: a name, mobile number, party size, and that the person opts-in to receiving messages.

Once a person fills out the form with the relevant information, use the Salesforce API ([SOAP](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_quickstart_intro.htm), [REST](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm), or [Apex](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dev_guide.htm)) to create a wait-list party.

## Steps

1.  Using the ID of the [LocationWaitlist](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_locationwaitlist.htm) record, get the Status field. Check that the Status is "Open".

2.  Create a [MessagingEndUser](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_messagingenduser.htm) record. This record contains the following relevant fields: MessageType (set to "text"), MessagingChannelId, MessagingConsentStatus (set to "ExplicitlyOptedIn" or "ImplicitlyOptedIn", depending on your workflow), MessagingPlatformKey (contains the phone number of the customer with the country code appended), Name (contains the name of the customer). This record is used by Digital Engagement for checking the consent when sending an SMS message.

    **important:** Be sure that the customer has opted in before creating this record with an opted-in consent status!

3.  Create a [LocationWaitlistedParty](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_locationwaitlistedparty.htm) record, which stores the wait-list party information. Relevant fields include: MobilePhone, Name, PartySize, PartyStatus (set to "waiting"), and the WaitlistId (set to the ID of the [LocationWaitlist](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_locationwaitlist.htm) record).

When the Status field of the [LocationWaitlistedParty](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_locationwaitlistedparty.htm) record changes, Salesforce uses the Messaging template and the Messaging channel to send an SMS message to the number specified. When the status changes to “canceled”, the customer is removed from the wait-list.
