D2L - Replacement Strings

Last Updated: 02/13/2014

Overview

Replacement strings are generally used when one would like to personalize messages without creating several individually targeted items. These strings are used when you would like to personalize messages, instructions, or other information for students. The following will show how to use strings and what strings are accepted by Desire2Learn.

Using Replacement Strings

To use this feature of Desire2Learn, in the message you would like to personalize, simply put the replacement string in the place of the information you are replacing. The following example shows how one would use the first name replacement string to personalize a message with a user's first name.

String entered into the item Content text field:

replacement string example

Result:

replacement string example

Accepted Replacement Strings

A number of Replace Strings are available. Some of them can only be used with particular tools in D2L. The information outlines the strings, provides an example and notes which tools the replace string works with.

  • Replace String - {OrgName} The Name of the Organization
    • What Will Be Displayed: Learn | University of Colorado at Boulder
    • Tool Replace String Works With:
      • News – In the Headline and Content
      • Discussions – In the Subject and Message
      • Content Topic – When you create a new file
      • Dropbox – In Folder custom instructions & Feedback
      • Quizzes – In Description, Introduction, Page Header and Footer
      • Grades – In Comments
      • Checklist – In Name and Description
      • Groups – Descriptions
  • Replace String - {FirstName} The User's First Name
    • What Will Be Displayed: Ralphie
      • Note: Just an example. Will be replaced with every user for the course.
    • Tool Replace String Works With:
      • News
      • Discussions
      • Content Topic – When you create a new file
      • Dropbox – Folder custom instructions
  • Replace String - {LastName} The User's Last Name
    • What Will Be Displayed: Buffalo
      • Note: Just an example. Will be replace with every user for the course. 
    • Tool Replace String Works With:
      • News – In the Headline and Content
      • Discussions – In the Subject and Message
      • Content Topic – When you create a new file
      • Dropbox – In Folder custom instructions & Feedback
      • Quizzes – In Description, Introduction, Page Header and Footer
      • Grades – In Comments
      • Checklist – In Name and Description
      • Groups – Descriptions
  • Replace String - {OrgUnitStartDate} The Start Date of the Course
    • What Will Be Displayed: Monday, August 25, 2014
      • Note: Just an example. 
    • Tool Replace String Works With:
      • Intelligent Agents
  • Replace String - {OrgUnitEndDate} The End Date of the Course
    • What Will Be Displayed: Friday, December 12, 2014
      • Note: Just an example. 
    • Tool Replace String Works With:
      • Intelligent Agents
  • Replace String - {InitiatingUserFirstName} Your First Name
    • What Will Be Displayed: Ralphie
      • Note: Just an example. 
    • Tool Replace String Works With: Intelligent Agents
  • Replace String - {InitiatingUserLastName} Your Last Name
    • What Will Be Displayed: Buffalo
      • Note: Just an example.
    • Tool Replace String Works With: Intelligent Agents
  • Replace String - {LoginPath} The Address for D2L