Thursday, November 29, 2018

#669 - OIC --> VB CS Service Catalog

Here is a simple example of accessing the ERP service catalog via VB CS.









Open the context sensitive menu on the right and select Settings -







































Note the Catalog URL format for the REST APIs-

https://YourERP/fscmRestApi/otherResources/latest/interfaceCatalogs

Test -








Catalog is found, so let's leverage it in our VB CS App -

I begin by creating a new Service Connection -









Select from Catalog -














Click Sales and Service -











the objects are displayed - I need to select an object and then the relevant endpoints















I select contacts -





















Note the 114 endpoints - good reason for going thru Integration and it's business friendly adapters!
For this simple example, I just select GET contacts
































I select the GET /contacts api -

























I click Test -
























Great stuff!
Next step would be to simply leverage this in my app -
























Thursday, November 22, 2018

#668 OIC --> VB CS --> Service Connections. Triggering an Integration from VB CS

From the docs -

When you want to expose business objects from an external source in your visual application, you can add and manage connections to sources in the Service Connections pane of the Artifact Browser.

Ok, so this allows us to bring external functionality into VB CS.

The previous post showed my Organization Business Object.
I also have an Integration that creates Organizations in Service Cloud.
This Integration is exposed via REST -

https://myOIC/ic/api/integration/v1/flows/rest/AA_CREATESERVICEORG/1.0/createOrganization





























































Add Authentication -





















add the body -















































As you can see, The Hare of the Dog Public House already exists.


Now I can leverage this Service Connection in the app from the previous post -

I have added an Edit page to the app -

I will leverage the Service Connection from this page - but first I add a new field to my Organization Business Object -



















Here is the Edit page -

















I add a new Button - Create in Service Cloud




















I create a new Event -

















I select Call REST Endpoint -


















I select the Service Connection -



















Assign the Organization fields to the request body -






















Test -















Monitor the Integration -



























#667 OIC --> Visual Builder Cloud Service --> Business Objects

VB CS, as you all probably know, enables one to create, publish and host mobile and web apps.

One uses Business Objects to define business data. These Business Objects and their data are then persisted in the underlying VB CS persistence store.
Access to the data, in my case below, Organizations, is via REST Services.
The REST APIs are used by the VB CS apps you create,
however, you can leverage them from without as well.

Recently, I had the opportunity to delve a bit deeper into Business Objects -

























Business Rules

I hope the basic idea of Business Objects is clear from my previous posts on VB CS.
Essentially, I can define a business object then auto-magically generate Create, Retrieve, Update and Delete forms for the aforementioned.







































Now to some of the extra value-add - The CountryCode field above is
defined as ReadOnly.





















So where did the above CountryCodes come from?






























Ok, the above is rather simplistic, but one can do much more complex processing -
























Endpoints




































Test in Postman -




















Now to the POST Endpoint -

























Role Based Security

Fine grained role based security is also available -























Import/Export Data

I can pre-populate my business objects -









































I can also export in .csv format -