Skip to main content

Schedule Code Mappings: Land Imported Codes on Your Own, and Review the Rest

Schedule Code Mappings: Land Imported Codes on Your Own, and Review the Rest

The schedules you import into Qvasa come from other systems, and those systems name activities their own way: CHAT, BRK, mat_leave. Qvasa's adherence and reporting work from your schedule codes: Messaging, Break, Unavailable. A code mapping connects the two. It says "whenever a file sends mat_leave, put that time on Unavailable", so imported schedules land on the codes you've already set up, with their categories and adherence settings.

Codes nobody mapped aren't lost. The import makes each one a schedule code of its own and lists it for review, where you keep it or merge it into one of yours. This article covers both: mapping codes ahead of time, and cleaning up the ones that arrive unmapped.


Before you start: what must be on, and who can use it

Three things must be on for your account:

  • Workforce Management (WFM), with its pages showing in the app. The Qvasa team turns this on.

  • Schedule Code Mappings in your plan. The Qvasa team makes it available. Until then, its card on WFM > Setup > Features shows Not in your plan.

  • The Schedule Code Mappings switch. An account admin turns it on with the switch on its card in WFM > Setup > Features. The card then shows On and an Open Code mappings button.

Who can do what:

  • See the Code Mappings page: account admins, and users with the See schedule data permission. Users who can see but not change it get a View only tag.

  • Add, change and delete mappings, keep codes and merge them: account admins, and users with the Manage codes and categories permission.

  • Merge away a code that was made in Qvasa (rather than by an import): this also needs the Add schedule codes permission, the same one archiving such a code needs.

  • Turn the feature on or off: account admins only.

If you don't see Code Mappings under WFM > Setup, or opening it says "This feature is not enabled for your account", the feature is off. Ask an admin to check its card on WFM > Setup > Features. If the card says Not in your plan, ask your Qvasa team. Permissions are set per user in WFM > Setup > Configure: see WFM Permissions: Who Can See and Change Scheduling.


Which imports use mappings

Mappings apply to the imports where the file decides the code's name:

  • Schedule file upload API (files your systems send with an integration token)

  • Spreadsheet upload (WFM > Setup > Imports)

  • Schedule CSV over HTTPS

  • TWW

One mapping covers all of them: if you map mat_leave to Unavailable, every one of these imports puts mat_leave there. Connected WFM tools that send their own code ids, Playvox and Assembled, keep their own codes, so mappings don't apply to them.


How an import decides where a code lands

For each code in a file, the import checks, in order:

  1. Is there a mapping for it? Its rows land on the mapped schedule code. No new code is made, and the mapped code's name and category aren't changed. The import's summary counts it as mapped.

  2. Has this same import sent this code before? Its rows land on the code that was made for it the first time. (Each import keeps its own codes: Phones from a spreadsheet upload and Phones from the file API are two separate codes, unless a mapping sends both to one.)

  3. Otherwise, the import makes a new schedule code named as the file sent it, and lists it under Codes to Review.

How codes are matched: case doesn't matter, and spaces count the same as underscores, so Mat Leave, MAT LEAVE and mat_leave are one code. Other punctuation does count: mat-leave and MatLeave are different codes, so map each spelling your systems send.

What a new code's category is: Qvasa guesses it from the name. Names with vacation, absence, time off, PTO, leave, holiday or sick become Time Off; break, lunch, meal or rest become Break Time; train, coach, mentor, nesting or onboard become Training; meeting, 1-on-1, huddle, standup or briefing become Meeting; anything else becomes Productive Work. You can change a code's category on WFM > Setup > Activities, and later imports keep your choice. While it waits for review, a new code works like any other on schedules, timelines and widgets.


The Code Mappings page

Go to WFM > Setup > Code Mappings. You can also get there from the Code Mappings button and the "N to review" link on WFM > Setup > Activities, and from step 3 of the Schedule file upload API setup.

The page has three tables:

  • Codes to Review: codes imports made because no mapping named them, oldest first. Each shows the id the file sent under its name, the import that made it (Source), how many schedules it has from 90 days ago on, and when it was made.

  • Recent Merges: each merge, with its status (Waiting, Moving schedules, Merged or Failed) and how many schedules, mappings and settings it moved.

  • Mappings: every incoming code and the schedule code it lands on, whether that code is Live or Archived, how the mapping was made (Made here, API or Merge), and who made it.

Codes to Review and Recent Merges appear only when there's something in them.


Map codes before they arrive

