You are on page 1of 10

Recipes

Vol. 3 : Connecting from OutSystems

© 2022 Coherent, All rights reserved.


Step 1
Open Service Studio...
Head over to https://www.outsystems.com/.
Sign up and download Service Studio...
...or just open it if you already have it!

© 2022 Coherent, All rights reserved.


Step 2
Create your App...
Start by clicking the New
Application button...

...and select "From scratch".


Then choose "Service". We want to make
our Spark call a service so it can be
reused in all our applications.

© 2022 Coherent, All rights reserved.


Step 3
Create your App...

Give your service application a name, and pick


a color or upload an icon.

Then name and create your first service module.

© 2022 Coherent, All rights reserved.


Step 4
Start creating your service call...
Head to the "Logic" tab, then ...you'll be consuming the Spark ...then select "Add single
into the Integrations folder and service, so click method" and click "Continue".
right click "REST"... "Consume REST API..."

© 2022 Coherent, All rights reserved.


Step 5
Adding the connection details...
You'll see the window below and now is the time to go to ...in the API Test section you'll find your
your Spark API to get some of the details you'll need... endpoint URL...

...copy it into here and set the


method to "POST".

© 2022 Coherent, All rights reserved.


Step 6
Filling in the request...
First, from the API Test page, copy the JSON view of ...and secondly add the headers we need to
the inputs and paste it into the Body request... authenticate with spark.

© 2022 Coherent, All rights reserved.


Step 7
Test the request...
Last, but by no means least, we can head to the Test tab to fill in some temporary header data and run a test.
We can then use the results of the test to copy to the Response Body.

© 2022 Coherent, All rights reserved.


Step 8
Turning it into a Server Action...
Now you have a REST action... ...you can create a Server
Action to call it from.

You'll probably want to return the Response from


your Post Execute from the Server Action.

© 2022 Coherent, All rights reserved.


Build your application
Start using your Server Action!

Your Server Action can be set


as publicly available and
can now be added as a
dependency in one
of your existing OutSystems
applications or create a
brand new one!

© 2022 Coherent, All rights reserved.

You might also like