NowServiceConfiguration structure - iOS

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • The NowServiceConfiguration structure defines configuration information for a feature service.

    표 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.

    표 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.
    표 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")