service-omni-sidebar-configure
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseservice-omni-sidebar-configure
service-omni-sidebar-configure
Enable the Omni-Channel sidebar — the pinned Omni utility region that docks to the side of a Lightning console app — by setting on that app's metadata and confirming the flag round-trips. This is the recommended Omni surface for console/demo orgs: reps see incoming work, presence, and the work list docked beside the record, rather than only in the collapsible utility bar. It runs once per console app and is invoked by as the final rep-experience step.
isOmniPinnedViewEnabled=trueCustomApplicationservice-omni-channel-setup-coordinate通过在Lightning控制台应用的元数据中设置并确认该标记的往返生效,即可启用Omni-Channel侧边栏——固定在Lightning控制台应用侧边的Omni实用程序区域。这是控制台/演示组织推荐的Omni界面:客服代表可以在记录旁看到待处理工作、在线状态和工作列表,而不仅仅是在可折叠的实用程序栏中查看。该操作针对每个控制台应用运行一次,并由作为客服体验设置的最后一步调用。
CustomApplicationisOmniPinnedViewEnabled=trueservice-omni-channel-setup-coordinateInputs
输入参数
bash
bash scripts/enable-and-report.sh <org-alias> [app_developer_name]- (required).
org-alias - (optional). The
app_developer_nameDeveloperName of the Lightning console app. When omitted, the skill queriesCustomApplicationfor Lightning console apps: exactly one → adopt it; zero or many →AppDefinition(name it explicitly).blocked
bash
bash scripts/enable-and-report.sh <org-alias> [app_developer_name]- (必填)。
org-alias - (可选)。Lightning控制台应用的
app_developer_name开发者名称。若省略该参数,此技能会查询CustomApplication获取Lightning控制台应用:若恰好找到一个,则采用该应用;若找到零个或多个,则状态为AppDefinition(需明确指定应用名称)。blocked
Preconditions and safety
前置条件与安全要求
- Target org authenticated via CLI, Service Cloud license,
sfCLI ≥ 2.139.6.sf - Omni-Channel base settings enabled ().
service-omni-base-settings-configure - The target must be a Lightning console app that is deployable as metadata. Standard apps and Aura apps are out of scope.
CustomApplication - The three-way production guard applies.
safe_to_write
- 目标组织已通过CLI完成身份验证,拥有Service Cloud许可证,且
sfCLI版本≥2.139.6。sf - 已启用Omni-Channel基础设置()。
service-omni-base-settings-configure - 目标必须是可作为元数据部署的Lightning控制台应用。标准应用和Aura应用不在适用范围内。
CustomApplication - 需启用三方生产环境保护机制。
safe_to_write
Run
运行方式
enable-and-report.shCustomApplicationisOmniPinnedViewEnabled- already →
true(no deploy).reused - or absent → sets it to
falseand deploys the singletruein one atomic Metadata API call, then re-retrieves to confirm the flag isCustomApplicationbefore reporting success.true
The deploy uses explicit (never ) and is done on its own — Metadata deploys are atomic, so the app is left unchanged on any failure.
--metadata "CustomApplication:<name>"--source-direnable-and-report.shCustomApplicationisOmniPinnedViewEnabled- 若值已为→ 状态为
true(无需部署)。reused - 若值为或不存在 → 将其设置为
false,并通过一次原子性Metadata API调用部署单个true,然后重新获取元数据以确认该标记已变为CustomApplication,之后才会报告操作成功。true
部署时使用显式的参数(绝不使用),且独立完成部署——Metadata部署是原子性的,因此任何失败都会使应用保持原有状态。
--metadata "CustomApplication:<name>"--source-dirBehavior
行为特性
Idempotent + non-destructive. The skill only flips the single boolean; it never rewrites tabs, brand, or nav config. When the field is missing it is inserted in its XSD-ordered position (immediately before ); when present its value is replaced in place.
<label>Auto-detect is conservative. It adopts an app automatically only when exactly one Lightning console app exists, so it can never silently pin the wrong app on an org with several.
幂等性 + 非破坏性:该技能仅修改单个布尔值;绝不会重写标签页、品牌或导航配置。若该字段缺失,会将其插入到XSD规定的位置(紧邻之前);若字段已存在,则直接替换其值。
<label>自动检测机制保守:仅当恰好存在一个Lightning控制台应用时,才会自动采用该应用,因此绝不会在包含多个应用的组织中静默地错误固定应用。
Output contract
输出约定
A single JSON object: ∈ | | , , , (bool), (bool), , , .
statusenabledreusedblockedapp_developer_nameapp_labelbeforeafterdeploy_idmanual_actionsblocking_issue- — the flag was
enabled/absent and is now verifiedfalse.true - — the flag was already
reused.true - — no/many console apps found, retrieve/deploy failure, or the post-verify did not confirm
blocked;trueexplains andblocking_issuenames the fix or prerequisite skill.manual_actions
返回单个JSON对象: ∈ | | ,包含、、(布尔值)、(布尔值)、、、字段。
statusenabledreusedblockedapp_developer_nameapp_labelbeforeafterdeploy_idmanual_actionsblocking_issue- :该标记原本为
enabled或不存在,现已验证为false。true - :该标记原本已为
reused。true - :未找到控制台应用或找到多个应用、获取/部署失败,或验证后未确认标记为
blocked;true字段会说明问题原因,blocking_issue字段会列出修复方法或所需的前置技能。manual_actions
Limitations
限制说明
- One app per invocation; run again for each console app that needs the sidebar.
- Lightning console only — not Aura, not standard apps, not the utility-bar Omni widget.
CustomApplication - Does not create or lay out the console app, its tabs, or the Omni utility item.
- 每次调用仅处理一个应用;每个需要启用侧边栏的控制台应用需单独运行一次。
- 仅适用于Lightning控制台——不适用于Aura应用、标准应用或仅含实用程序栏的Omni组件。
CustomApplication - 不会创建或布局控制台应用、其标签页或Omni实用程序项。
References
参考文档
| File | When to read |
|---|---|
| CustomApplication |
| 文件 | 阅读场景 |
|---|---|
| CustomApplication |