NowServiceConfiguration structure - iOS

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • The NowServiceConfiguration structure defines configuration information for a feature service.

    Tabelle : 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.

    Tabelle : 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.
    Tabelle : 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")