Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
hapatel79
Partner - Contributor
Partner - Contributor

Odag api not working

I am trying to create a link using the below requests, but it returns me a response - "Missing name property required to create app navigation link."" - Or Missing Selection app.

request#1:

{

  "id": "",

  "name": "TestLinkName",

  "templateApp": "763c9b7e-3f6e-4d80-9de6-c9d520d031aa",

  "rowEstExpr": "if(GetSelectedCount(IMP_SCEN_NAME)=0 and GetSelectedCount(IMP_RCA_NAME)=0,999,GetPossibleCount(IMP_SCEN_NAME)+GetPossibleCount(IMP_RCA_NAME))",

  "privileges": [

 

  ],

  "properties": {

    "rowEstRange": [

      {

        "context": "*",

        "highBound": 8

      }

    ],

    "genAppLimit": [

      {

        "context": "User_*",

        "limit": 5

      }

    ],

    "appRetentionTime": [

      {

        "context": "User_*",

        "retentionTime": "P7D"

      }

    ],

    "publishTo": [

      {

        "context": "User_*",

        "streamId": "aaec8d41-5201-43ab-809f-3063750dfafd"

      }

    ],

    "targetSheet": [

      {

        "context": "User_*",

        "sheetId": ""

      }

    ]

  },

  "tags": [

 

  ],

  "selectionApp": "28da66cb-cff1-485f-b0bc-764c0c291704"

}

request#2:

{

  "objectDef" : {

    "owner" : {

      "userDirectory" : "E2UserDirectory",

      "name" : "My Name",

      "id" : "82b22406-0cef-41d9-bc62-215f04d301eb",

      "userId" : "myId"

    },

    "privileges" : [ "create",

"read",

"update",

"delete",

"changeowner" ],

    "genAppAccessible" : true,

"rowEstExpr": "if(GetSelectedCount(IMP_SCEN_NAME)=0 and GetSelectedCount(IMP_RCA_NAME)=0,999,GetPossibleCount(IMP_SCEN_NAME)+GetPossibleCount(IMP_RCA_NAME))",

    "bindings": [

{

"templateAppVarName": "IMP_SCEN_NAME",

"selectAppParamType": "Field",

"selectAppParamName": "IMP_SCEN_NAME",

"selectionStates": "S",

"numericOnly": false

},

{

"templateAppVarName": "IMP_RCA_NAME",

"selectAppParamType": "Field",

"selectAppParamName": "IMP_RCA_NAME",

"selectionStates": "S",

"numericOnly": false

},

{

"templateAppVarName": "REPORT_USER",

"selectAppParamType": "Field",

"selectAppParamName": "REPORT_USER",

"selectionStates": "O",

"numericOnly": false,

"formatting": {

"quote": "'",

"delimiter": ","

}

}

],

    "modelGroups" : [ "" ],

    "createdDate" : { },

    "modifiedByUserName" : "E2UserDirectory\myId",

    "modifiedDate" : "",

    "name" : "ODAG Scenario",

    "id" : { },

    "templateApp" : {

      "publishTime" : "",

      "migrationHash" : "98d482c3f964dccf69cbfb9a00e0c048ea6eb221",

      "stream" : "aaec8d41-5201-43ab-809f-3063750dfafd",

      "appId" : "",

      "name" : "18.2 Release - MIO Scenario Analytics",

      "savedInProductVersion" : "12.67.2",

      "id" : "763c9b7e-3f6e-4d80-9de6-c9d520d031aa",

      "published" : true,

      "availabilityStatus" : 0

    },

    "properties" : {

      "genAppLimit" : [ {

        "context" : "User_*",

        "limit" : 1

      } ],

      "genAppName": [

{

"context": "*",

"formatString": "ODAG Scenario",

"params": [

]

}

],

      "publishTo" : [ {

        "streamId" : "aaec8d41-5201-43ab-809f-3063750dfafd",

        "context" : "User_*"

      } ],

      "rowEstRange" : [ {

        "highBound" : 8,

        "context" : "*"

      } ],

      "limitPolicy" : [ {

        "limitPolicy" : "Restrict",

        "context" : ""

      } ],

      "appRetentionTime" : [ {

        "context" : "User_*",

        "retentionTime" : "P7D"

      } ],

      "appOpenMethod" : [ {

        "context" : "",

        "openMethod" : "Tab"

      } ],

      "menuLabel" : [ {

        "context" : "*",

        "label" : "ODAG_MIO"

      } ],

      "targetSheet" : [ {

        "context" : "User_*",

        "sheetId" : "d9d53b89-632e-4037-abc3-9e1cd7557221"

      } ]

    },

    "status" : { }

  }

}

The main thing I am trying to achieve is to have the ability to have the odag report generated using this link open in the same tab. So, is there anything different that needs to be set for this?

"appOpenMethod" : [ {

"context" : "",

"openMethod" : "Tab"

} ],


Thanks


0 Replies