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 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)
  • 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?

  • RandyHayes Profile Picture
    76,297 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.

     

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 Apps

#1
Kalathiya Profile Picture

Kalathiya 408

#2
WarrenBelz Profile Picture

WarrenBelz 382 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 328 Super User 2025 Season 2

Last 30 days Overall leaderboard