Lower case issue in inbound action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2019 10:09 PM
I have a "reply" inbound action for custom payroll table which treats "re:" emails as new if ticket number is provided in subject. We are not using watermark for this actions.
Whenever user send email with payroll ticket number in subject in lower case new ticket is not getting created but when sent in uppercase it creates.
like: if user send email with subject as in case 1 tickets are created but when he send as case 2, tickets are not getting created. No error in log file it just say "skipping as condition not met"
condition is : email.subject.toLowerCase().indexOf("pylt")>-1
I tried condition as below but nothing works:-
email.subject.toLowerCase().indexOf("pylt")>-1
email.subject.toUpperCase().indexOf("PYLT")>-1
email.subject.toLowerCase().indexOf("pylt")>-1 || email.subject.toUpperCase().indexOf("PYLT")>-1
case 1: "Issue in payroll wrt ticket number PYLT1000890. please resolve the issue"
case 2: "Issue in payroll wrt ticket number pylt1000890. please resolve the issue"
Where can be the issue
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 01:08 AM
I applied logs in script to check. When I use uppercase ticket number in subject then I'm getting logs entry.
But when I'm using in lowercase no logs are getting created means this is not entering script and stopped at initial condition itself.
When I removed all conditions then also it's not getting logs entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2019 01:52 AM
can you please share the screenshot of script and condtion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2019 11:18 PM
There is no issue with the code. But issue is the way inbound works. Will raise HI ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2019 11:30 PM
Hello Hafsa,
Try using below code and check the result by adding log:
email.subject.toLowerCase().includes('PYLT')
email.subject.toLowerCase().includes('pylt')
Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2020 02:41 AM
Hello Hafsa,
As I am facing the same issue and seeking solution request you to please share if you were able to find any solution to it.
Thanks in advance!
Regards
Madhuri