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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get last inserted sequence number from mongoDB

Hi, I'm trying to get last inserted sequence number from mongoDB with tJavaRow. Is it possible to get it? Any other way to get the sequence number?
Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hi
Do you want to retrieve the last inserted object Id? Using tMongoDBInput to query the _id field, Sort by _id column with Desc type and set the Limit parameter as 1.

Regards
Shong