Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dhanu_today
Creator
Creator

Send mails to particular users based on condition.

Hi everyone,

Currently am scheduled my batch file through windows scheduler and mails are delivering to users finely.

But i need to send mails to users when the Data is updated then only else to our development team.

Scenario : I have the fields like Date , Country. Am sending mails to users related to the country data 'France'.

Daily around 11.00 am i scheduled my task and its working fine mostly. But when the data is not available for the 'France' then also its going to users with blank data'. I want to avoid this case.

I tried like this :

This is the variable varTO logic and the VarTO is used in the macro.

If(match(Country,'France') and Date=Date(today())),'mailidsofallusers','development team mailids');

I tried the above logic in the chart but its working fine But when i run the schedular its always giving second result 'development team mailids'.

Need help how to avoid this case.

More Thanks,

Dhanu

4 Replies
dhanu_today
Creator
Creator
Author

Hi all,

Any help Hints anyone?

Thanks,

Dhanu

pokassov
Specialist
Specialist

Hi!

Can you atach your expamle?

ajaykumar1
Creator III
Creator III

Any help from someone.Unable to attach the application.

Thanks,

Dhanu

jonathandienst
Partner - Champion III
Partner - Champion III

The expression works in your chart because the chart dimensions limit the possible values of Country and Date to a single value each.

I am not sure exactly how you are using the expression/variable in a macro, but in that context, Country and/or Date can take on multiple values and the use of the naked* field names will return null -- so the if() will always evaluate to false.

If you post your qvw file, or a representative sample, someone may be able to give you specific help on how to correct this issue.

* This means the use of a field name outside an aggregation function like Sum(), Min(), Count(),....

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein