📊 Export Partners and Partner Invitations to an Excel file
In a nutshell
This job exports all your partners and partner invitations into a single Excel file with two sheets.
The Partners sheet lists each partner with the linked account name, key and ID. The Partner Invitations sheet lists all invitations with their status, recipient email and account name.
📥 Download the latest version of this job.
⌛ Time to setup: 5 minutes.
📋 Prerequisites: A Product-Live account with access to the Data Factory platform.
The current version is (last updated on 2026-04-02).
Generic job reference: .
Result
Once set up, a job is available in the Data Factory jobs list.
The job generates an Excel file (partners_report.xlsx) containing two sheets:
Partners sheet:
| Column | Description |
|---|---|
| Partner ID | The unique identifier of the partner |
| Account ID | The linked account identifier |
| Account Name | The name of the linked account |
| Account Key | The key of the linked account |
| Status | The partner status (ENABLED, DISABLED, REMOVED) |
| Created At | The date the partner was created |
| Updated At | The date the partner was last updated |
Partner Invitations sheet:
| Column | Description |
|---|---|
| ID | The unique identifier of the invitation |
| To Account Name | The name of the invited account |
| To User Email | The email of the invited user |
| Status | The invitation status (PENDING, ACCEPTED, CANCELLED, PROCESSING, INVALID_EMAIL) |
| From User ID | The ID of the user who sent the invitation |
| Account ID | The account that sent the invitation |
| Created At | The date the invitation was created |
| Updated At | The date the invitation was last updated |
Requirement
To deploy this job, you'll need a valid Product-Live account and an active Data Factory pipeline. If you don't have access to the Data Factory module, please contact our support team.
Setup
- Download the last version of this job, available here
- Then simply import the downloaded Data Factory job in your account.
Further information
Job design
The job is composed of 5 tasks, organized as presented in the following diagram:
mermaid
flowchart TD
start["🏁 Job Start"]
end_["🟢 Job is complete"]
partners["Fetch partners [1]"]
accounts["Fetch accounts [2]"]
invitations["Fetch partner invitations [3]"]
transform["Transform to XML [4]"]
excel["Generate Excel report [5]"]
start --> partners
partners --> accounts
accounts --> invitations
invitations --> transform
transform --> excel
excel --> end_- [1]: The Data Factory task used is
data-partner-find - [2]: The Data Factory task used is
data-account-find - [3]: The Data Factory task used is
data-partner-invitation-find - [4]: The Data Factory task used is
code-execute-javascript - [5]: The Data Factory task used is
file-generation-xlsx
If it's your first time using Data Factory, the Get started tutorial is a good place to start. You can also check the Tasks section to learn more about the different tasks available.
Detailed parameters
[1] Fetch partners
This task fetches all partners linked to your account:
json
{
"findMode": "ALL",
"outputs": [
{
"mediaType": "application/json",
"outputMode": "ATTACHMENT",
"outputKey": "json"
}
]
}1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Each partner object contains: id, accountId, status, createdAt, updatedAt.
[2] Fetch accounts
This task fetches all linked accounts to resolve each partner's account name and key:
json
{
"findMode": "ALL",
"outputs": [
{
"mediaType": "application/json",
"outputMode": "ATTACHMENT",
"outputKey": "json"
}
]
}1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Each account object contains: id, name, key, createdAt, updatedAt.
[3] Fetch partner invitations
This task fetches all partner invitations:
json
{
"findMode": "ALL",
"outputs": [
{
"mediaType": "application/json",
"outputMode": "ATTACHMENT",
"outputKey": "json"
}
]
}1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
Each partner invitation object contains: id, toAccountName, toUserEmail, status, fromUserId, accountId, createdAt, updatedAt.
[4] Transform to XML
This task uses JavaScript (assets/transform-to-xml.js) to merge the three data sources and generate an XML structure for the Excel generation:
- Builds a lookup map from accounts (accountId → name, key)
- Enriches each partner row with the linked account name and key
- Generates two
<Sheet>elements (Partners and Partner Invitations) - Formats dates to
YYYY-MM-DD HH:MM:SS - Escapes XML special characters
[5] Generate Excel report
This task generates the final Excel file from the XML data, using an Excel template for formatting:
json
{
"request": "${transform_to_xml.output.result}",
"templates": [
{
"key": "report",
"file": "file://assets/partners-report.xlsx"
}
]
}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9