Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is it possible to loop through individual items using lookupObjects

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.
June 6, 2024

Hi there,

I will simplify this for the same of the example.

I have two different object types

Supported Monitors

Monitors


Supported Monitors has the name and a restock level.
Name: Mon01  Restock Level: 2
Name: Mon02  Restock Level: 3

Monitors has all the monitors either deployed or in stock.

What I want to do is loop through Monitors and pull out all the 'In Stock' items and come up with a count.  Then lookup that model in Supported Monitors and if the returned count is less than the restock level, it will be an item that needs a re order.

Now I can do this for a specific item if I am passing if from an 'Object Updated' trigger, but I want to basically get a view of everything that might need a re-order.

I just end up with a lump of everything in the lookupObjects array that I can't do much with.  I am barking up the wrong tree with this one?

1 answer

0 votes
Mark Higgins
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 10, 2024

Hello,

From 'Global' view on Automation, you can get hold of each object, and then using a variable, update the variable with the attribute value of the object.


Screenshot 2024-06-11 141028.png

For some reason, at the Project level for automation, the For AOL doesn't show up??

 

Hope that helps get you started.

 

Mark

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events