Get Applications activity

The Get Applications activity returns a list of all the applications available on a Microsoft System Center Configuration Manager (SCCM) server.

The Get Applications activity uses the Powershell activity template to access the applications on the SCCM server. The activity is configured to use a MID Server with Powershell capabilities and to run a MID Server script called GetApplications.ps1. This script filters the results of the GET, so that only specific attributes are returned for the applications on the SCCM server. Filtering the results in this manner controls the size of the payload, while providing the most desirable application data. The list of available applications is returned as an array in a JSON object.

To access this activity in the workflow editor, select the Custom tab, and then navigate to Custom Activities > System Center Configuration Manager (SCCM) .

Note: The Get Applications activity does not use a pre-processing script.

Input variables

Table 1. Get Applications input variables
Variable Description
sccmServer The fully qualified domain name (FQDN) of the SCCM server.

Output variables

The output variables for the Get Applications activity contain an array of objects called applications and an error message. Each object in the array contains the attributes in this table.

Table 2. Get Applications output variables
Variables Description
applications The applications array contains these attributes:
  • id: Primary key of the SCCM application.
  • ciUniqueId: Unique ID of the SCCM application.
  • name: Name of the application.
  • manufacturer: Manufacturer of the application.
  • version: Version of the application.
  • isDeployable: True/false value indicating if this application is deployable.
  • isDeployed: True/false value indicating if this application is already deployed.
  • numberOfUsersWithApp: Count of users with this application installed.
  • numberOfDevicesWithApp: Count of devices on which this application is installed.
  • application: Object containing the data set listed above for this application. Use the script to parse additional data from this set that you might need.
error Variable that contains the activity output error message.

Conditions

Table 3. Get Applications conditions
Variables Description
Success Activity successfully retrieved the list of applications available on the SCCM host.
Failure Activity failed to retrieve the list of applications available on the SCCM host.