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

# SAP SuccessFactors Integration: Setup and Behaviour

> Add PastaHR apply buttons to SAP SuccessFactors job postings and understand how candidate profiles are created, matched, and updated.

PastaHR integrates with SAP SuccessFactors, so candidates who apply through a PastaHR conversation are submitted directly into your SuccessFactors environment.

## Adding PastaHR to a Job Posting

The recommended way to add a PastaHR apply button to your SuccessFactors job postings is via a script embedded in the **SF Career Site Builder**, combined with a custom Picklist and a custom field on the Job Requisition. Once configured, the correct PastaHR button appears automatically on every job posting that has a flow selected, with no manual link updates needed per job.

<Steps>
  <Step title="Embed the script in the SF Career Site Builder">
    Add the following script to the relevant page templates in the **SF Career Site Builder**:

    ```html theme={null}
    <script data-token="xxxxx"
      src="https://conv.pastahr.com/pasta-utils/sf/apply-button-injector.js"
      channels="web,whatsapp,instagram">
    </script>
    ```

    Replace `xxxxx` with the token provided by PastaHR and set `channels` to the channels you want to offer (e.g. `channels="web,whatsapp"`).
  </Step>

  <Step title="Create the Picklist in the Picklist Center">
    Create a new Picklist: code `pastahrFlowList`, name `PastaHR Application Flows`, status Active, effective date 01/01/2025. PastaHR then populates this list with your flow values via the API. If the list stays empty initially, a dummy value may be needed, which you can remove later.
  </Step>

  <Step title="Add a custom field to the Job Requisition">
    Create a custom field: field ID `custPastaHrApplyFlow` (or another identifier of your choice), field type Picklist, label *PastaHR Application Flow*, Picklist ID `pastahrFlowList`.
  </Step>

  <Step title="Select the flow on each job posting">
    When creating or editing a job in SuccessFactors, select the appropriate PastaHR flow in the new field. The button appears automatically on the candidate-facing job page.
  </Step>
</Steps>

<Tip>
  Optionally, you can set up a **Business Rule** in SuccessFactors that automatically selects the application flow per Job Requisition, for example based on job profile or location.
</Tip>

For jobs where you want to forward applications manually, include the correct `remote_job_id` in the application link. The `remote_job_id` must match an active job in SuccessFactors, if it doesn't match, the application won't be accepted.

<Tip>
  You can set a default `remote_job_id` for a PastaHR flow in the flow settings, handy for standing postings that remain active over a long period.
</Tip>

## Candidate Profile Behaviour

When a candidate applies through PastaHR, their data is submitted to SuccessFactors and a candidate profile is created. There's an important edge case, however, when a candidate already has a SuccessFactors profile with the same email address but a **different phone number**.

<Tabs>
  <Tab title="WhatsApp Applications">
    For a WhatsApp application, the candidate's phone number is **verified by WhatsApp**. If the verified number matches the phone number already on file in the existing SuccessFactors profile, the profile **will be updated** with the new information from the application.

    If the numbers don't match, the profile may not update automatically, contact [support@pastahr.com](mailto:support@pastahr.com) if you encounter this.
  </Tab>

  <Tab title="Online Applications">
    For an online application (not via WhatsApp), the phone number is **not independently verified**. If a SuccessFactors profile already exists for that email with a different phone number on file, the existing profile will **not be updated automatically**.

    In this case, you'll need to manually review and reconcile the candidate record in SuccessFactors. If you'd like profiles to be updated automatically for online applications (with the caveat that the phone number is unverified), contact [support@pastahr.com](mailto:support@pastahr.com).
  </Tab>
</Tabs>

<Note>
  This behaviour is a limitation of SuccessFactors' API duplicate-detection logic, not a PastaHR limitation. PastaHR applies the verification-based approach to minimise unintended profile overwrites.
</Note>

<Card title="ATS Troubleshooting" icon="wrench" href="/en/recruiters/ats-troubleshooting">
  Solutions for "job not active" messages and missing candidate information.
</Card>
