# Copilot prompts: Gravity Forms Professional to SharePoint

Use these prompts with Copilot in Power Automate
(https://make.powerautomate.com). They build a flow that creates a SharePoint
list item for each Gravity Forms entry.

## Before you use the prompts

1. Install Gravity Forms Power Automate Professional on your WordPress site.
   Enter your license key and select a user under Forms > Settings > Power
   Automate Pro. Select Save Settings.
2. Keep that page open. Its Connection Details section shows the Site Name,
   the License Key and the Secret Key. Power Automate asks for them one time.
3. Create a SharePoint list with one column for each form field you want to
   keep. Add a Number column named Entry ID.

## How to use them

- Send one prompt at a time. Check the result before you send the next one.
- Replace the text in [square brackets] with your own names.
- Copilot cannot see your forms or your SharePoint lists. You select the form,
  the site and the list yourself in the designer.

## Prompt 1: create the flow

On the Power Automate Home page, paste this into the Copilot box:

```
When a Gravity Forms form is submitted in Gravity Forms Professional, create an item in a SharePoint list.
```

Select **Keep it and continue**. When Power Automate asks for the Gravity
Forms Professional connection, fill in the fields from Connection Details in
WordPress:

- **Connection Name**: any name.
- **License Key** and **Secret Key**: copy each one with its copy button.
- **URL For Power Automate Connection**: the Site Name value, with https:// at
  the start.

Sign in to SharePoint if it asks. Then select **Create flow**.

Check: the trigger is **When a Gravity Forms form is submitted** from
**Gravity Forms Professional**, and the action is **Create item** from
**SharePoint**.

## Prompt 2: only if the trigger is wrong

If Copilot used a different trigger, for example Microsoft Forms or the
connector "Gravity Forms by reenhanced", paste this into the Copilot pane in
the designer:

```
Change the trigger to "When a Gravity Forms form is submitted" from the "Gravity Forms Professional" connector.
```

If the trigger is still wrong, delete it and add it by hand: search for
"Gravity Forms Professional" in the trigger list.

## Select your form, site and list

Do this yourself in the designer:

1. Select the trigger and select your form.
2. Select the **Create item** action. Select your **Site Address** and
   **List Name**.

## Prompt 3: map the fields

Send one prompt for each column. Use your own field and column names.

```
In the Create item action, set the [Title] column to the [Name] field from the trigger.
```

```
In the Create item action, set the [Email] column to the [Email] field from the trigger.
```

```
In the Create item action, set the [Entry ID] column to the entry ID from the trigger.
```

Open the action after each prompt and confirm that the correct form field is
in the correct column.

## Prompt 4: tell me when it fails

```
Add a parallel branch that runs only if Create item fails and sends me an email with the error details.
```

## Prompt 5: check the flow

```
Explain what this flow does step by step.
```

Compare the answer with what you want. Then select **Save**.

## Test

1. Submit a test entry on your website.
2. In WordPress, open the entry (Forms > Entries). The notes show a line that
   starts with "Entry sent to Power Automate for form submission."
3. In Power Automate, the flow run history shows **Succeeded**.
4. The new item is in your SharePoint list.

Need help? https://wordpress.dev.office.reenhanced.com/support/
