Wednesday, December 4, 2024

#1049 OIC3 invoking Visual Builder Business Object apis

Simple example here - 

I need to process all new orders in OIC, i.e. invoke Get Many - 

I have a couple of orders - 

I get the url - 

Now I go to the VB app Settings -> Business Objects - and enable Security = Basic Auth. I then test in Postman - 


 

I now replicate this in OIC - 

first, the connection. 

then the integration -

I run the integration - 

Now let's use OAuth - back to the app settings in VB 

I then use the token in Postman - 

This is purely for test purposes, you cannot use this in production as the token will expire.

So we will need to go to IDCS and create a client app, very akin to what we would also need to do for 3rd party client access to OIC using OAuth.

I create a new Confidential Application via Integrated Applications

Search for your OIC instance and add the 2 scopes - 

Activate the app and note the client id and secret - 
Now create a ne REST connection in OIC - 

Test the connection. Then clone the scheduled integration we already created.

Here is the clone, note it is using the new REST connection -
I activate and test the integration - 


























No comments: