Solved

More than one condition in stream selector

  • 13 December 2021
  • 5 replies
  • 692 views

In the stream selector, can we specify more than on condition in one stream? 

 

I have one more question not related to stream selector. How can we add line breaks in the email body field in the email executor?

icon

Best answer by Srinivasan Sankar 14 December 2021, 04:37

View original

5 replies

Userlevel 3
Badge +1

Hi @jangala.karthik, Yes, you can specify more than one condition for one stream in Stream Selector Stage.

 

Example: 

${record:value("/AGE") > 40 && record:value("/POSTALCODE") == 6000}

 

You could use and (&&), or (||) to concatenate more than one condition. 

 

Hope this helps.

Thank You @Srinivasan Sankar . This really helps and I am able to use that. Can you please help to review the other question related to line breaks in email executor? I was trying to do add line breaks by using enter option but that doesn’t help. Is there any function or keyword I need to use to add line breaks in email body?

Userlevel 3
Badge +1

Hi @jangala.karthik, You are welcome! Can you like and click the “Best Answer” so its useful for others in the community. 

 

Can you post this as a separate question, please?

 

Is there any function or keyword I need to use to add line breaks in email body?

 

This will ensure it gets the attention from everyone. FYI - I am not a StreamSets employee 🙂 but I am trying to help where possible, will definitely take a look.

Userlevel 3
Badge +1

Hi @jangala.karthik , 

<br> or <br/> or <br /> should work.

 

Example:

Test Email Body - Line 1<br />
Test Email Body - Line 2<br />
Test Email Body - Line 3<br />
Test Email Body - Line 4<br><br/>
Test Email Body - Line 5<br />
Test Email Body - Line 6<br />

Cheers,<br />
Srini<br />

 

Will produce the following result,

Test Email Body - Line 1
Test Email Body - Line 2
Test Email Body - Line 3
Test Email Body - Line 4

Test Email Body - Line 5
Test Email Body - Line 6
Cheers,
Srini

 

Mark as “best answer” and click “like” if you are happy with the answer. 

 

Cheers

Thank You @Srinivasan Sankar. This is also really helpful and was to able to configure the email body with line breaks.

Reply