I'm trying to get around the 200 limit cap on the lookup automation by using the lookupObject function and pulling the data from attributes in Assets but receiving the following error which I can't seem to resolve.
Hello @James Armstrong
Welcome to the Atlassian community.
Can you show us the actual text that you have in the Lookup Objects step in the AQL Query?
I believe the correction you need is to put double quotes around your smart value in the AQL; i.e.
"Client URL" = "{{smart value}}"
Hi @Trudy Claspill Thank you.
Ah yes adding the double quotes has resolved that issue many thanks!
But the next challenge is that its not actually returning any data.
I've now added a dynamic lookup table which looks like this.
And log action
{{infrastructure.get(lookupObjects.Client Database)}}
It doesn't fail but it doesn't actually return any value.
Do you have any ideas what I'm doing wrong please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @James Armstrong -- Welcome to the Atlassian Community!
FYI for that line you show as:
{{infrastructure.get(lookupObjects.Client Database)}}
What you are passing to the get() function is a list of things (i.e., zero-to-many Client Database values) and the get() cannot accept a list.
You could instead iterate over the lookupObjects and pass the value one at a time?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy Thank you,
The idea is to be able to lookup the object using the client url then return the database name. There will only ever be 1 item returned as the url will be unique and will only ever return 1 database associated with it. Perhaps I don't need to use the dynamic lookup but struggling to get the databasse name returned
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@James Armstrong -- When there is only one value, perhaps try the what you show and experiment...
Or, add a safety check with a Smart Values Condition to confirm {{lookupObjects.size|0}} equals exactly 1, and then use the first record in the get function to convert the list item to a single value:
{{infrastructure.get(lookupObjects.first.Client Database)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.