I want to display the users name on a sharepoint list when a new record is recorded. I do not want to use power apps for this assignment, so I assume JSON is my only choice but I do not know how to write the code for dispalying user name in JSON. Any help is much appreciated!
Loading
Tuhin PaulPosted Feb 4, 2024, 5:37 PM
To display the user's name in a SharePoint list when a new record is recorded without using Power Apps, you can leverage SharePoint Designer workflows or Microsoft Power Automate (formerly known as Flow). In this case, you might not need to directly write JSON code but use the platform's workflow capabilities to achieve your goal.
Here's a general guide using Microsoft Power Automate:
Create a Flow:
Trigger:
Add Action:
Update SharePoint Item:
Jayraj ChhayaPosted Nov 17, 2023, 1:30 PM
To display the PC user's name on a SharePoint list form without using Power Apps, you can utilize JavaScript and SharePoint's Client Object Model (CSOM). Here's an example of how you can achieve this:
In the code above, we use the SharePoint Client Object Model to retrieve the current user's display name. The display name is then inserted into an HTML element with the ID 'userDisplayNameField'. Make sure to replace 'userDisplayNameField' with the actual ID of the field where you want to display the user's name.