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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
rob_geo4
Contributor II
Contributor II

How to create app navigation link object in an app via qliksense.net sdk

I am able to create a new odag link via odag service api. But now I want to create an app navigation link object in the app UI pointing to this link created. And also I need to create a navigation point object in some of the sheets. How to do this via the QlikSense.Net SDK.
I have tried creating a generic object like this, but it is not reflecting in the app.

 

var qMetaDefAbs = new AbstractStructure();
qMetaDefAbs.Set<string>("odagLinkRef", "the-link-id-created");
var prop = new GenericObjectProperties();
prop.Info = new NxInfo()
{
Type = "odagapplink",
};
prop.Set<AbstractStructure>("qMetaDef", qMetaDefAbs);
var result = app.CreateGenericObject(prop);

 


am I missing something here ?
Any insights, experiences, or example resources you can share on this would be much appreciated.
Thanks in advance!

Labels (3)
2 Replies
Øystein_Kolsrud
Employee
Employee

I can't say I know much about this part of the API, but I see the "qMetaDef" property contains a timestamp as well. Don't know if it will make a difference or not though, but could be worthwhile to try setting one. It's a Unix timestamp (ms since 1 January 1970).

ystein_Kolsrud_0-1732783507678.png

Also, you need to enable ODAG in your tenant, but I kind of assume you have already done that?

rob_geo4
Contributor II
Contributor II
Author

Thanks for the reply @Øystein_Kolsrud .
Yes. Certainly ODAG is enabled.
I've tried setting timestamp as well, but it is not making any difference as you expected. 
Can i do it using Qlik Sense REST api ?