Help Desk

Submit a ticket My Tickets
Welcome
Login

Create a Basic OneCloud Chain

Now that we have a OneCloud Workspace setup, let's create a Chain.

Step 1: Create a Chain

  1. From the OneCloud Workspaces, select the DEV environment.
  2. Add a new Chain by selecting the green (+) button.
  3. Name the Chain "Simple Extract Chain".
  4. Add a Chain Variable "base-url" with the value:
    https://s3.amazonaws.com/onecloud-demo
  5. Add an email notification by clicking the message icon.
  6. Select the condition as Success.
  7. Add recipients by selecting from the drop-down list. Note only receipts who have access to the chain can be added.
  8. Save the Chain.

Step 2: Add a Command to Retrieve Data

  1. Add the first Command and select HTTP -> GET operation.

    (Hint: use the Find tool to search for "HTTP" and then search for "GET".)

  2. Add the Command GET by dragging on to the pallet.

  3. Select the new Command and drag it to the Start. The Chain Start will show a plus icon indicating that you can use that command as the start of the Chain.

  4. Edit the Command by double-clicking on the Command

  5. Name the Command "Get Data".

  6. Set the URL parameter by:
    (a) Use the variable selector and choose the Chain variable “base-url” by clicking on the icon (< >).
    (b) Add the character “/”.
    (c) Next use the variable selector again and add the Workspace Variable “data-type”.
    (d) Finally, add the filename “SAMPLE_DAT.csv”
    (carefully type the filename and use the same case)
  7. Save the Command.

String Concatenation

To concatenate strings in a OneCloud field, be sure to have the field selected and simply add the characters or variables as required.

Step 3: Add a Command to Preview Data

  1. Add a second command to the Chain.
  2. Select the File Utilities -> List File Content Command.

    (Hint: use the Find tool to search for "File Utilities" and then search for "List File Content").

  3. Connect the "Get Data" Command to the "List File Content" Command.

  4. Edit the "List File Content" Command.
  5. Name the Command: "Preview Data".
  6. Set the Preview Lines parameter to 10.
  7. Set the File Name to the Response from the Retrieve Data Command Output.
  8. Save the Command.

Step 4: Publish and Run the Chain

 Before the Chain can be run, it needs to be published.

  1. Publish the Chain, by clicking the PUBLISH button on the upper bar.
  2. Navigate to the Execute area of OneCloud by clicking on the EXECUTE button on the upper bar.
  3. Run the Chain.
  4. Confirm your changes have been made by looking at the output in the final command.
    (Click on the "Preview Data" Command and then select the LOGS tab)

What's Next?

> Promote a Chain

B
Brian is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.