31 Jul 2025 11:51 AM - edited 31 Jul 2025 11:53 AM
I'm facing issue when using App Settings V2, as I've followed this guide carefuly https://developer.dynatrace.com/develop/data/store-app-settings/ to define Schema named "oauth-credentials", secrets and local values.
1st) the issue that I've tried to retrieve app settings through useAppSettingsV2 and get the below Error
2nd) as a workaround I've tried using settings client "appSettingsObjectsClient.getAppSettingsObjects" to be called within App Function and got the following error "'oauth-clients' not found for app version '0.0.0'":
import { appSettingsObjectsClient } from "@dynatrace-sdk/client-app-settings-v2";
export default async function (payload: unknown = undefined) {
const data =
await appSettingsObjectsClient.getAppSettingsObjects({
schemaId: 'oauth-clients',
addFields: 'summary, schemaId'
});
return data;
}
3) Finally, I've tried to access it the platform service API "http://localhost:3000/platform/app-settings/v2/effective-values?schema-id=oauth-clients&add-fields=s... with adding "Dt-App-Version" as shown in the previous error and got the same error.
this is the app.config.json
this is the schema definition that located in "/settings/schemas/oauth-clients.schema.json"
{
"$schema": "https://developer.dynatrace.com/docs-assets/schema_strict_apps.json",
"dynatrace": "1",
"schemaId": "oauth-clients",
"version": "1.0.0",
"displayName": "Allows you to configure connections to a fictional messaging service",
"description": "",
"multiObject": false,
"summaryPattern": "oauth credential is {credential_id}",
"ordered": false,
"properties": {
"credential_id": {
"displayName": "oAuth2 Credential Vault ID",
"description": "Credential vault ID of stored OAuth2 client credentials",
"type": "secret",
"default": "",
"nullable": false
}
}
}
appreciate your advice if I missed something in schema configuration or if anyone faced these before or not.
Solved! Go to Solution.
01 Aug 2025 07:43 AM
plugin item was listed under app, I've moved it to be under the root object 🤔😲🤗 then all things has worked!!