Skip to content

Commit ce4ffe7

Browse files
authored
Apply suggestions from code review
1 parent 83423b9 commit ce4ffe7

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/connections/functions/environment.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@ If you're editing an existing function, you can **Save** changes without changin
3636
You can also choose to **Save & Deploy** to push changes to all, or specific functions in your workspace that are already deployed. You might need additional permissions to deploy these changes.
3737

3838
## Testing a function
39-
You have the option to test your functions code with either a Sample Event or by loading a default event that you can customize yourself.
40-
1. **Sample Event** : By clicking on "Test with custom event" you can select a sample event from any of your workspace sources to test this function.
41-
2. **customize the event yourself** : By clicking the text "customize the event yourself" a default event payload will load which you can modify with the desired data. Here you have the option to paste in a JSON event or even click on "Manual Mode" and type in the fields manually. If you'd like to locate a recent event from a source that's not available by following the Sample Event instruction, simply navigate to the desired Source's Debugger, click on the event you're wanting to test, copy the raw JSON payload, and paste that into your Function Editor.
39+
You have the option to test your functions code with either a sample event or by loading a default event that you can customize yourself.
40+
* **Sample event**: When you click **Test with custom event** you can select a sample event from any of your workspace sources to test this function.
41+
* **Customize the event yourself**: When you click **customize the event yourself** a default event payload loads which you can modify with the desired data. You have the option to paste in a JSON event or click **Manual Mode** and type in the fields manually. If you'd like to locate a recent event from a source that's not available by following the sample event instruction:
42+
1. Navigate to the source debugger.
43+
2. Click the event you want to test and copy the raw JSON payload.
44+
3. Paste the raw JSON payload into your Function Editor.
4245

43-
Once the payload you want to test is ready, click on the button labeled Run.
44-
> note ""
45-
> If you created settings in your function, then you will need to fill in those settings' values before clicking Run.
46+
Once the payload you want to test is ready, click **Run**.
47+
48+
> info ""
49+
> If you create settings in your function, then you need to fill in the setting values before clicking **Run**.
4650
4751
## Deploying source functions
4852

0 commit comments

Comments
 (0)