The best time to map is before an import first runs, so its rows land on your codes from the start. Ask whoever runs the sending system for the list of activity codes it uses, then:

  1. On Code Mappings, click New mappings.

  2. In Incoming code, enter a code as the file sends it, for example Sick.

  3. In More codes, add any other codes that belong on the same schedule code, one per line or separated by commas: Sick Day, SICK_LEAVE, Illness.

  4. In Schedule code, pick the code they all land on. The list shows your live codes, each with where it came from.

  5. Click Create mappings.

  • Many codes can land on one schedule code, but each incoming code has one mapping. If you enter a code that's already mapped, its mapping moves to the code you picked, and the confirmation says how many moved.

  • A mapping can only point at a live code, not an archived one.

  • You can add up to 500 codes at a time. If any one can't be saved (for example, the same code twice in the list), nothing is saved and the form says why.

When it takes effect: from the next import on. Schedules already imported stay where they are, with one exception: if a file sends the same agents and dates again, those rows move to the new mapping, because the file replaces them. In practice, the dates your systems keep sending follow your mappings, and older history stays put.


Change or delete a mapping

In the Mappings table, tick the mappings you want to change. Then:

  • Map to another code points them all at the schedule code you choose.

  • Delete removes them. You can also delete one mapping with the trash icon on its row.

Both work like adding a mapping: from the next import on, and schedules already imported stay where they are. After you delete a mapping, the next file that sends that code makes a code of its own, which waits in Codes to Review.


Review the codes an import made

Every code in Codes to Review needs one decision. Use the icons on its row:

  • Keep it as a code of its own (the check icon): the code is fine as it is. It leaves the list and nothing else changes. Later files that send it keep landing on it.

  • Merge it into one of your codes (the merge icon, or click the row): its schedules move to a code you already have, and it's deleted. See the next section.

To keep several at once, tick them and click Keep. Keep all, at the top of the page, keeps every code waiting.

Turning the feature on for the first time? Imports flag the codes they make even while Schedule Code Mappings is off. When you turn it on, every code an import made in the meantime is waiting in Codes to Review. Keep the ones you want, and merge the rest.


Merge one code into another

A merge folds a code you don't want into a code you keep. Unlike a mapping, it changes the past too: every schedule on the code, past and future, moves to the code you keep, and then the merged code is deleted.

  1. Click the merge icon on the code's row in Codes to Review.

  2. In Merge into, pick the code to keep.

  3. Read What the merge changes: it lists every place that names the merged code and what happens to each.

  4. Click Merge and confirm. If the merge rewrites setup someone built (Shifts, rules or dashboards), you type the code's name to confirm.

What a merge changes:

  • Moves to the code you keep: schedules, Shifts (including published versions), scheduling rules, and dashboard widgets, tables and formulas that name the merged code.

  • Mappings: every mapping that pointed at the merged code now points at the code you keep. A new mapping is also added from the merged code's own incoming code (with Origin Merge), so the next file that sends it lands on the code you keep instead of making it again.

  • Settings: the code you keep keeps its own category, adherence rule, channel settings and adhering statuses. The merged code's are dropped.

  • History: the audit trail still names the merged code.

A merge can't be undone. It runs in the background: its row in Recent Merges shows Moving schedules, then Merged. If it shows Failed, the Note says why, and Resume carries on from where it stopped.

Which codes can be merged away: codes made by the imports listed above, and codes made in Qvasa or over the API. A code from Playvox or Assembled can't be merged away, because its next sync would make it again, but you can merge other codes into it. A code that a time-off type uses can't be merged away either.


Turning the feature off

Switching Schedule Code Mappings off on WFM > Setup > Features stops imports from applying your mappings: from then on, each code a file sends becomes a code of its own, as if nothing were mapped. Your mappings are kept, and apply again when you switch it back on. While it's off, the Code Mappings page is hidden.


Doing this over the User Access API

Everything on the page is also available to your AI agents and scripts through Qvasa's User Access API: list, create, re-point and delete mappings, map many codes at once, keep codes, preview and run merges, and check what an import would do with a list of codes before you send a file. Writes need a user with the Manage codes and categories permission (being an admin isn't enough on its own over the API).


Troubleshooting

  • A code I mapped still made a code of its own. Check the spelling the file sends. Case and spaces don't matter, but hyphens and other punctuation do, and the mapping only applies from the import after you made it. Merge the extra code into the one you mapped to.

  • I archived a schedule code, and files still land on it. A mapping keeps sending rows to its code even after the code is archived. Point the mappings at another code first (tick them, then Map to another code).

  • I deleted a mapping made by a merge, and the merged code came back. That mapping is what sends the merged code's rows to the code you kept. Without it, the next file makes the code again. Merge it again, or map the code.

  • I can see the page but not the New mappings button. Changing mappings needs admin or the Manage codes and categories permission.

  • Merge says it needs another permission. Merging away a code made in Qvasa also needs Add schedule codes.


Did this answer your question?