Bookmarks work with Email Templates and Mail Merge Templates to replace Placeholders with static or dynamic content.
Creating bookmarks
Bookmarks are intended to work with rules that return a single value, and it's designated output parameter is called ResultText of type Text.
- Open Application Studio of your solution
- From the left menu, select Letter Templates -> Bookmarks
- Click on New Bookmark. The New Bookmark page displays.
Enter the bookmark properties as follows:
Property Description Bookmark Name Enter meaningful names. This names displays when you are mapping Placeholders to Bookmarks, and identifies the Bookmark. API Permanent ID This field is automatically prepopulated and needs to be unique across all Bookmarks in your solution. Bookmark Type Can be either Constant or a Rule.
Description Enter a meaningful description. This description should explain what information this Bookmark is intended to return. - Click Save
Bookmark rule example
- From the left menu, select Business Rules -> Rules
- Click on New Rule. The New Rule page displays.
Enter the specific rule properties as follows. To read about the other properties, review the Rules help:
Property Value Description Rule Usage Bookmark This rule usage provides the necessary input and output parameters necessary for defining a Bookmark. Rule Type NonQuery SQL This type of rule is meant to return single output parameters instead of list of records. Click here to learn a about the different rule types that a Bookmark can be. Rule Body Any valid NonQuery SQL code that fills out the ResultText output parameter. If I have a Business Object called Customer and I want to return back the FirstName + LastName, the code may look like:
- Click Save
Edit bookmark
- Open Application Studio of your solution
- From the left menu, select Letter Templates -> Bookmarks
- Click the Edit button next to the Bookmark you want to modify.
- Update the Modify Bookmark page.
- Click Save
Delete bookmarks
- Open Application Studio of your solution
- From the left menu, select Letter Templates -> Bookmarks
- Click on Delete button next to the Bookmark you want to delete. Alternatively, you can select multiple Bookmarks and select the With Selected Do toolbar button and then Delete.
Related Pages