cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Cole
Engaged Sweeper II

In the cloud report builder I made a copy of the "New software installed in the last 7 days" report because I wanted to adjust the days to 3. When I modify the code and just replace the 7 with a 3 it give me a code error, but then if I mess with the code too much i get a 500 error like it crashed.

Original Code:

{
 "$or": [
       {
          "software.installDate": {
                 "$gte": "$$$(dateFN(-7,d))"
           }
      }
     ]
}

New Code

{
 "$or": [
       {
          "software.installDate": {
                 "$gte": "$$$(dateFN(-3,d))"
           }
      }
     ]
}

 

Any ideas or is the cloud report builder stuff just so new things like this happen?

3 REPLIES 3
Cole
Engaged Sweeper II

This has nothing to do with my issue. If I duplicate the report and simply delete the 7 and type it back in the 7 I get a code error. See below.

code.png

Obi_1_Cinobi
Lansweeper Tech Support
Lansweeper Tech Support

Hello there!

For more assistance, we would recommend reaching out to tech support: https://www.lansweeper.com/contact-support/

Obi_1_Cinobi
Lansweeper Tech Support
Lansweeper Tech Support

Hello there!

If you are interested in modifying existing reports by using using GraphQL, we would recommend reviewing the following website: https://graphql.org/