ferrero-opentext/Python-Version/scripts/shared
DJP 95c3256183 Fix B1→B2 workflow - Correct function name and search for Global comm campaigns
Fixes:

1. PHP: Fixed function name
   - Changed findFinalAssetsFolder() → findUploadFolder()
   - This function already looks for Final Assets folder
   - Now PHP interface works without fatal error

2. Python: Search for Global comm campaigns
   - Added campaign_type parameter to search_campaigns()
   - B1→B2 uses: campaign_type='Global comm'
   - A1→A2 uses: campaign_type='Local Adaptation' (default)

3. Python: Fixed log messages
   - 'Searching for B1 Global campaigns' (not A1)
   - 'No B1 campaigns found' (not A1)

4. Box Folder Configuration
   - B1→B2 uses folder: 349261192115
   - Folder naming: MASTERS_Campaign_Name

B1→B2 Now:
 Searches Global comm campaigns
 Filters for B1 status
 Uses Final Assets folder (05. not 01.)
 Uploads to correct Box folder (349261192115)
 Names folders: MASTERS_NUTELLA_PLANT-BASED_LAUNCH

Test:
1. Refresh PHP app - should load now
2. B1→B2 tab should work
3. Python script should find B1 campaigns

🤖 Generated with Claude Code
2025-11-03 13:47:20 -05:00
..
__pycache__ Fix B1→B2 workflow - Correct function name and search for Global comm campaigns 2025-11-03 13:47:20 -05:00
__init__.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
box_client.py Add A2→A3 polling version and fix database to use existing columns 2025-10-30 19:21:13 -04:00
config_loader.py Start Python automation - Foundation components 2025-10-30 16:38:26 -04:00
dam_client.py Fix B1→B2 workflow - Correct function name and search for Global comm campaigns 2025-11-03 13:47:20 -05:00
database.py Add A2→A3 polling version and fix database to use existing columns 2025-10-30 19:21:13 -04:00
filename_parser.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
metadata_extractor_mvp.py Complete Python automation implementation - All components built 2025-10-30 16:49:14 -04:00
notifier.py Enhanced A2→A3 email with complete processing details 2025-10-31 08:31:26 -04:00