This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Thank you very much for this example. I have it working on my private server. Do you happen to know why the __cloud:UserId textbox would not pull the current User Id if it is in a macro? I was trying to put your workflow in a macro so that I didn't have to duplicate this effort every time I needed the current user.
All depends on what you want to do with the app run information (the user, the date/time, if your app has user entered parameters what parameters did they pick, etc.).
For me, when a user runs one of my apps, at the end of their run, I like to have their Mongo user ID and date/time of completion dumped into a YXDB. I can then use those YXDBs to join to the Mongo Inputs in another separate module so I can get any info I want for the app.
The cloud ID thing will simply capture their Mongo ID at runtime. What you do with it from there, is up to you.
i'm trying to use this to get the credentials. mongoDB Input connector connects to the users collection of the gallery. could you please tell me how to configure the this tool such that it connects to the private gallery?
Everything depends on what you want to do. If you simply want to run a module that will tell you who has run what app, and all their other user information, then you don't need the cloud ID thing. I use it simply because I want to keep separate a simple YXDB with each user-run that tells me who ran it, and when.
So if user A ran app B, then I want a YXDB that tells me that. I put the cloud ID in the app B, and then have a separate module read in that YXDB to tell me that user A ran app B.
If you're looking for a report like this:
Then you don't really need to do that. You can get this sort of report by using multiple mongo inputs. Within the Services databases there's AS_Results, AS_Queues, and AS_Applications. Everything to produce the above report is there.