| MainFormatTemplateText Method |
Returns a formatted text for the action object based on a template.
Codemethod usage | Description |
---|
Designed to be used in a process only (Yes/No) | No |
Action Object (data object type) | Any |
Namespace:
Omada.OE.UtilityCodeAssembly
Assembly:
Omada.OE.UtilityCodeAssembly (in Omada.OE.UtilityCodeAssembly.dll) Version: 15.0.0.0
Syntaxpublic void FormatTemplateText(
CodeMethodInvokeContext context,
string template,
out string result
)
Parameters
- context
- Type: Omada.OE.ModelCodeMethodInvokeContext
An invoke context object.
- template
- Type: SystemString
template may contain fixed text and variable text in the form of properties and fixed fields.
Properties must be stated by their system name enclosed in square brackets (example: [NAME]).
Fixed fields must be stated by their name enclosed in square brackets (example: [Assignee]).
If the method for instance is called with "Mr. [FNAME] [LNAME]"
on a user object for "John Doe" then the result will be "Mr. John Doe".
- result
- Type: SystemString
The formatted text is returned here.
See Also