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

Notifications

Announcements

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

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
    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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard