Posts: 41
Threads: 11
Joined: Feb 2021
Reputation:
16
Hello, I would like with the mail scanner to be able to generate tickets on specific emails, according to the subject content and the sender. This I could already achieve, I generated as many tickets as I have emails with these conditions. The problem is that now I would like to generate that each ticket is associated with an account. To be able to match there is a custom field that is both in table account and in the body of the email. It is a numeric ID. So far I can generate as many rules in mail scanner as accounts I have. or as many workflows as accounts you have. Is there a way to generate only one and that the workflow for example goes through all the accounts and when it finds a match in the custom field, associate that ticket to that account?
Thanks
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
a few weeks ago we added a new workflow expression function:
getIDof(module, searchon, searchfor)
that one should be able to do what you want. you can create a workflow when a ticket is created from the mail converter, add an update task, and update the account with the result of the getIDof() function
Joe
TSolucio
Posts: 41
Threads: 11
Joined: Feb 2021
Reputation:
16
Hello Joe. thanks for the suggestion. I couldn't make it.
Mail converter creates a ticket with a title similar to this = "Google Ads: we have received your payment for 646-569-5288". I create a workflow, which has the condition "From mail converter" = YES.
Then what I need is to do an UPDATE FIELD of the ticket in question, with the name of the corresponding account.
For that I have in Accounts a custom field called GoogleID, which would be for example = "646-569-5288"
So what you should do is find that the Ticket title contains GoogleID, and when it finds it, that it takes the name of the account to be able to do the update. I try to do it, but when I do the evaluation of the expression there is something that is not right.
Thanks
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
share the expression you are using
Joe
TSolucio
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
getIDof('Accounts', 'siccode', description)
if you use the quotes the last value is a string not a field that contains a value
Joe
TSolucio
Posts: 3,565
Threads: 36
Joined: Apr 2014
Reputation:
49
the result is not the siccode, it returns the ID you need to save in the field
Joe
TSolucio