Hallo,
the $path array and its tokens are available for example for PHP action but they are not present for the Fetch Entity actions.
Usecase is: I want to add a link with an order ID as argument, then I want to load the order and change its state when the link is visited.
tx
Simone

Comments

cimo75 created an issue. See original summary.

cimo75’s picture

Issue summary: View changes
deggertsen’s picture

Category: Bug report » Feature request

This seems like a feature request to me. I personally will not be doing anything to add this functionality, but if you would like to submit a patch I would be happy to review it and apply it if it looks good.

Thanks

cimo75’s picture

Hallo, I marked as a bug because I assumed that a variable and its token should be available across all the actions on the same rule and if it didn't then something was not right.
It is a pity because I think this would be a great feature, very useful, think about loading an entity by the argument as a pretty basic functionality.
Thanks
Simone

david.qdoscc’s picture

Here's a quick workaround...

1. Add action 'Add a variable'. Type: Text. Value: [path:last].
2. Add action 'Convert data type'. Target type: Integer. Value to convert: variable-added.
3. Add action 'Fetch entity by id'. Identifier: [conversion-result].