agilio | 2021-06-30 16:40:32 UTC | #1
Is it possible to use the contains method to search for a string within the subject that contains spaces? For example: Contains(Email.Message.subject,"NO NOT REPLY",true)
Jason_Mathison | 2021-06-30 17:47:55 UTC | #2
Could you give a bit of context of where you are trying to do this? An Architect email flow maybe?
John_Carnell | 2021-06-30 18:18:52 UTC | #3
HI Agilio,
Based on your variable setup I assume you are doing this using an Architect email flow. You should be able to use contains to do what you are trying to do. Is that not the behavior you are seeing?
Thanks, John Carnell Architect, Manager - Developer Engagement
agilio | 2021-06-30 19:13:41 UTC | #4
Correct it appears it is not matching that. We are doing this in an Architect Email Flow.
Jerome.Saint-Marc | 2021-07-07 08:31:46 UTC | #5
Hello,
I just tried it and it works for me (using "NO NOT REPLY"). My email subject was set to: "This is my NO NOT REPLY test"
This looks for the exact string (i.e. "NO NOT REPLY"). The number of spaces between the words must match exactly what you have in your email's subject (I mean one space between NO and NOT, one space between NOT and REPLY).
If you are not sure of what's in the subject, I would suggest to query for the conversation and check the "subject" attribute value (using GET /api/v2/conversations/{conversationId}).
Regards,
agilio | 2021-07-07 18:09:41 UTC | #6
Thanks Jerome I'll test again and if I'm seeing different I'll provide details and open a ticket.
system | 2021-08-07 18:09:46 UTC | #7
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 11360