- Issue created by @SirClickALot
- 🇩🇪Germany jurgenhaas Gottmadingen
When I look at the screenshot, the field
Entity
wants to receive an entity, not an entity ID. So, you need to use the ID you have, load the correct entity with it into another token, and then provide that token containing the entity to the automator plugin. - 🇬🇧United Kingdom SirClickALot Somerset
Thankyou @jurgenhaas,
That has really helped, it was driving us mad.
We still really struggle to recognise when an entity is needed over and entity_id.
HOWEVER, attempts to do an
Entity: load
on the 'targeted_id
' token fail miserably whatever we try!HARD CODING the actual (known) ID as step (4) works a treat and calls the AI Automator, does the job, and returns back with a confirmation all beautifully via AJAX, exactly as we want, but is of course useless to us ;-)
We just don't get it and believe me, we have put the time in experimenting with all manner of combinations of:
- Current scope
- Type and ID (see below)
- Type and properties (see below)
- Defined by token
Is there most-commonly-used recommendation?
Almost there!
- 🇩🇪Germany jurgenhaas Gottmadingen
If you want a string value, e.g. in the field "Entity ID" to contain a token that will be replaced with it's value during runtime, then you have to use the token syntax i.e.
[targeted_id]
. In other fields, like "Entity" in the Automator action, the field explicitly asks for a "Token name", then you should only provide the name and not use replaceable token syntax. All this is described in the token chapter of the ECA Guide. - 🇬🇧United Kingdom SirClickALot Somerset
Absolutely!
I have read and understood the Token section of the guide many moons a go and been using it for years now too not mixing up
[token]
withtoken
.That's not the issue here that is the finally stumbling point, thanks to your last response, it is now now clear the Automator needs an entity not an id but the problem we are hitting is LOADing that entity in in order to be able to pass it forward.
To clarify, the illustration above in #4 is the Entity: load dialogue and if we load it via a hard-coded id (8797) it all work perfectly and that confirms your advice about passing on an entity that we have successfully loaded.
The problem is we simply cannot seems to get the right combination to load it!
- 🇩🇪Germany jurgenhaas Gottmadingen
This is either a permission issue or the token doesn't contain the ID as expected. Time for debugging and reviewing the logs.