This project utilizes the Fluent UI TagPicker control to render Connections to an entity record as tags.
- A tag category entity (ex.
my_tagcategory
)- A Single Line of Text for the category name (ex.
my_name
)
- A Single Line of Text for the category name (ex.
- A tag entity (ex.
my_tag
)- A Single Line of Text for the tag name (ex.
my_name
)
- A Single Line of Text for the tag name (ex.
- A lookup to the category entity
- Connections enabled for the tag entity and the entity to be tagged
- Connection Role added with Tag entity as record type. Recommended:
- Step 1: Name = Tag Connections
- Step 2: Only these record types = Tag
The control can be used for Single Line of Text or Multiple Lines of Text field types. Even though the control manages connections between entities, it also stores a comma-delimited string in the field for display purposes. Warning: Keep this in mind when choosing a field type. For example, if many tags are added to a record and a Single Line of Text field is used with a limit of 200 characters; you could encounter an error. It is recommended to use a Multiple Lines of Text field type.
The control requires several items to be configured:
- TagsField: The Field the control is bound to (ex.
my_tags
) - TagsEntity: The name of the Tag entity (ex.
my_tag
) - TagsEntityDisplayNameField: The Tag field to display in the control (ex.
my_name
) - TagsEntityCategoryField: The field of the tag entity that references the category (ex.
my_category
) - ConnectionRoleName: The name of the Role used for tags connection (ex. Tags). NOTE: Connections must be enabled on entities and Role created.
- CategoryEntity: The name of the Category entity (ex.
my_tagcategory
) - CategoryEntityNameField: The Category name field (ex.
my_name
) - CategoriesField (optional): The Categories to filter (comma-delimited) (ex. Default, Category 1,Category 2). If nothing in provided, then all tags will be returned. Otherwise, enter the category names to filter.
In order to search for entity records that have connected tags, do the following:
This approach uses the actual tags to filter results
- Open Advanced Search
- Select the entity with connected tags
- Select Connection (Connected From)
- Select Connected To for field
- Select Equals for operator
- Using the lookup tool:
- Look for: Select Tag entity
- Select the tags for your criteria and then click Add
- Configure columns and any additional criteria and then click Results
This approach uses the comma-delimited string stored on the record to filter results
- Open Advanced Search
- Select the entity with connected tags
- Select Tags for field
- Select Contains for operator
- Enter the text of the tag you are looking for
- Repeat previous 3 steps with grouping if desired to refine search criteria
- Configure columns and any additional criteria and then click Results