# Provide an option to get Scorecards API by appID
Scorecards Results API (scorecard-results.function.ts) should also be available by appId (dynatrace.io/app-identifier):

## Fetch missing appId from Smartscape nodes
```dql
smartscapeNodes "CATALOG*"
| filter kind == "component"
| filter entity.lifecycle == "production"
| filter entity.type == "app"
| fields appId = entity.annotations[`dynatrace.io/app-identifier`], assetId = concat(kind,":",namespace,"/",name)
```

## Acceptance Criteria
* The API returns a result if assetId and version is requested
* The API returns a result if appID and version is requested
