I'm using Rules to handle my site membership system. When someone signs up to the site, I'm storing their order number from our external payment merchant, but appending some other data to the end of the string.

I need to identify whether a customer already exists when a transaction is made and one of the ways I need to do this is by checking if their order number already exists.

I would need an action where I could fetch the user (entity) by property, whereby the specified field CONTAINS the order number.

How do I do this?

Comments

dodge created an issue. See original summary.

TR’s picture

Status: Active » Fixed

The Entity API only allows you to query by the exact contents of the property. If you want to use a more complex query you will have to write a custom action. You can also probably do this with Views Bulk Operations to make the query - VBO has an action that exposes the query results to Rules.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.