Loading...
Loading...
Use to author an Omni WorkSkillRouting rule (field-based skill criteria): map a related-entity field value to a required Omni Skill (e.g. add the Voice skill when Case.Origin = Phone), deployed as one WorkSkillRouting record via the Metadata API. Idempotent via the Metadata API files[].state signal; one rule per related entity. Triggers: add field-based skill routing, route by a Case field to a skill, route by a MessagingSession field to a skill, configure attribute-based skills routing, require an Omni skill for a field value. Do not use to create the Skill or bind agents to it (service-omni-skills-based-routing-configure), to create agent users, or to configure queues.
npx skill4agent add forcedotcom/sf-skills service-omni-work-skill-routing-configureservice-omni-skills-based-routing-configureCase.OriginPhoneVoiceWorkSkillRoutingworkSkillRoutingAttributesservice-omni-channel-setup-coordinatebash scripts/configure-and-report.sh <org-alias> <related_entity> <field> <skill> <value> [rule_master_label]org-aliasrelated_entityCaseMessagingSessionLiveChatTranscriptLeadVoiceCallfieldCase.OriginOriginOriginCase.OriginskillSkillVoicevaluePhonerule_master_label<related_entity> Skill RoutingRULE_DEVELOPER_NAMEIS_ACTIVEtrueSKILL_LEVELSKILL_PRIORITYIS_ADDITIONAL_SKILLtruefalsesfsfservice-omni-base-settings-configureSkillservice-omni-skills-based-routing-configuresafe_to_writeOrganizationSkillservice-omni-skills-based-routing-configureWorkSkillRouting.Metadata(field, value)WSR_REPLACE=1WorkSkillRoutingfiles[].stateCreatedChangedUnchangedcreatedupdatedreusedreusedINVALID_TYPEblockedstatuscreatedupdatedreusedblockedaction_neededrule{developer_name, master_label, related_entity, is_active, state}attribute{field, skill, value, skill_level, skill_priority, is_additional_skill}merge{merged_from_existing, attribute_count, preserved_count}deploy_idmanual_actionsblocking_issueblocked| File | When to read |
|---|---|
| WorkSkillRouting metadata shape, XSD element order, one-rule-per-entity constraint, attribute fields, and graceful-degradation triggers |
| When validating changes — run |