Question sent by a reader recently, on my Quick SharePoint Approvals using list formatting JSON to set field values formatting post:
Will this not work if my column name has a number in it?
I have to submit documents for 2 reviews, and I am using “1st Reviewer Status” and “2nd Reviewer Status” as the column names, but the above code will not populate the approved/rejected in that column. I modified the columns to “Reviewer One Status” and “Reviewer Two Status” and the code worked fine. But spelling out the values doesn’t look as clean, in my opinion.
List formatting uses the internal name for the columns. When creating it from the modern UI ,not all internal names are generated as we expect, especially with names containing numbers and special characters.
You can find the correct encoded internal name for the column by accessing the ‘List Settings’ menu:

Then opening the column settings:

You will see something like this in the browser URL…
Source link
More About This Author

-
SharePoint and Office 365 Consultant/Developer always trying to get the best from Microsoft stack (Microsoft 365/Azure/Power Platform and related stuff).
Living in Ireland since 2018, I had previously worked in Brazil as a consultant/developer for Office 365, SharePoint and related technologies for almost 10 years.
Array
Modern Workplace19 November 2023Ignite 2023: Curated blog posts with Microsoft 365 & Power Platform Updates
Modern Workplace4 November 2023Getting the proper SharePoint list columns internal names to use in List Formatting JSON
Modern Workplace25 October 2023Create parent and child records with a single WebAPI call in Power Pages
Modern Workplace21 October 2023How to allow users to only Add and View SharePoint list items (block editing/deleting)