Fields: {
    %vlocity_namespace%__OmniScript__c: {
        content: "%vlocity_namespace%__Content__c";
        scriptId: "%vlocity_namespace%__OmniScriptId__c";
        sequence: "%vlocity_namespace%__Sequence__c";
    };
    OmniProcess: {
        content: "Content";
        scriptId: "OmniProcessId";
        sequence: "Sequence";
    };
} = ...

A constant object mapping SObject types to their corresponding field name mappings.

Each key is an SObject type (from either OmniScriptRecord.SObjectType or OmniProcessRecord.SObjectType), and its value is an object that maps logical field identifiers (sequence, scriptId, content) to their actual field names in the data model.

Type declaration

  • Readonly %vlocity_namespace%__OmniScript__c: {
        content: "%vlocity_namespace%__Content__c";
        scriptId: "%vlocity_namespace%__OmniScriptId__c";
        sequence: "%vlocity_namespace%__Sequence__c";
    }
    • Readonly content: "%vlocity_namespace%__Content__c"
    • Readonly scriptId: "%vlocity_namespace%__OmniScriptId__c"
    • Readonly sequence: "%vlocity_namespace%__Sequence__c"
  • Readonly OmniProcess: {
        content: "Content";
        scriptId: "OmniProcessId";
        sequence: "Sequence";
    }
    • Readonly content: "Content"
    • Readonly scriptId: "OmniProcessId"
    • Readonly sequence: "Sequence"

Remarks

This mapping is used to abstract field name differences between different SObject types, allowing code to reference fields in a type-safe and consistent manner.