Context: I'm trying to find a way to easily present email/phone info for a customer based on their email as it populates in the reporter field (reporter.emailAddress).
Current state:
Problem: When I move to a contact that doesn't have an object created in Insight, the automation fails.
What I attempted to do was set an If Block IQL condition that had the same "Email = {{issue.reporter.emailAddress}}" query. The thought was that if the query found any matching object, it would be TRUE and move the automation forward to the Edit Issue action listed above, while FALSE would pass to an Edit Issue action with a blank query.
The results of this are that everything processes as FALSE, regardless of whether it has an existing object or not, so clearly I'm incorrect about how that IQL conditional works.
After a couple of hours of playing around and searching the KB, I'm stuck. Looking for some suggestions if anyone has any. Thanks in advance!
Hi @Ian Maur - Try adding the following two components to your existing rule before the Edit Issue action:
Lookup Objects
Email = {{issue.reporter.emailAddress}}
Advanced Condition
{{lookupObjects.size}} Greater than 0
Perfect - Thanks Mark!
I went ahead and put that into an If block with ELSE pointing towards a blank edit issue action, and that did exactly what I needed it to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may not need the If/Else block with those two components unless your rule is performing other actions. Those two steps should effectively kill any progress when the insight object does not exist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Noted, thanks Mark. In this instance, I very specifically want that field to clear if the reporter doesn't have an object created for them. That will be a trigger that they're a new customer and need added to the system. That would be the one other thing this automation is doing.
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.