This article will demonstrate how to use the Current User connection type:
The Current User connection lets you show details about whoever is viewing your page, making the experience feel more customized and welcoming for each visitor. Here's how it might look in action:
TABLE OF CONTENTS
Prerequisites
- You must have the latest version of ShortPoint SPFx installed on your SharePoint environment.
- You must be a ShortPoint Designer with an active license.
- You must already have the Design Element you want to use to connect on your SharePoint page.
Interactive Tutorial
Start the interactive tutorial to use the Current User connection type:
Step-by-step Tutorial
Follow the steps below to learn how to use the Current User connection type:
Step 1: Edit the ShortPoint Web Part
- Go to the SharePoint page you want to use and click Edit:
- Close the Toolbox:
- Click the Edit Properties icon:
Step 2: Switch to Grid Mode
NOTECurrently, ShortPoint Connect is only available in Grid Mode.
- Click the Switch to Grid Mode icon:
Step 3: Edit the Design Element
NOTEBefore proceeding, make sure you already have the Design Element you want to use to connect. For this guide, we’ll use Image List.
- Hover over the Design Element and click the cogwheel icon:
Step 4: Connect to Current User
- Go to the Connect tab.
- Select Current User:
- Click Connect.
Step 5: Map Items
- Go to the Items tab.
- Delete all default content.
- Use the link icon to map the properties you want to display:
- Below are the properties we mapped. You can choose to map the same items or choose your own.
[1] #FirstName - shows the first name of the current user as the title;
[2] #JobTitle - shows the work title of the current user as the description;
[3] #_SHORTPOINT_SharePoint_Photo - shows the image of the current user.
- (Optional) You can add a personalized message for your user. In our case, we’ll add ‘Hello,’
- Click Preview to see how your Design Element will look.
- Once satisfied, click Update.
Step 6: Save
- Click the eye icon to see your page in real-time:
- Save your changes:
Congratulations! You now have a much more personalized way to welcome users into your SharePoint pages:
Related articles: