<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic App Settings V2 Issue in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/App-Settings-V2-Issue/m-p/282701#M1506</link>
    <description>&lt;P&gt;I'm facing issue when using App Settings V2, as I've followed this guide carefuly&amp;nbsp;&lt;A href="https://developer.dynatrace.com/develop/data/store-app-settings/" target="_blank" rel="noopener"&gt;https://developer.dynatrace.com/develop/data/store-app-settings/&lt;/A&gt;&amp;nbsp;to define Schema named "oauth-credentials", secrets and local values.&lt;/P&gt;&lt;P&gt;1st) the issue that I've tried to retrieve app settings through useAppSettingsV2 and get the below Error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1753956501731.png" style="width: 857px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29305i64F0DA6B91554E82/image-dimensions/857x90?v=v2" width="857" height="90" role="button" title="MostafaHussein_0-1753956501731.png" alt="MostafaHussein_0-1753956501731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2nd) as a workaround I've tried using&lt;SPAN&gt;&amp;nbsp;settings client "&lt;/SPAN&gt;&lt;SPAN&gt;appSettingsObjectsClient.&lt;/SPAN&gt;&lt;SPAN&gt;getAppSettingsObjects" to be called within App Function and got the following error "&lt;FONT color="#FF0000"&gt;'oauth-clients' not found for app version '0.0.0'&lt;/FONT&gt;":&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_1-1753957013855.png" style="width: 862px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29306i1ECAE05FBF9C6352/image-dimensions/862x125?v=v2" width="862" height="125" role="button" title="MostafaHussein_1-1753957013855.png" alt="MostafaHussein_1-1753957013855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;this is the code&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) Finally, I've tried to access it the platform service API "&lt;A href="http://localhost:3000/platform/app-settings/v2/effective-values?schema-id=oauth-clients&amp;amp;add-fields=summary&amp;quot;" target="_blank" rel="noopener"&gt;http://localhost:3000/platform/app-settings/v2/effective-values?schema-id=oauth-clients&amp;amp;add-fields=summary"&lt;/A&gt;&amp;nbsp; with adding "Dt-App-Version" as shown in the previous error and got the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1753959233216.png" style="width: 866px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29309iFE37FC00FC53BB3D/image-dimensions/866x644?v=v2" width="866" height="644" role="button" title="MostafaHussein_0-1753959233216.png" alt="MostafaHussein_0-1753959233216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the app.config.json&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_3-1753957474273.png" style="width: 862px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29308i7CFF64BEBB987496/image-dimensions/862x527?v=v2" width="862" height="527" role="button" title="MostafaHussein_3-1753957474273.png" alt="MostafaHussein_3-1753957474273.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the schema definition that located in "&lt;FONT color="#3366FF"&gt;/settings/schemas/oauth-clients.schema.json&lt;/FONT&gt;"&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "$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
      }
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate your advice if I missed something in schema configuration or if anyone faced these before or not.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 10:53:34 GMT</pubDate>
    <dc:creator>MostafaHussein</dc:creator>
    <dc:date>2025-07-31T10:53:34Z</dc:date>
    <item>
      <title>App Settings V2 Issue</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/App-Settings-V2-Issue/m-p/282701#M1506</link>
      <description>&lt;P&gt;I'm facing issue when using App Settings V2, as I've followed this guide carefuly&amp;nbsp;&lt;A href="https://developer.dynatrace.com/develop/data/store-app-settings/" target="_blank" rel="noopener"&gt;https://developer.dynatrace.com/develop/data/store-app-settings/&lt;/A&gt;&amp;nbsp;to define Schema named "oauth-credentials", secrets and local values.&lt;/P&gt;&lt;P&gt;1st) the issue that I've tried to retrieve app settings through useAppSettingsV2 and get the below Error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1753956501731.png" style="width: 857px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29305i64F0DA6B91554E82/image-dimensions/857x90?v=v2" width="857" height="90" role="button" title="MostafaHussein_0-1753956501731.png" alt="MostafaHussein_0-1753956501731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2nd) as a workaround I've tried using&lt;SPAN&gt;&amp;nbsp;settings client "&lt;/SPAN&gt;&lt;SPAN&gt;appSettingsObjectsClient.&lt;/SPAN&gt;&lt;SPAN&gt;getAppSettingsObjects" to be called within App Function and got the following error "&lt;FONT color="#FF0000"&gt;'oauth-clients' not found for app version '0.0.0'&lt;/FONT&gt;":&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_1-1753957013855.png" style="width: 862px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29306i1ECAE05FBF9C6352/image-dimensions/862x125?v=v2" width="862" height="125" role="button" title="MostafaHussein_1-1753957013855.png" alt="MostafaHussein_1-1753957013855.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV&gt;this is the code&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) Finally, I've tried to access it the platform service API "&lt;A href="http://localhost:3000/platform/app-settings/v2/effective-values?schema-id=oauth-clients&amp;amp;add-fields=summary&amp;quot;" target="_blank" rel="noopener"&gt;http://localhost:3000/platform/app-settings/v2/effective-values?schema-id=oauth-clients&amp;amp;add-fields=summary"&lt;/A&gt;&amp;nbsp; with adding "Dt-App-Version" as shown in the previous error and got the same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1753959233216.png" style="width: 866px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29309iFE37FC00FC53BB3D/image-dimensions/866x644?v=v2" width="866" height="644" role="button" title="MostafaHussein_0-1753959233216.png" alt="MostafaHussein_0-1753959233216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the app.config.json&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_3-1753957474273.png" style="width: 862px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29308i7CFF64BEBB987496/image-dimensions/862x527?v=v2" width="862" height="527" role="button" title="MostafaHussein_3-1753957474273.png" alt="MostafaHussein_3-1753957474273.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the schema definition that located in "&lt;FONT color="#3366FF"&gt;/settings/schemas/oauth-clients.schema.json&lt;/FONT&gt;"&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "$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
      }
    }
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate your advice if I missed something in schema configuration or if anyone faced these before or not.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 10:53:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/App-Settings-V2-Issue/m-p/282701#M1506</guid>
      <dc:creator>MostafaHussein</dc:creator>
      <dc:date>2025-07-31T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: App Settings V2 Issue</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/App-Settings-V2-Issue/m-p/282776#M1508</link>
      <description>&lt;P&gt;plugin item was listed under app, I've moved it to be under the root object&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":astonished_face:"&gt;😲&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt; then all things has worked!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_3-1754030563254.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29328i457970F16224E945/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MostafaHussein_3-1754030563254.png" alt="MostafaHussein_3-1754030563254.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 06:43:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/App-Settings-V2-Issue/m-p/282776#M1508</guid>
      <dc:creator>MostafaHussein</dc:creator>
      <dc:date>2025-08-01T06:43:56Z</dc:date>
    </item>
  </channel>
</rss>

