Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is this the best approach to display totals of counts in a task (made from Automation)

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2023

Hi there,

I have intune data in Assets and want to generate some automated tasks based on various counts, one of these tasks will be a summary.  The summary will be things like the number of non-compliant devices, number not encrypted, not supervised etc etc.

In an automation I was thinking of doing a lookup object for each item I need to count and then storing the {{lookupObjects.size}} in a variable, then do the next lookup object and store the size in a different variable. When the variables are collected then just create a task and list out some text and the relevant variable to display as the summary information.

Also, is there anything in particular to putting this in a table in the description just to present the information in a neat manner.

 

Thanks

1 answer

1 accepted

2 votes
Answer accepted
Mark Segall
Community Champion
January 30, 2023

Hi @Ste404 

Yes this is a solid approach.  I've done similar with automations in the past where I needed to capture a few things before editing the issue field.

As for capturing it in a table, since you're updating the description, you could use markdown like this:

||Object||Count||
|Object 1|varObject1|
|Object 2|varObject2|
Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2023

thanks, I have ground to a halt based on the lookupobjects capped count at 100.  

I started a different thread with that one.  Thanks for the table info, that is quite effective.

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events