Difference between revisions of "Codeunit/ContentPublic/PagePublicTokenBuilder"
Jump to navigation
Jump to search
old>Admin |
old>Admin |
||
Line 33: | Line 33: | ||
=== Options for building the token === | === Options for building the token === | ||
* TokenInterface: Interface to build the token for | |||
* TokenInterface: | |||
* TokenInterfaceAlt: Interface used if the parameter '''AltToken''' is set to '''1''' | * TokenInterfaceAlt: Interface used if the parameter '''AltToken''' is set to '''1''' | ||
* LookupSolution: System name of the solution which the token is built for | |||
* LookupFieldName: Field in solution where email of the user can be found | |||
=== Options for the email message === | === Options for the email message === |
Revision as of 08:59, 18 March 2013
ARTICLE IS INCOMPLETE
What it does
Builds a token for accessing records using configuration options and dynamic parameters.
Multimode operation based on supplied parameters
- Email as parameter: Execute silently
- No email supplied:
- Display form with email
- Execute normally
Afterwards an email is sent to the user with a token for the record in question
How to invoke
Make a http request:
main?command=dk.p2e.blanket.codeunit.common.PagePublicTokenBuilder
Configuration
If no interface (TokenInterface) is specified the codeunit will allways exit without doing anything.
The codeunit has the following options
Options for the email input form
- FormHeader: HTML before the form and resulting message
- FormFooter: HTML after the form and resulting message
- FormIntroduction: Help text displayed above the form
- FormSubmitButton: Text on submit button
- FormReponseSuccess: Message to user if email is sent succesfully
- FormReponseFailure: Message to user if email failed
Options for building the token
- TokenInterface: Interface to build the token for
- TokenInterfaceAlt: Interface used if the parameter AltToken is set to 1
- LookupSolution: System name of the solution which the token is built for
- LookupFieldName: Field in solution where email of the user can be found
Options for the email message
- EmailHeader:
- EmailContent:
- EmailMatch:
- AltToken:
Developer info
- Type: CodeunitPagecontentPublic
- Security: Public accces