Save and Debug

Note:

The feature is available to users with programming skills. If you are unable to write codes and still want to use the feature, install plugins in Market or contact our Support Team.

Feature Introduction

If all parameters and codes for a plugin have been edited, you need to save the plugin.

  • Save and Debug: After finishing developing a plugin, save the configurations for the plugin and debug it to check issues involved in coding or configurations.
  • Save: click Save to save the configurations for subsequent editing or direct use.

Rule(s)

Saving Rule(s)

If you switch to the Plugin Design or Plugin Properties page when designing a plugin, the feature of automatic saving will be triggered. Therefore, you do not need to manually save your configurations.

However, if you have made changes to the plugin design and click to go back to the last page, the system will prompt you that the changes have not been saved. In the case, click Save before returning to the Plugin page.

Operation Rules

The followings are the rules for different operations:

  • Save&Continue: save your operations on plugins and return to the Plugin page.
  • Discard: discard the changes you just made and return to the Plugin page while retaining the previously saved settings.
  • Back to Plugin Design: return to the Plugin Design page.

Plugin Debug

Where to Debug

After finishing developing the plugin, you can debug the plugin to check issues involved in coding or configurations. Click Save and Debug to enter the Plugin Debug page for debugging.

Trigger & Code Running

1. On the Plugin Debug page, select the plugin you want to debug. Then click Run to start debugging.

2. On the left side are the data that will be passed to the plugin when you simulate plugin execution.

  • agentConf: simulate common parameters in the codes.
  • triggerConf: simulate request parameters in the codes.

After you fill in the test values in the left request according to the format and click Run, these values will be transferred to the plugin synchronously. After the transfer is completed, the plugin execution result will be displayed in Response. Then you can check whether the response meets your expectation.

Viewing Standard Example

1. In View Standard Example, you can obtain the corresponding structure of the latest parameter design. When writing a request, you can copy the codes from the standard example to the left and then modify the parameter values according to your needs.

2. For example, when debugging the Query Members plugin, you can copy the codes from the standard example to the left request, and then modify the agentConf and triggerConf as follows:

  • agentConf: modify the original apiKey to that in Jodoo.
  • triggerConf: modify the content to the department number that needs to be queried based on enterprise information.

After finishing the modification, click Run to view the member query result in Response.

Response

After clicking Run, you can view the response on the right side of the Plugin Debug page. For example:

Was this information helpful?
Yes
NoNo
Need more help? Contact support