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 / How to fill in or igno...
Power Automate
Answered

How to fill in or ignore blank fields in Sharepoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I'm working on a flow that triggers when a new sharepoint list item is created (from a form), but running into issues when certain fields are blank.

 

The form has several options that pull up different fields for the user to fill out, so there will be fields that they don't see depending on what they choose.

 

When a field is blank, it gives me the error below on one of these actions: Start an approval; Create a work item (VSTS); Send an email from a shared mailbox

"InvalidTemplate. Unable to process template language expressions in action 'Start_an_approval_2' inputs at line '1' and column '2562': 'The template language expression 'triggerBody()['PageURL']' cannot be evaluated because property 'PageURL' doesn't exist, "

flow-error.PNG

 

 

 

 

 

 

 

 

Is there a way for me to either ignore or fill out the blank fields using flow? Or is that something that needs to be done with the form - e.g. if option1 is selected, set 'PageURL' to "n/a"

 

Thanks in advance for any suggestions.

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @dunecat,

     

    You could use expression below to solve the problem:

    if(empty(item()?['PageURL']),null,item()?['PageURL'])

     

    Please refer to link below to solve your problem.

    https://powerusers.microsoft.com/t5/General-Flow-Discussion/change-null-to-blank-for-choice-values/m-p/153530#M15623

     

     

    Best regards,

    Alice

  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @dunecat,

     

    Have your problem be solved according to my solution?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

     

    Best Regards,

    Alice

  • dunecat Profile Picture
    Microsoft Employee on at

    Hi Alice,

     

    I ended up changing the initial trigger and adding a "Get item" step to solve for a different problem. This seemed to fix my blank fields issue as well so I did not need to use the expression.

     

    Thanks for your response!

  • puttrian91 Profile Picture
    4 on at

    @v-yuazh-msft 

     

    your expression is correct .. 

    thankyou 

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard