Hi Rafael,
Regarding your question: When i'm creating a new criteria that is base on the current item the docs says "the entity.id value must be passed as a parameter in the display mbox." How can i passed a parameter when i'm creating an activity?
When you load up a page in the visual experience composer and you attempt to use a criteria that is based on an item, Target looks at your implementation for that page and tries to identify which the item to base the recommendation on. It does this by looking for the entity.id. Becuase this is part of the initial implementation, it is done prior to setting up the activity, and is really just part of your page code (unless you have a tag management solution).
The sample code below shows how you would pass in an entity.id.
<html> <head> <script> function targetPageParams() { return { "entity": { "id": "32323" } } } </script> <script src="../mbox.js" /> </script> </head> <body> </body> </html>
If Target does not detect an entity.id on the page, it will "hide" the criteria, so that you are not trying to use something that Target knows will not function properly. Let me know if that helps. (hopefully this post doesn't appear twice like my last one 🙂 )