Hello,
I have setup an automation rule which looks up some objects and then updates 2 text fields with attributes from that object (always finds 1 object).
Now I want to improve the rule so that I can also show which object it found by adding the object to an Asset type field.
I am having trouble updating this. The rule always finds the correct object but when I try to update the Asset field using smart values I get this error:
AD-13 (data was not an array (Test Asset))
"Test Asset" is the name of the field that I am trying to update.
The smart value used is this one:
{{lookupObjects.id}}
I have also tried {{lookupObjects}} but got same error.
Using the log option, I get the correct ID/Name of the object.
I have an Edit issue component with the following:
{
"fields": {
"customfield_10243": "{{lookupObjects.id}}"
}
}
Like mentioned above, I also tried {{lookupObjects}} but got the same error.
This document provides required details for updating asset objects.
A solution that I found but that I do not like (I would like to use the Advanced option of the Edit Issue component to update multiple fields at the same time) is to have a separate Edit Issue component for this 1 field and then add this:
objectid = {{lookupObjects.id}}
This works fine.
If anyone knows how to use the Advanced option to update this that would be great.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.