Support is offline. We are back Monday 23 November, 09:00.

Export contacts only if certain value does match #81883

Resolved pat01 opened this topic Thursday, 14 November 2024 · 2 replies
Author

Hello

I use contacts with custom fields. They hold address data of users. Now I want to export addresses, where custom field is-member value is = 1.

I have six contacts, five of them have set is-member = 1. One is set to zero.

I have created an export rule (please see attachment) and added it to the template.

But in export file there are all six addresses instead of 5.

What goes wrong?

Thanks a lot.

Patrick

Joomla 5.2.1, RO CSVI 8.12.1

member-rule.png

is-member-2.png


I use Joomla and RO CSVI in their latest version.

Support

Hello Patrick,
First issue in your template and rule is that is-member field is not added to template fields. RO CSVI will not know the values to run the rule if the field is not added in template.

Also instead of using RO CSVI conditional rule use RO CSVI Skip rule where you set the rule to skip records with is-member value as 0. See attached screenshot. Add is-member field in template fields and apply the rule on the field. If you don't want to include is-member field in export file you can set it to unpublished.

  • Screenshot 2024-11-14 at 3.59.50 PM.png

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hello Tharuna

That works perfect!

My logic was wrong... :)

Thanks a lot for your help.

Regards
Patrick


I use Joomla and RO CSVI in their latest version.

Log in to reply to this topic.