> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sherpahq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Fieldglass connectors

> The Fieldglass connectors and APIs sherpa calls, and their settings.

For your Fieldglass administrator. Enable each connector in Configuration Manager, with the Connector Wizard. The final list is agreed per customer.

## Read

| Data | Connector |
| - | - |
| Sites | Site Download |
| Locations | Location Download |
| Cost centres | Cost Center Download |
| Legal entities | Legal Entity Download |
| Business units | Business Unit Download |
| Rate categories | Rate Category Download |
| Job posting templates | Job Posting Template Download |
| Suppliers | Supplier Download |
| Users | User Download |
| Workers | Active Worker Download |
| Work orders | Active Work Order Download, and Work Order Delta Download through [sherpa's copy](#a-separate-copy-for-sherpa) |
| Job seekers | Job Seeker Download ([custom](#job-seekers)) |

## Write

| Change | Connector |
| - | - |
| Work order revision | Work Order Revision Delta Upload |
| Job posting | Job Posting Upload |
| Job seeker | Job Seeker Upload |
| Work order | Work Order Upload |

Set **Upload Data Format** to JSON.

* Each upload has its own switch in sherpa under Settings, Integrations. Each starts off.
* sherpa sends its request id as the **External Job Seeker ID** and the **External Work Order Id**.
* Work Order Upload names the job seeker by **Job Seeker ID** only. For a person sherpa has just put forward, sherpa waits until a Job Seeker event or [Job Seeker Download](#job-seekers) gives it that ID, and tells the person who asked why.

## APIs

| API | Used for |
| - | - |
| Token sign-in | Access token |
| Audit Trail API | Outcome of an upload |
| Approvals API | Reading approvals and sending decisions |
| Last Run Date API | Setting the last run date of sherpa's copy before each read |

## A separate copy for sherpa

Work Order Delta Download returns only what changed since the last run, and Fieldglass keeps one last run date per connector. sherpa needs its own copy, so it doesn't share that date with your other systems. In Fieldglass a copy is a **variant**.

1. Open the enabled connector's Integration page. In **Actions**, choose **Create Variant**.
2. Enable it and give it a unique name, for example the connector's name with `sherpa` at the end.
3. In **Set Run Date**, enter any date. Fieldglass requires one. sherpa sets it itself before each read.
4. Give your sherpa organization admin the variant's name, exactly as typed.

Use the variant for sherpa only. Don't schedule it or run it by hand.

## Job seekers

Fieldglass has no standard download of job seekers. Create one named **Job Seeker Download** with these columns:

```
Job Seeker ID, External Job Seeker ID, Job Posting ID, Status,
Supplier Code, Supplier Name, First Name, Last Name, Submit Time
```

sherpa uses it to find a job seeker by name for a work order, and to learn the Job Seeker ID of a person sherpa put forward, by the **External Job Seeker ID**. Without it, sherpa learns that ID from a Job Seeker event. sherpa leaves this list off until you switch it on under Settings, Integrations.

A download for your custom fields is defined the same way, with the sherpa team.

## Settings

| Setting | Value |
| - | - |
| **Integration System**, **Version** | Given by the sherpa team |
| **Download Data Format** | CSV or JSON |
| **Upload Data Format** | JSON |
| Columns | SAP's column names. Add **Worker ID** to Active Work Order Download. Add the worker's first and last name to Work Order Delta Download. Keep **External Work Order Id** on both work order downloads. |
| **Enable Delta Compare** | No |
| **Set Run Date** | Any date. sherpa sets it on its copy before each read. |
| **Email notification preference when no data is downloaded** | Off, on sherpa's variant |
| **Accessible**, **Sensitive Data** | Must cover sherpa's user |

Without **External Work Order Id**, sherpa learns a new work order's ID only from a Work Order event, and stops following a new work order it can't find after a few days.

## Events

Fieldglass calls sherpa when a record changes. Set it up in Configuration Manager, under **Publish/Subscribe**. The addresses, username and secret are in sherpa under **Settings > Logs > Fieldglass events > Set up events**.

1. Add a payload for each base module: **Job Posting**, **Job Seeker**, **Work Order**, **Worker**.
2. Add an end point per payload, with the address sherpa shows for it. Basic authentication, with the same username and secret on every end point. sherpa doesn't take OAuth. The secret can be copied again from the same page.
3. Subscribe each payload to its end point, all activities.

An event's header doesn't always name its base module, so the address it arrives at tells sherpa which payload it belongs to. When the header does name it, sherpa goes by the header.

| Base module | Address ends in | What sherpa does |
| - | - | - |
| Job Posting | `/job-posting` | Updates the request that created the posting, and checks who it waits for |
| Job Seeker | `/job-seeker` | Updates the request that put the person forward, and keeps the Job Seeker ID |
| Work Order | `/work-order` | Updates an open request for the work order, and reads the work orders again |
| Worker | `/worker` | Reads the work orders again |

An event that names no activity is a reason to ask Fieldglass again. The **Fieldglass events** list shows it as applied, with "Read again." sherpa accepts events of other base modules and keeps none of their content. An event for a record not created through sherpa has no request to update. sherpa then checks approvals, and for a work order or a worker reads the work orders again.

Include these fields in each payload:

| Field | Where |
| - | - |
| `baseModule`, `activity`, `approvalLevel`, `transactionId` | Header |
| `Job Posting Ref`, `Job Seeker Ref`, `Work Order Ref`, `Worker Ref` | Payload |
| `External Job Posting ID`, `External Job Seeker ID`, `External Work Order ID` | Payload |
| `Work Order Revision Id` | Work Order payload |
| `Last Approver Id` | Payload |

Maximum event size: 256 KB.

## References

* [SAP Fieldglass Connector Library](https://help.sap.com/doc/e7d299ced5014db7bf04be1237c8efdc/cloud/en-US/SAPFieldglassConnectorLibrary.pdf)
* [SAP Fieldglass Configuration Manager](https://help.sap.com/doc/dd24967883a94afd8505944529e07c71/cloud/en-US/SAPFieldglassConfigurationManagerPublic.pdf)
* [SAP Fieldglass REST API Integration](https://help.sap.com/doc/a5fdbd31ebe94832aef0eb79066a8087/cloud/en-US/SAPFieldglassRESTAPIIntegrationGeneralReferenceGuide.pdf)
* [SAP Fieldglass Audit Trail API](https://help.sap.com/doc/9d09cb5196b64152bf3fcb745ab28136/cloud/en-US/SAPFieldglassAuditTrailAPITechnicalSpecifications.pdf)
* [SAP Fieldglass Approvals API](https://help.sap.com/doc/d63a5197c77a4a35a05e1c338bd7d15d/cloud/en-US/SAPFieldglassApprovalsAPITechnicalSpecifications.pdf)
* [SAP Fieldglass Last Run Date API](https://help.sap.com/doc/bddc4cb0ea5448ff859dcb2825afd7d0/cloud/en-US/SAPFieldglassLastRunDateAPIService.pdf)
* [SAP Fieldglass Integration Administration](https://help.sap.com/doc/500c8707af244dd99de65aacf99deb79/Cloud/en-US/SAP_FG_Integration_Administration.pdf)
* [SAP Fieldglass APIs on SAP Business Accelerator Hub](https://api.sap.com/package/FieldglassAPI/rest)

Questions: [help@sherpahq.ai](mailto:help@sherpahq.ai).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.