ar - configs Function

You set five configuration parameters for the ar-configs function. They are as follows:

  1. application: The service application code. The value is either ec or osvc.

  2. applicationHostName: The hostname of the Service application.

  3. contactId: The contact ID to use when creating service requests.

  4. knowledgeContentHostName: The Content API hostname when using Knowledge Advanced for knowledge.

  5. knowledgeSearchHostName: The Search API hostname when using Knowledge Advanced.

The following configuration assumes you're using Service Cloud and Knowledge Advanced. However, the KA configs can be omitted when using Engagement Cloud.
fn config -f ar-accelerator ar-configs application "osvc" \
fn config -f ar-accelerator ar-configs applicationHostName "osvc.custhelp.com" \
fn config -f ar-accelerator ar-configs contactId 4 \
fn config -f ar-accelerator ar-configs knowledgeContentHostName "osvc-irs.custhelp.com" \
fn config -f ar-accelerator ar-configs knowledgeSearchHostName "osvc-qp.custhelp.com"
Test that the configuration is correct by running invoke:
fn invoke ar-accelerator ar-configs

The expected results are a JSON object with the variables set above nested in a “service” object.