Loading...
Loading...
Use to verify or create a Queue on a Salesforce org for a routable sObject (Case | Incident | MessagingSession | VoiceCall), discovered via its QueueSobject binding rather than by hardcoded name. Reuses whatever queue already routes the target sObject; with --create-if-missing it creates a Queue via the Metadata API (Group + QueueSobject) when none is bound and aligns its QueueRoutingConfigId to a caller-specified QRC. Returns created, reused, updated, or blocked. Triggers: verify or create a queue for Case/Incident/Messaging/Voice routing, align queue routing config, set up an Omni voice queue. Do not use to add users to the queue (service-omni-queue-members-assign) or for sObjects outside Case/Incident/MessagingSession/VoiceCall.
npx skill4agent add forcedotcom/sf-skills service-omni-queue-deployGroupQueueSobject--create-if-missingQueueRoutingConfigIdQueueSobject.SobjectTypeCaseQueuemessagingqueueOmni_Demo_Cases_QueueDeveloperNameservice-omni-channel-setup-coordinateservice-omni-queue-members-assignservice-omni-queue-routing-config-deploybash scripts/verify-and-align.sh <org-alias> [Case|Incident|MessagingSession|VoiceCall] [routing_config_dn] [queue_developer_name] [--create-if-missing]
# create + bind a Voice queue on a fresh org:
bash scripts/verify-and-align.sh myorg VoiceCall Voice_Routing_Config "" --create-if-missingorg-aliassobject_typeCaserouting_config_dnCase_Routing_Configqueue_developer_name--create-if-missing--create-if-missingQUEUE_CREATE_IF_MISSING=1QUEUE_LABELsfsfEntityDefinitionrouting_config_dnservice-omni-queue-routing-config-deploysafe_to_writeverify-and-align.shEntityDefinitionQueueSobject WHERE SobjectType = '<sobject_type>'--create-if-missingQueueRoutingConfigIdQueueSobjectrouting_config_dnGroup.QueueRoutingConfigIdQueueSobjectmessagingqueue--create-if-missingdoesSendEmailToMembers=falseQueueSobjectCase_Routing_Configsource: discoveredDeveloperNamequeue_developer_namesf api request reststatuscreatedreusedupdatedblockedsobject_typedeveloper_namequeue_createdidqueue_routing_config_idqueue_routing_config_developer_namequeue_routing_config_sourceforceddiscoveredqueue_sobjectsbeforemanual_actionsblocking_issuecreated--create-if-missingreusedupdatedblocked--create-if-missingqueue_createdtrueblocking_issuemanual_actionsCaseIncidentMessagingSessionVoiceCallQueueSobjectdoesIncludeBosses| File | When to read |
|---|---|
| On a block for a missing queue (manual click-path) or unexpected Data API errors — Queue/QueueSobject schema, the Metadata API creation shape, and the stderr-separation and queue-naming-variance notes |