Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Flow not working

Posted on by 24
Hello,
 
I am making a flow that that it takes from a form, that goes to an approval request and once approved that request gets sent to an email address. I only want to show the questions answered in both the approval and final email.
 
I am getting this error message in my flow.
Invalid parameter for 'Initialize variable'. Error: Enter a valid JSON.
 
My flow is below. I also wonder if my start and wait for an approval function is correct with the concat function and pointing to the Reponses. As I don't want to show questions that weren't answered. 
 
Any help would be greatly appreciated,
 
 
 
 
  • DEKEITH Profile Picture
    DEKEITH 24 on at
    Flow not working
    MY flow is still showing all the questions including the non-answered ones in the Approval message. Anything else you might think of? Any help would be greatly appreciated. 
     
     
  • Suggested answer
    trice602 Profile Picture
    trice602 10,947 on at
    Flow not working
    Hi,
     
    Awesome!  I am glad the quotation marks helped!  Please mark that reply as a verified answer so others can find it quickly.  Missing quotes is a common issue and happens to EVERYONE at least once!
     
    For your approval code, the issue is your concat(if(empty))) code is typed in as text.  This needs to be entered as an expression, shown below.  With your cursor in the details field (and the location you want to add your expression, click on the fx icon OR type in the "/" - both options get your to the expression builder.
     
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     


     
  • DEKEITH Profile Picture
    DEKEITH 24 on at
    Flow not working
    Hello,
     
    Thanks for replying Trice.
     
    It still didn't work, so I changed it from object to string. Then it worked after fixing what you said.
     
    My next question is my approval is show the whole concat code now? any way I can fix?
     
  • Suggested answer
    trice602 Profile Picture
    trice602 10,947 on at
    Flow not working
    Hi,
     
    It looks like you are missing a few quotation marks.  Please update and resubmit your run.
     
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     


     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard