File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 8282 "integrationProcedureManualUpdateMessage" : " Integration Procedure reference {0} may need manual updates after migration." ,
8383 "cardAuthorNameChangeMessage" : " Card author name has been modified to fit naming rules: {0}" ,
8484 "cardNameChangeMessage" : " Card name has been modified to fit naming rules: {0}" ,
85- "duplicateCardNameMessage" : " Potential duplicate: Another card has the same name {0} after name cleaning. This may cause conflicts during migration"
85+ "duplicateCardNameMessage" : " Potential duplicate: Another card has the same name {0} after name cleaning. This may cause conflicts during migration" ,
86+ "angularOmniscriptWarningMessage" : " Angular OmniScript will not be migrated, please convert this to LWC based Omniscript"
8687}
8788
Original file line number Diff line number Diff line change @@ -439,6 +439,30 @@ export class OmniScriptMigrationTool extends BaseMigrationTool implements Migrat
439439 // Create a map of the original OmniScript__c records
440440 originalOsRecords . set ( recordId , omniscript ) ;
441441
442+ // Check if this is an Angular OmniScript that should be skipped
443+ const omniProcessType = omniscript [ `${ this . namespacePrefix } IsProcedure__c` ] ? 'Integration Procedure' : 'OmniScript' ;
444+ if ( omniProcessType === 'OmniScript' ) {
445+ const type = omniscript [ this . namespacePrefix + 'IsLwcEnabled__c' ] ? 'LWC' : 'Angular' ;
446+ if ( type === 'Angular' ) {
447+ // Skip Angular OmniScripts and add a warning record
448+ const warningMessage = this . messages . getMessage ( 'angularOmniscriptWarningMessage' ) ;
449+ const skippedResponse : UploadRecordResult = {
450+ referenceId : recordId ,
451+ id : '' ,
452+ success : false ,
453+ hasErrors : true ,
454+ errors : [ warningMessage ] ,
455+ warnings : [ ] ,
456+ newName : '' ,
457+ } ;
458+ osUploadInfo . set ( recordId , skippedResponse ) ;
459+ progressBar . stop ( ) ;
460+ Logger . warn ( warningMessage ) ;
461+ progressBar . start ( omniscripts . length , progressCounter ) ;
462+ continue ;
463+ }
464+ }
465+
442466 // Record is Active, Elements can't be Added, Modified or Deleted for that OS/IP
443467 omniscript [ `${ this . namespacePrefix } IsActive__c` ] = false ;
444468
You can’t perform that action at this time.
0 commit comments