Oracle CRM Cloud V1 Connector > Introduction to Oracle CRM Cloud V1 Connector > Administration of Oracle CRM Cloud V1 Connector
  

Administration of Oracle CRM Cloud V1 Connector

Before you use an Oracle CRM Cloud V1 Connector to read or write data to Oracle CRM Cloud, you must perform certain prerequisite tasks.

Generating JSON Web Tokens ID (JWT ID)

If you use the JWT authentication type in connection property to create an Oracle CRM Cloud V1 connection, perform the following prerequisite tasks to generate a JWT ID:
    1. Create a sandbox to create the custom objects.
    2. Activate the sandbox.
    3. Log in to the sandbox with the same user name after you activate the sandbox.
    4. Navigate to the Application Composer tab.
    5. Select Sales from the Application drop down menu.
    6. Create a new custom object as JWTObject in the Custom Objects section.
    A JWTObject new custom object is created.
    7. Expand the JWTObject custom object and navigate to the Server Scripts tab.
    8. Create a new custom function for the JWTObject custom object with the following values in the Custom Function tab:
    1. a. Function Name as getJWTToken.
    2. b. Returns as String.
    3. c. Visibility as Callable by External Systems.
    4. d. Privileged option as true.
    9. Paste the following groovy script to generate a JWT token in the function body:
    def jwt = new oracle.apps.fnd.applcore.common.SecuredTokenBean().getTrustToken();
    return jwt;
    10. Expand the JWTObject custom object and navigate to the Security tab.
    11. Provide the create and read permissions to create a record in the Security tab.
    12. You must create a single row of data within the JWTObject_c custom object before Oracle CRM Coud V1 Connector executes the REST Service to retrieve the JWT token.
    13. Create a record within the custom object by using the POST request.
    Use the PostMan application to execute the following request with the values:

    HTTP Method: POST
    URL: https://adc-fap1470-fa-ext.oracledemos.com/crmRestApi/resources/latest/JWTObject_c
    (
    Endpoint URL: https://adc-fap1470-fa-ext.oracledemos.com ,
    Rest operation: /crmRestApi/resources/latest/JWTObject_c)
    Content-Type: application/vnd.oracle.adf.resourceitem+json
    Request Body: {
    "RecordName": "JWT Record 1"
    }
    )
    14. Retrieve the data of the record Id using the GET request in our custom object function call.
    Use the PostMan application to execute the following request with the values:

    HTTP Method: GET
    URL: https://adc-fap1470-fa-ext.oracledemos.com/crmRestApi/resources/latest/JWTObject_c
    Note: The JWT ID is the Id of the record created for the JWTObject_c custom object.
    15. Provide the Id in the JWT ID connection property.
    The following image shows an example of the record Id: