CX Sales & B2B Service - VBCS Mashup

Hi,

In this post, I am going to cover how to deploy a VBCS page as a Mashup in CX Sales. This is applicable for use cases like,

1. You want to display 3rd-party system data on Account page without migrating/syncing data

2. You want to display account/contact information on Account page with your preferred layout and data controls. 

This is a high-level architecture diagram I will use to explain the implementation steps

In this diagram, we have 4 components -

CX Sales - we use it to add VBCS Mashup content

IDCS - we use it as IdP for CX Sales, VBCS and OIC

VBCS - we use it to create custom application

OIC - we use it to orchestrate REST API which can be consumed in VBCS service connections


I'll focus on VBCS and CX Sales in this post.


For VBCS, we need to configure the following in service connection - 

Server - we will configure anonymous access and also authentication based on our requirement

Endpoints - we will configure all the needed endpoints from the server


And we need to configure anonymous access and embedding in the web application

And page parameter for the main page

After we publish the web application, we will get the URL for the live version then use the URL in CX Sales.


For CX Sales, we need to create Mashup content with type 'groovy expression'

And we need to create a subtab on Account Detail page with the following groovy (sample snippet)

def partyNumber = PartyNumber

def url = oracle.topologyManager.client.deployedInfo.DeployedInfoProvider.getEndPoint('ORA_CRM_UIAPP')

def dev     = 'https://vbcs-dev/ic/builder/rt/CUSTX_AccountProfile/live/webApps/account_profile/?partyNumber='

def test    = 'https://vbcs-test/ic/builder/rt/CUSTX_AccountProfile/live/webApps/account_profile/?partyNumber='

def prod     = 'https://vbcs-prod/ic/builder/rt/CUSTX_AccountProfile/live/webApps/account_profile/?partyNumber='

if(url == 'https://cxdev.oraclecloud.com:443'){

def param = dev + partyNumber;

return param;

else if(url == 'https://cxtest.oraclecloud.com:443'){

def param = test + partyNumber;

return param;

}

else if(url == 'https://cxprod.oraclecloud.com:443'){

def param = prod + partyNumber;

return param;

}


That's it. Hope you enjoy the reading. Let me know if any comments.


Thanks,

Adam Liu


Reference Document -

https://docs.oracle.com/en/solutions/integrate-saas-application-with-paas/index.html#GUID-86C22CD3-093B-498D-B19F-74B5EAE5AF1E



Comments

Post a Comment

Popular posts from this blog