ferrero-opentext/Python-Version/scripts
DJP 64a7fb6b90 Add --A3update flag to A2→A3 script for testing
Allows manual campaign status update A2→A3 after file upload.

NEW FEATURE: --A3update Flag
- Optional flag for testing purposes
- Forces campaign status update A2→A3 after file upload
- Extracts campaign ID from uploaded asset's metadata
- Updates campaign status in DAM

USAGE:
  Default (no status update):
    python scripts/a2_to_a3_upload_polling.py

  With status update (testing):
    python scripts/a2_to_a3_upload_polling.py --A3update

HOW IT WORKS:
1. Upload file to DAM (always happens)
2. If --A3update flag set:
   - Extract campaign ID from master asset metadata
   - Look in inherited_metadata_collections for campaign container
   - Update campaign status A2 → A3
   - Log success/failure

LOGGING:
```
--A3update flag set - Attempting to update campaign status
Found campaign ID: abc123def456
Updating campaign status A2 → A3...
✓ Campaign status updated successfully: A2 → A3
```

USE CASES:
- Testing: Quickly update campaign status after single upload
- Manual workflow: Force status update without waiting for all assets
- Development: Test status update functionality

PRODUCTION NOTE:
For production, typically don't use this flag.
Campaign should stay at A2 until ALL localized assets uploaded.

Changes:
- scripts/a2_to_a3_upload_polling.py
  - Added argparse import
  - Added --A3update flag
  - Added campaign status update logic
  - Extracts campaign ID from full_metadata

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 12:42:43 -05:00
..
shared Add detailed upload logging and job polling for actual asset ID 2025-11-05 12:38:45 -05:00
a1_to_a2_download.py Add optional mTLS certificate authentication with --auth-pfx flag 2025-11-04 18:01:23 -05:00
a2_to_a3_upload.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
a2_to_a3_upload_polling.py Add --A3update flag to A2→A3 script for testing 2025-11-05 12:42:43 -05:00
a5_to_a6_download.py Add optional mTLS certificate authentication with --auth-pfx flag 2025-11-04 18:01:23 -05:00
b1_to_b2_download.py Add optional mTLS certificate authentication with --auth-pfx flag 2025-11-04 18:01:23 -05:00
daily_report.py Add daily summary report with comprehensive statistics 2025-11-04 16:34:44 -05:00
test_connection.py Add optional mTLS certificate authentication with --auth-pfx flag 2025-11-04 18:01:23 -05:00
test_mtls_cert.py Add optional mTLS certificate authentication with --auth-pfx flag 2025-11-04 18:01:23 -05:00
test_mtls_debug.py Add separate mTLS base URL configuration for certificate authentication 2025-11-05 08:25:31 -05:00