Hi Florent,
We have several requirements that would be realized using JS inside content blocks. It seems to work, see case 1 below. However I don't find a solution for case 2.
Use case 1:
Display attributes (from real time event) conditionally, or iterate through elements of collections and render a table.
This is doable, e.g. see the OOB content block: Greetings.
Use case 2:
Based on constant value or variables we would like to query a specific resource and implement content logic based on it. E.g. look up something in a custom resource (dictionary, etc.).
I don't see a solution for this based on OOB content block examples.
I understand that the way to realize use case 2 would be to do enrichment or reconciliation (link resources), but I wanted to find out if I can access resources from a content block programmatically, too.
Thanks,
Kornél