Function _useExistingItemsPrivate

  • Private

    Search for existing items and update the templateDictionary with key details

    Subtle difference between _reuseDeployedItems and _useExistingItems _reuseDeployedItems: will search all existing items based on specific type keywords that would have been added by a previous deployment _useExistingItems: will search for an existing item that the user provided the item id for while configuring in the deployment app. This type of item would not necessarily have been laid down by a previous deployment and can thus not expect that it will have the type keywords

    Parameters

    • templates: IItemTemplate[]

      A collection of AGO item templates

    • useExisting: boolean

      Option to search for existing items

    • templateDictionary: any

      Hash of facts: org URL, adlib replacements, deferreds for dependencies

    • authentication: UserSession

      Credentials for the requests

    Returns Promise<any>

    A Promise that will resolve once existing items have been evaluated