Import resource assignments to Hive from CSV on schedule
Recipe ToolsMarketingDocument/FileUtilitiesData ParserCustomer Data Platform
What it does
When a scheduled time arrives, this automation pulls a CSV file and parses each row to create resource assignments in Hive. It verifies users and projects exist before creating assignments, so duplicates are not added.
Who it's for
Operations teams who need to bulk load resource assignments into Hive on a recurring schedule without manual entry.
How teams use this
Bulk load assignments on a monthly cycle
Import resource assignments from a CSV every month on the first day at midnight so the team does not have to enter them manually in Hive. The schedule runs without intervention.
Run a one-time import of historical data
Execute this automation once to import all resource assignments from a CSV into Hive without setting up a recurring schedule. The data loads in a single batch.
Add role or department fields to assignments
Extend the CSV to include role and department columns, then update the automation to map those fields when creating assignments in Hive. The import flow stays the same with extra data.
Sync assignments across multiple projects
Filter the CSV by project code before creating assignments in Hive so only the relevant resource data is imported each cycle. The schedule and parsing steps remain unchanged.
How it works
- Run on a set schedule. Trigger every 12 months at 12:00:00 AM on day 1 of the month. For a one-time import, run this automation as a test instead.
- Fetch the CSV file. Pull in the CSV file from the specified location so the data is ready to parse in File.
- Parse rows from the CSV. Extract and parse each row in the CSV file using Csv Parser. Paste your CSV content into the CSV Contents field to import the resource assignment data.
- Check users and projects in Hive. List users and projects already in Hive, then check each CSV row to see whether someone and the project exist before creating the assignment.
- Create resource assignments. For each row in the CSV, create a resource assignment in Hive with the person and project specified, skipping any that already exist.