Skip to content

Commit

Permalink
Merge pull request #9 from Volt-MX-GO/LPRO-1116
Browse files Browse the repository at this point in the history
Noticed that some how-tos were missing Call
  • Loading branch information
spanky762 authored and GitHub Enterprise committed Sep 25, 2024
2 parents bd2c9fc + 9bdd253 commit 4f1d62c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/howto/return-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Volt MX Foundry always returns a JSON object, always including "opstatus" and "h

!!! warning

Using `VoltMXResult.result.appendToJSONArray()` will throw an error, because `result` is always a JSON object, not a JSON array.
Using `Call VoltMXResult.result.appendToJSONArray()` will throw an error, because `result` is always a JSON object, not a JSON array.

You do not need to explicitly add opstatus and httpStatusCode to the `VoltMXResult.result` object. These will automatically be appended from the relevant properties before the output is printed.

Expand Down
2 changes: 1 addition & 1 deletion docs/howto/validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The following code can be used to validate a username parameter in a VoltScript
Dim username as String
username = VoltMxRequest.getInputParam("username")
If (username = "") Then
VoltMxResult.setErrorMessage("Username is required")
Call VoltMxResult.setErrorMessage("Username is required")
Return False
End If
```
Expand Down

0 comments on commit 4f1d62c

Please sign in to comment.