web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint List Approv...
Power Automate
Suggested Answer

SharePoint List Approval Error Message

(0) ShareShare
ReportReport
Posted on by 44
Hi, all--
 
I have a SharePoint list approval workflow created that uses the template that comes out-of-the-box from SharePoint.  When I trigger the flow, there is a window in SharePoint that displays that asks for a message to the approvers, the required approvers, and reminder notification preferences.  I would like to make the message to approvers field optional, which I've done in the Power Automate flow.
 
Here is the code:
    "kind""ApiConnection",
    "splitOn""@triggerBody()['rows']",
    "inputs": {
        "schema": {
            "type""object",
            "properties": {
                "rows": {
                    "type""array",
                    "items": {
                        "type""object",
                        "properties": {
                            "text": {
                                "title""Request",
                                "type""string",
                                "x-ms-dynamically-added"true,
                                "description""Please enter your message sent to the approvers ",
                                "x-ms-content-hint""TEXT"
 
In Create an Approval, there is an expression that is:
if(empty(triggerBody()['text']),'No message included with the request',triggerBody()['text'])
 
If I enter a message, the flow runs without issue.  However, if I leave the message blank, I get the following error message:
Unable to process template language expressions in action 'Create_an_approval' inputs at line '0' and column '0': 'The template language expression 'triggerBody()['text']' cannot be evaluated because property 'text' doesn't exist, available properties are 'email, boolean, entity'. Please see https://aka.ms/logicexpressions for usage details.'.
 
Any ideas?
Categories:
I have the same question (0)
  • Suggested answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at
    Hello,
     
    add a ? character in the expression: triggerBody()?['text']
     
    if you use the expression without ? it means that the property is mandatory, in your case that there must always be text. By adding ? you'll make it optional, meaning it can be empty without failing the flow.
  • KB-20091245-0 Profile Picture
    44 on at
    Thank you for the suggested fix.  I was really hoping it was something this simple.  Unfortunately, I added the ? character as suggested and am still getting the same error when the field is blank.
  • JS-11062103-0 Profile Picture
    2 on at
    I am having this same error. Are there any other ideas?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 535

Last 30 days Overall leaderboard