Skip to content

Commit 83423b9

Browse files
authored
Update environment.md Testing a function section
1 parent 6c6d12a commit 83423b9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/connections/functions/environment.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ If you're editing an existing function, you can **Save** changes without changin
3535

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

38+
## 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.
42+
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+
3847
## Deploying source functions
3948

4049
> note ""

0 commit comments

Comments
 (0)