Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to create an automation which:
loads all data from every managed space consurrently.
My initial try was to
List the Spaces
Filter the spaces on type = managed
The list the apps.
It seems however I need some sort of loop to get the applications from each space and I am struggling with this.
I have a loop after my filter which lists the apps based on the space id but the output only brings back 1 application contained in 1 space.
Any thoughts/help would be much appreciated.
Hi @bx12345 ,
Not sure if I get you right, but I did something similar to what you said, and it worked perfectly:
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
Yes. In that case, you have to enter a Do Reload block with the Run Mode equal to Start reload and continue. That way, your automation loops through the list of Applications and starts the reload process of each one of the listed apps, without waiting for anyone to complete.
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
Hi @bx12345 ,
Not sure if I get you right, but I did something similar to what you said, and it worked perfectly:
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
Hi Mark
Yes, thank you, that looks like what I am looking for. I suppose my other question is that....for the "output " could it be updated to run the full lost of apps from app lists concurrently?
Yes. In that case, you have to enter a Do Reload block with the Run Mode equal to Start reload and continue. That way, your automation loops through the list of Applications and starts the reload process of each one of the listed apps, without waiting for anyone to complete.
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
Great clear and concise answers Mark - much appreciated! One last thing Mark, in ListApps is your Space Id = Items in List Spaces? And just to clarify - if I had 10 managed spaces this would load ALL apps from those 10 managed spaces at the same time, correct?
In List Apps I did like this:
And you are correct. If you have 10 Managed Spaces, it will load every single application in all those 10 Managed Spaces at the same time.
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
Hi Mark - just to let you know this worked perfectly.
1 more thing, i would also like to add a filter for certain tags, i.e. tag some apps with ignore so that it skips the refresh. Have you worked with this before? Just trying to think how it would work in this automation.
Hi @bx12345,
That spices the thing a little bit.
Tags are at Items level, not at the App level, so you'll have to get which Item is related to the Application and then get the Tags.
This is the complete diagram (new blocks with the green arrow):
The Raw API Request is the block that returns the Item associated to the App ID.
Set Path as items and HTTP Method as GET.
Add two Query Parameters: resourceType and resourceId:
The values for the Query Parameters are:
The next block is the Condition block, where you look for the tag text- green arrow:
The if condition is trick to do without the Json format, so, uncheck the green button at the top right side of the Condition block (this is the formula parsing button) and paste the following command:
{ $.rawAPIRequest.data[*].meta.tags[*].name }
This is it! I hope it helps.
Regards,
Mark Costa
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com
That's impressive, I appreciate the time taken to answer this and will have to work through it myself to understand it. One (hopefully final!!) easier question is:
Is it a simple case of adding 1 "wait for reload" block to the original diagram to only mark the automation as successful ONLY once all apps have finished refreshing? I am just a little unsure where to place that black.
Well, usually you add this block only when you have a dependency among the reloads.
For example, reload a set of 3 apps, after those finished, reload another 2 apps and so on. This is the scenario to use the Wait for Reload.
If you don't have that kind of dependency, you are ok not adding the Wait block.
Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com