---
title: Keeping records in sync
slug: keeping-records-in-sync
createdAt: 2026-11-10T10:19:21.351Z
---

How private offers and co-sell registrations travel from Salesforce to WeTransact and Microsoft, how their status comes back, and what to do when something doesn't send.

## Overview

Nothing is sent while a rep is filling in a wizard. When they finish it:

1. The record is saved in Salesforce with **Sync Status = Pending Sync**.
2. A background automation sends it to WeTransact, which passes it to Microsoft.
3. The record changes to **Synced** (for a private offer you publish, **Awaiting Microsoft** until Microsoft answers), or to **Sync Failed** with the reason.
4. As Microsoft processes it, a check every 10 minutes reads its status back onto the record.

Reps don't wait for any of this: the wizard closes as soon as the record is saved.

![](https://api.archbee.com/api/optimize/wlBoYP3-_D88k8I6lqBSW/nsNT48Gdip1yruw-g1UmC_sync-flow.png)

## Sync Status

Every private offer and co-sell registration has a **Sync Status**, shown as an icon in the **Sync** column of the WeTransact card (hover for the text) and as a field on the record.

| Sync Status            | Icon        | Meaning                                                                                                                                                          |
| ---------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Pending Sync**       | Clock       | Saved in Salesforce and waiting to be sent.                                                                                                                      |
| **Awaiting Microsoft** | Paper plane | Private offers only. WeTransact has sent the offer and Microsoft hasn't answered yet. Checked every 10 minutes; it changes to **Synced** once Microsoft answers. |
| **Synced**             | Tick        | WeTransact has the latest version.                                                                                                                               |
| **Sync Failed**        | Error       | It couldn't be sent. It is retried automatically, and the record says why.                                                                                       |

**Sync Status** is about the connection between Salesforce and WeTransact. Microsoft's decision is in separate fields: **Offer Status** for private offers, and **Deal Status**, **Deal Sub-Status** and **Microsoft Status** for co-sell. See [Create and manage a private offer](https://docs.wetransact.io/create-and-manage-a-private-offer) and [Register a co-sell deal](https://docs.wetransact.io/register-a-co-sell-deal).

## Scheduled jobs

The package runs these jobs. You don't need to set them up or start them: the daily jobs are installed with the package, and the WeTransact jobs start when you connect the org.

| Job                                                | When                    | What it does                                                                                                                                                                     |
| -------------------------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Microsoft Daily Private Offer Sender**           | Daily, around 00:00 UTC | Sends every private offer that is **Pending Sync** or **Sync Failed**.                                                                                                           |
| **Microsoft Daily Private Offer Status Retriever** | Daily, around 00:15 UTC | Updates the **Offer Status** of every offer Microsoft knows about.                                                                                                               |
| **Microsoft Daily Co-Sell Sender**                 | Daily, around 00:00 UTC | Sends every co-sell registration that is **Pending Sync** or **Sync Failed**.                                                                                                    |
| **Microsoft Daily Co-Sell Status Retriever**       | Daily, around 00:15 UTC | Updates the status fields of every open co-sell registration. The WeTransact status check does the same during the day.                                                          |
| **WeTransact status check**                        | Every 10 minutes        | Reads the status of every private offer that is **Awaiting Microsoft** and of every open co-sell registration.                                                                   |
| **WeTransact secret rotation**                     | Hourly, on the hour     | Keeps the org's connection credential fresh, and restarts the status check if it has stopped. See [Connection and security](https://docs.wetransact.io/connection-and-security). |

Because failed records are retried every day, a short outage needs no action: they go out on the next run. Status changes in Microsoft reach Salesforce within about 10 minutes. A co-sell deal stops being checked once it is **Closed**, which Microsoft sets together with its **Won** or **Lost** sub-status.

## Sync or refresh a record now

You don't need to wait for the next run. Open the record, go to its **Audit** tab, and use the sync panel:

| Record        | Choice                 | What it does                                    |
| ------------- | ---------------------- | ----------------------------------------------- |
| Private offer | **Send Private Offer** | Sends the offer now.                            |
| Private offer | **Retrieve Status**    | Reads the offer's latest status from Microsoft. |
| Co-sell       | **Send Co-Sell**       | Sends the registration now.                     |
| Co-sell       | **Retrieve Status**    | Reads the deal's latest status and sub-status.  |

The panel shows the result straight away, including the sync status and the response.

For a record whose last send failed, the **Details** tab also has a shortcut:

- a co-sell registration shows **Resend**;
- a private offer rejected by Microsoft shows **Resubmit**.

## When a record shows Sync Failed

1. Open the record and go to the **Audit** tab.
2. Read **API Response**. It says why the last attempt failed.
3. Fix what it describes (for example, a team member's details on a co-sell registration), then send it again from the **Audit** tab, or with **Resend** or **Resubmit**.

| API Response                 | Meaning                                                                                                                                                                                                                    |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Starts with `Status: 0`      | The request never left Salesforce. For co-sell, this almost always means the Default Workflow User is missing **WeTransact - Admin Access**. For private offers, the rep is missing their WeTransact permission set group. |
| `Status: 401`                | The org's connection has expired or been revoked. Reconnect it from the **WeTransact Setup** tab.                                                                                                                          |
| `Status: 400` with a message | WeTransact or Microsoft refused the content. The message says which field.                                                                                                                                                 |
| `Status: 5xx`                | WeTransact had a problem. The record is retried automatically; contact support if it persists.                                                                                                                             |

## Automate with Flow

Administrators can trigger a sync from their own flows. In **Flow Builder**, add an **Action** and search for:

| Action                                            | Input                                                            | What it does                 |
| ------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------- |
| **Sync Private Offer to WeTransact**              | Private offer record IDs                                         | Sends the offers now.        |
| **Retrieve Private Offer Status from WeTransact** | Private offer record IDs                                         | Updates their Offer Status.  |
| **Sync Co-Sell Records to WeTransact**            | Co-sell record IDs (leave blank for every pending or failed one) | Sends the registrations now. |
| **Retrieve Co-Sell Status from WeTransact**       | Co-sell record IDs                                               | Updates their status fields. |

The other WeTransact actions you'll see in Flow Builder are used by the package's own wizards and aren't meant to be called directly.
