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 Apps / sharepoint to pdf flow...
Power Apps
Unanswered

sharepoint to pdf flow Image showing broken

(0) ShareShare
ReportReport
Posted on by 407

Hi, i have a jobcard app. When they submit the information, goes to a sharepoint list, then a flow (when item created in sharepoint) that converts the data into a pdf. In the flow, i have a compose with html (e.g concat('<!DOCTYPE html>
<html>
<h3>JobCard</h3>
<p>&nbsp;</p>
<div>
<td style="width: 139.5px;"><img src="',variables('objectList')?['Signature1'],'" width="80" height="80" /></td>
<table style="height: 117px; width: 580px; float: left;">
<tbody>)

The problem i have, is if someone doesn't enter a signature, it shows a broken link in the pdf

Matt383_0-1664232022990.png

I have a blank image called Image10. I just need to replace Signature1 with Image10 if no signature is entered. Can you please assist

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Matt383 

     

    You can use the coalesce function to do so.  Not sure of your entire flow (and this forum is focused on PowerApps and not PowerAutomate), but investigate the coalesce function and you can implement that into your flow.

     

    Coalesce will return the first parameter which is not blank.  So in your case, it would be a Coalesce on Signature1 and Image10.

     

    I hope this is helpful for you.

     

  • Matt383 Profile Picture
    407 on at

    Thanks. So just to clarify, would replacing

    <td style="width: 120.3px;" colspan="2"><strong><img src="',variables('objectList')?['Signature1'],'" width="60" height="60" /></strong></td>

    with 

    <td style="width: 120.3px;" colspan="2"><strong><img src="',variables('objectList')?['If( Not IsBlank( Signature1 ), Signature1, Not IsBlank( Image10 ), Image10 )'],'" width="60" height="60" /></strong></td>

    work?

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard