AST 1206 mapping config block
Create and Push Mapping Configuration Block
Define and deploy a Prefect Block containing customer-specific field mapping configuration for transforming ADP employee data to Costpoint format.
Key details:
- Create JSON file in
mappings/{customer-id}-adp-employee-mapping.json - Block naming:
{customer-id}--adp-employee-mapping - Map ADP field names to Costpoint field names
- Include transformation rules (e.g., date formatting, name splitting)
- Define default values for required Costpoint fields not in ADP
- Push to Prefect using:
python scripts/push_mapping_block.py mappings/{customer-id}-adp-employee-mapping.json - Load in workflow using:
JSON.load("{customer-id}--adp-employee-mapping") - See
mappings/example-customer-a-pokeapi-pokemon-to-httpbin-mapping.jsonfor reference