I'm trying to use the SQL "Substring" function to grab a site code from a node custom property called "Site". This is then going to be used in an alert to post a MessageCard (HTTS/S POST) to a Teams channel.
A site name would be something like "BEN - Site Name" and I'm trying to extract the "BEN" characters.
Based on this post (Using SQL Substring command to string part of a variable to enter into a Custom Property - Forum - Network Performance Monitor (NPM) - THWACK (solarwinds.com)) I'm doing the following using SUBSTRING for the custom property:
{
"@type": "MessageCard",
"@context": "">schema.org/extensions",
"summary": "Store PoS down - ${SQL: Select Substring('${N=SwisEntity;M=CustomProperties.Site}',1,3)}",
""sections": [],
I need the "summary" of the message card to read "Store PoS down - BEN"
The error I'm getting is "No column name was specified for column 1"
I've tried many different variations found in web searches but nothing is helping.
What am I doing wrong?
Thanks!