Skip to content

Snippets

What are Snippets?

Snippets are blocks of code that you can copy and paste into your own services. These snippets typically provide a base that you can customize and build on.

Info

Pasting a snippet will create variables and webservices in your service when needed. If you want to completely remove a snippet from your service you will need to also remove these.

Info

Some snippets may have prerequisites such as specific plugins must be installed. Make sure you have checked the prerequisites before using a snippet.

How do I use them?

Copy the snippet of your liking and then paste it into your workflow or form.

  1. Copy the snippet. How to copy a snippet
  2. Paste the snippet into either your workflow or form. How to paste a snippet

Try it out

Click here to show an example snippet. Click the Copy button.

{"fields":[{"fieldsViewModel":{"fields":[]},"name":"Snippet","displayName":{"en-US":"This text field came from a Snippet"},"description":{"en-US":""},"type":"InputText","size":"3","properties":{"defaultvalue":{"en-US":""},"validationmessage":{"en-US":""},"validationtype":0,"validationpattern":""},"required":false,"readonly":false,"hidden":false,"lineBreak":false,"isBound":true,"onLoad":"","onChange":"","onSubmit":"","boundTo":"Snippet"}],"variables":[{"realId":41,"name":"Snippet","value":"","shouldHide":false,"hideStartIndexDisplay":1,"hideLengthDisplay":1,"hideAll":false,"hideRemaining":false,"hideLength":1,"hideStartIndex":1,"isInputParameter":false,"isOutputParameter":false,"isRequired":false,"displayName":"Snippet","description":"","variableUsageList":[],"id":41,"variableType":"String","isSystemVariable":false,"isAssignable":true,"isBound":true,"isBoundToSetupFormField":false}]}