mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 03:09:50 +08:00
* Migrating Core Salesforce Skills * Updating pr comments * updat reference * Updating a skill * Migrating Datacloud skills * Migrating Industries cloud skills * Validating - skills fixing --------- Co-authored-by: Sandip Kumar Yadav <sandipkumar.yadav+sfemu@salesforce.com>
22 lines
1.3 KiB
Bash
22 lines
1.3 KiB
Bash
#!/bin/bash
|
|
# OmniScript CLI command reference. Not meant to be run directly.
|
|
# Copy individual commands as needed. Replace <org>, <id>, <Type>, <SubType>, <Name> with actual values.
|
|
|
|
# List active OmniScripts
|
|
sf data query -q "SELECT Id,Name,Type,SubType,Language,IsActive,VersionNumber FROM OmniProcess WHERE IsActive=true AND OmniProcessType='OmniScript' LIMIT 50" -o <org>
|
|
|
|
# Query all elements for a specific OmniScript (ordered by hierarchy)
|
|
sf data query -q "SELECT Id,Name,ElementType,PropertySetConfig,Level,Order FROM OmniProcessElement WHERE OmniProcessId='<id>' ORDER BY Level,Order LIMIT 200" -o <org>
|
|
|
|
# Retrieve OmniScript metadata from org
|
|
sf project retrieve start -m "OmniScript:<Name>" -o <org>
|
|
|
|
# Deploy OmniScript metadata to org
|
|
sf project deploy start -m "OmniScript:<Name>" -o <org>
|
|
|
|
# Check all versions of a specific OmniScript
|
|
sf data query -q "SELECT Id,VersionNumber,IsActive,LastModifiedDate FROM OmniProcess WHERE Type='<Type>' AND SubType='<SubType>' AND OmniProcessType='OmniScript' ORDER BY VersionNumber DESC LIMIT 10" -o <org>
|
|
|
|
# Verify active version after deployment
|
|
sf data query -q "SELECT Id,Name,Type,SubType,Language,IsActive,VersionNumber FROM OmniProcess WHERE Type='<Type>' AND SubType='<SubType>' AND OmniProcessType='OmniScript' AND IsActive=true LIMIT 5" -o <org>
|