Public Pages

Hello World

What it does

Displays "Hello World" in a seperate page. Purpose is learning and testing.

How to invoke

Make a http request:

 .../main?command=dk.p2e.blanket.codeunit.common.PagePublicHelloWorld

Configuration

None

Developer info

PublicTokenBuilder

What it does

Usage example: Lets external users resend tokens for data they should have access to.

Builds a token for accessing records using configuration options and dynamic parameters. It requires a record that has a reference to an email, to whom the token will be sent.

Multimode operation based on supplied parameters

  1. Email as parameter: Execute silently
  2. No email supplied:
    • Display form with email
    • Execute normally

The DataID of the record is collected by making a lookup on the email supplied (see: LookupSolution, LookupFieldName).

An email is then 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

Options

The name of the following parameters are optional and configurable

main?command=dk.p2e.blanket.codeunit.common.PagePublicTokenBuilder&AltToken=0
main?command=dk.p2e.blanket.codeunit.common.PagePublicTokenBuilder&EmailMatch=foo@bar.com
main?command=dk.p2e.blanket.codeunit.common.PagePublicTokenBuilder&AltToken=0&EmailMatch=foo@bar.com

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

These options are required

Options for building the token

These options are required

These options are optional

Options for the email message

These options are required

Developer info

MigrateFilesToChildren

What it does

Helps migrate from a Files: Documents field to a related entity, with a Files: Documents field in single-file mode.

Introduced in version 11879.

How to invoke

Make a http request:

.../main?command=com.tsnocode.codeunit.common.MigrateFilesToChildren

 

Options

Required parameters:

Name Description
From Entity migrating files from
FromDocument Field to migrate files from in "From" entity
To Entity to migrate files to
ToParent Field that references "From" entity
ToDocument Field to migrate files to in "To" entity

Optional parameters:

DontKeepMetadata Don't set CreatedAt and CreatedBy based on when and who uploaded the original file
TEST Limit to first 10 records in "From" entity

All entity and field names are system names.

Developer info