Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hermandup_anz
Contributor III
Contributor III

Create ODAG Link with API not showing in Selection App

Using ODAG API service, I was able to successfully create an ODAG link, however the link does not show up in the selection app so end users may use it. Can anyone help with the steps to make the links appear in the selection app after creation using the API?

End point: https://xxxxxxxxxxxx:9098/v1/links?xrfkey=0123456789abcdef

Payload:
{
    "name""See Products",
    "selectionApp""2eed5ee0-c584-48e8-8acf-719230831352",
    "templateApp""5a6868eb-5347-42f2-b79e-01c453409c7f",
    "rowEstExpr""sum(Product)",
    "properties": {
        "rowEstRange": [
            {
                "context""*",
                "lowBound"0,
                "highBound"150
            }
        ]
    }
}

1 Solution

Accepted Solutions
Damien_V
Support
Support

Hello @hermandup_anz 

In order for the ODAG link to appear in the UI, you would also need to create an object of type "odagapplink" inside the app inside the Engine API.

The id to be provided in OdagLinkRef is the ODAG link ID that you obtained from the response of the ODAG API when you created the link.

You can find more how to use the Engine API here.

https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/EngineAPI/Content/Sense_EngineAPI/Get...

This is a websocket JSON-RPC API, not a REST API like most of other APIs in Qlik products.

Below is the Engine API call to use:

{
	"handle": 1,
	"method": "CreateObject",
	"params": {
		"qProp": {
			"qInfo": {
				"qType": "odagapplink"
			},
			"qMetaDef": {
			"odagLinkRef":"403b8389-f142-4ac6-8e9e-83afa336ef3c"
			}
		}
	}
}

 

If the issue is solved please mark the answer with Accept as Solution.

View solution in original post

1 Reply
Damien_V
Support
Support

Hello @hermandup_anz 

In order for the ODAG link to appear in the UI, you would also need to create an object of type "odagapplink" inside the app inside the Engine API.

The id to be provided in OdagLinkRef is the ODAG link ID that you obtained from the response of the ODAG API when you created the link.

You can find more how to use the Engine API here.

https://help.qlik.com/en-US/sense-developer/May2021/Subsystems/EngineAPI/Content/Sense_EngineAPI/Get...

This is a websocket JSON-RPC API, not a REST API like most of other APIs in Qlik products.

Below is the Engine API call to use:

{
	"handle": 1,
	"method": "CreateObject",
	"params": {
		"qProp": {
			"qInfo": {
				"qType": "odagapplink"
			},
			"qMetaDef": {
			"odagLinkRef":"403b8389-f142-4ac6-8e9e-83afa336ef3c"
			}
		}
	}
}

 

If the issue is solved please mark the answer with Accept as Solution.