Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

After you have created a Single Calendar for a custom Dimension, you might want to create a button on the Salesforce record layout that takes users to the single calendar of that record.

Step-by-step guide

  1. Navigate to the custom object in Salesforce setup

  2. Go to the subsection Buttons, Links, and Actions

  3. Click New Button or Link

  4. Give the button a name and label. For example: "View Calendar"

  5. Display Type can be either: Detail Page Link or Detail Page Button

  6. For behaviour select: Display in existing window with sidebar

  7. For Content Source select URL

  8. Paste the following code snippet into the link text box.

    URL Code snippet

    Code Block
    languagejava

...

  1. /apex/B25__SingleResourceCalendarWrapper?recordId=<REPLACE_THIS_WITH_RECORD_ID>

  2. Select

...

  1. <REPLACE_THIS_WITH_RECORD_

...

  1. ID> open the dropdown under Insert Field and select Record Id

  2. The link or button definition should now look something like this:

...

  1. Image Added
  2. Click Save

  3. You can now edit the Page Layouts you want this button to appear on and add the button to the custom buttons section.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@101b6
sortmodified
showSpacefalse

...

reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "BPD"
labelskb-how-to-article
Page Properties
hiddentrue

Related issues

...

titleOn this page

...