forcedotcom/sf-skills / plugins/builder/service-omni/skills/service-omni-routing-flow-deploy
service-omni-routing-flow-deploy
VerifiedUse to deploy an Omni-Channel routing Flow for Case or VoiceCall and verify it routes work items to a queue or by skill. Supports the Case and VoiceCall steel thread with an autolaunched dryRun-gated variant and record-triggered QueueBased and SkillsBased variants. --trigger deploys a record-triggered variant; --routing-type SkillsBased evaluates WorkSkillRouting rules with a non-null skillOption; --runtime-proof checks routing evidence and, for SkillsBased, SkillRequirement rows. Triggers: deploy Omni routing flow for Case, deploy Omni routing flow for VoiceCall, wire VoiceCall routing, create a record-triggered Omni routing flow, verify a Case routing flow, deploy skills-based routing flow. Do not use for screen flows, platform-event-triggered flows, or Flow Tests.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.6 KB |
| assets/force-app/main/default/flows/Omni_Route_Case_Trigger.SkillsBased.flow-meta.xml | config | 4.1 KB |
| assets/force-app/main/default/flows/Omni_Route_Case_Trigger.flow-meta.xml | config | 3.5 KB |
| assets/force-app/main/default/flows/Omni_Route_Cases.flow-meta.xml | config | 4.9 KB |
| assets/force-app/main/default/flows/Omni_Route_VoiceCall_Trigger.SkillsBased.flow-meta.xml | config | 4.1 KB |
| assets/force-app/main/default/flows/Omni_Route_VoiceCall_Trigger.flow-meta.xml | config | 3.6 KB |
| assets/force-app/main/default/flows/Omni_Route_VoiceCalls.flow-meta.xml | config | 4.9 KB |
| assets/package.xml | config | 387 B |
| assets/sfdx-project.json | config | 194 B |
| references/api-notes.md | markdown | 16.3 KB |
| scripts/deploy-and-report.shexecutable | script | 35.4 KB |
assets/force-app/main/default/flows/Omni_Route_Cases.flow-meta.xml
View on GitHub<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>66.0</apiVersion>
<assignments>
<name>Set_Dry_Run_Ok</name>
<label>Set Dry Run Ok</label>
<locationX>176</locationX>
<locationY>350</locationY>
<assignmentItems>
<assignToReference>dryRunOk</assignToReference>
<operator>Assign</operator>
<value>
<booleanValue>true</booleanValue>
</value>
</assignmentItems>
<assignmentItems>
<assignToReference>routed</assignToReference>
<operator>Assign</operator>
<value>
<booleanValue>false</booleanValue>
</value>
</assignmentItems>
</assignments>
<assignments>
<name>Set_Routed</name>
<label>Set Routed</label>
<locationX>440</locationX>
<locationY>350</locationY>
<assignmentItems>
<assignToReference>dryRunOk</assignToReference>
<operator>Assign</operator>
<value>
<booleanValue>false</booleanValue>
</value>
</assignmentItems>
<assignmentItems>
<assignToReference>routed</assignToReference>
<operator>Assign</operator>
<value>
<booleanValue>true</booleanValue>
</value>
</assignmentItems>
</assignments>
<decisions>
<name>Is_Dry_Run</name>
<label>Is Dry Run</label>
<locationX>308</locationX>
<locationY>242</locationY>
<defaultConnector>
<targetReference>Set_Routed</targetReference>
</defaultConnector>
<defaultConnectorLabel>Not a dry run</defaultConnectorLabel>
<rules>
<name>Dry_Run_True</name>
<conditionLogic>and</conditionLogic>
<conditions>
<leftValueReference>dryRun</leftValueReference>
<operator>EqualTo</operator>
<rightValue>
<booleanValue>true</booleanValue>
</rightValue>
</conditions>
<connector>
<targetReference>Set_Dry_Run_Ok</targetReference>
</connector>
<label>Dry Run True</label>
</rules>
</decisions>
<description>Omni-Channel routing flow for Case work items. Includes a dryRun input for CLI smoke-testing without a queue configured. When dryRun=false, expects workItemId/queueId/routingConfigurationId inputs and hands off to the platform's routeWorkAction. Deployed by service-omni-routing-flow-deploy.</description>
<interviewLabel>Omni Route Cases {!$Flow.CurrentDateTime}</interviewLabel>
<label>Omni Route Cases</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>AutoLaunchedFlow</processType>
<start>
<locationX>182</locationX>
<locationY>134</locationY>
<connector>
<targetReference>Is_Dry_Run</targetReference>
</connector>
</start>
<status>Active</status>
<variables>
<name>dryRun</name>
<dataType>Boolean</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
<value>
<booleanValue>false</booleanValue>
</value>
</variables>
<variables>
<name>dryRunOk</name>
<dataType>Boolean</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>true</isOutput>
</variables>
<variables>
<name>queueId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>recordId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
<variables>
<name>routed</name>
<dataType>Boolean</dataType>
<isCollection>false</isCollection>
<isInput>false</isInput>
<isOutput>true</isOutput>
</variables>
<variables>
<name>routingConfigurationId</name>
<dataType>String</dataType>
<isCollection>false</isCollection>
<isInput>true</isInput>
<isOutput>false</isOutput>
</variables>
</Flow>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |