NowServiceConfiguration structure - iOS

  • Release version: Yokohama
  • Updated January 30, 2025
  • 1 minute to read
  • The NowServiceConfiguration structure defines configuration information for a feature service.

    Table 1. Properties
    Name Type Description
    appBundleId String Bundle ID of the application integrating with the NowSDK.
    instanceUrl String URL of the ServiceNow instance that the feature service will access. For example: https://instance.servicenow.com.

    NowServiceConfiguration - init(instanceUrl: URL, appBundleId: String)

    Configures the calling feature service with the specified configuration information.

    Table 2. Parameters
    Name Type Description
    instanceUrl String URL of the ServiceNow instance that the feature service will access. For example: https://instance.servicenow.com.
    appBundleId String Bundle ID of the application integrating with the NowSDK.
    Table 3. Returns
    Type Description
    None

    The following code example shows how to call this method.

    guard 
      let instanceUrl = URL(string: "https://instance.service-now.com") else {
        return
      }
    
    NowServiceConfiguration(instanceUrl: instanceUrl, appBundleId: "com.servicenow.appBundle")