You can use a link listener extension to set a flag field to true on the item level when a resource is linked that is marked as an asset type of Image, Schematic, Brochure etc…
When configured, the link listener will listen to LinkCreated Connect Messages. When an item and resource are linked together, this will generate a LinkCreated Connect Message.
The LinkCreated Connect Message will contain the entity id(s) for both the item and the resource entity.
Once you have this information, you can add business logic in the extension to set a flag field to true on the item level when a resource is linked that is marked as an asset type of Image, Schematic, Brochure etc…
Here is an example of what the order of events is:
1. The user links an item and resource together
2. A LinkCreated connect message is generated and sent to the LinkListener
3. Business logic can be set to:
3a. Get field AssetType from target entity
3b. Find if field value is (Image, Schematic, Brochure, etc)
3c. Then set flag field on source entity = true
Please sign in to leave a comment.
Comments
0 comments