php js css php js css

Please Login

Save Script Run
Attached Artifacts
Title
PHP Code
<?php // Remove the automation progress step title // "Please contact support@oncord.com to activate your account" (title ID 3) $strTitleId = 3; // Confirm it exists and matches exactly $arrTitle = \Components\Marketing\Automation\Progress\Steps\Titles::get($strTitleId); if (!$arrTitle) { echo "Title ID {$strTitleId} not found — nothing to do.\n"; return; } echo "Found title #{$strTitleId}: \"{$arrTitle['automation_progress_step_title_name']}\"\n"; // Show which progress steps reference it, then clear the reference $arrSteps = \Components\Marketing\Automation\Progress\Steps::getAll([ 'filter' => [['automation_progress_step_result_title_id', '=', $strTitleId]], 'limit' => 500 ]); echo count($arrSteps) . " progress step(s) reference this title; clearing their result_title_id...\n"; foreach ($arrSteps as $arrStep) { $arrStep['automation_progress_step_result_title_id'] = null; \Components\Marketing\Automation\Progress\Steps::save($arrStep); echo " - Cleared reference on progress step (automation_progress_id={$arrStep['automation_progress_id']}, automation_step_id={$arrStep['automation_step_id']})\n"; } // Delete the title record itself \Components\Marketing\Automation\Progress\Steps\Titles::delete($strTitleId); echo "Deleted title #{$strTitleId}.\n"; echo "Done. The label will no longer appear in automation activity entries.\n";

Run Log

▼ Today 4:53am ✓ Completed 0.3s
Found title #3: "Please contact support@oncord.com to activate your account"
3 progress step(s) reference this title; clearing their result_title_id...
  - Cleared reference on progress step (automation_progress_id=35, automation_step_id=108)
  - Cleared reference on progress step (automation_progress_id=34, automation_step_id=94)
  - Cleared reference on progress step (automation_progress_id=33, automation_step_id=94)
Deleted title #3.
Done. The label will no longer appear in automation activity entries.