Enter Other JSON Data as Input to Your Script

Enter a JSON schema into your Script as input data to run your Script.

Enter Other JSON Data as Input to Your Script

‌Use the Configuration panel to include JSON configuration settings your Script uses when it runs. For example, include the Client ID and Client Secret values in JSON format for OAuth 2.0 verification to a third-party service's API your Script must access to access the API. By entering these values into the Configuration panel, you can verify during testing that these values are valid for the third-party service.‌

A Script may reference Screen control values during a Request by placing their Variable Name setting values within quotation marks ("). In the example below, FullName is the Variable Name setting value for a control to store a Request participant's full name:

{
    "Name": "FullName"
}
Script Editor OverviewGenerate Your Script Using AI AssistantClean a Script to Improve its CodeDocument a ScriptExplain How a Script FunctionsDevelop Your Script in Script EditorEnter Mock Request Data Coming Into Your ScriptTest Your ScriptPass Request Data into Your ScriptEnvironment Variable and Magic Variable Syntax, Usage, SDK, and Script Examples
Logo

© 2024 ProcessMaker, Inc. All Rights Reserved. Except as otherwise permitted by ProcessMaker, this publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose.