- Issue created by @abx
- 🇩🇪Germany mxh Offenburg
A more straight forward way is to use action "Entity: load via reference", with that you can store the referenced entity into another token, then finally use "Entity: Set Field Value" action using the token name holding the referenced entity in "Entity".
Just tried Entity: load via reference which is also work great. But I found a problem when working with multiple paragraphs and relationship. When I tried to set value using ECA VBO, the first paragraph is always set. Even though the row I selected in Views is second paragraph. Is there anyway to make it work?
Thank you,
- 🇩🇪Germany mxh Offenburg
I don't know. Maybe you have a view of nodes using paragraphs as relationships?
If you'd want to operate on the paragraphs instead, then I'd recommend to create a view listing paragraphs instead ,i.e. use paragraphs as base table in the Views configuration.
Other pointers that may nor may not help you:
- When you want to get all references of an entity reference field and store them in one token, use "Entity: get field value" instead of "Entity: load via reference". The latter one is basically only loading one entity, where "get field value" is capable of loading the whole list.
- Status changed to Fixed
over 1 year ago 9:28am 10 May 2023 Yes, you are right, I have a view of nodes using paragraphs as relationships. I then, tried to use paragraphs as a base table and ran into a bug in Entity Reference Revisions ( https://www.drupal.org/project/entity_reference_revisions/issues/2799479 🐛 Views doesn't recognize relationship to host Needs review ). If I remember correctly, this is the reason I always created Views using node (content) as the base table all the time.
Anyway, when create a new Views using paragraphs as a base table, it works now.
Regarding, "Entity: get field value" and "Entity: load via reference", this is good, I'm sure I will need it soon since I plan to use ECA to replace many of my work flow.
Thank you mxh,
Automatically closed - issue fixed for 2 weeks with no activity.