Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

sharepoint to pdf flow Image showing broken

(0) ShareShare
ReportReport
Posted on by 395

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

 

  • Matt383 Profile Picture
    Matt383 395 on at
    Re: sharepoint to pdf flow Image showing broken

    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
    RandyHayes 76,287 on at
    Re: sharepoint to pdf flow Image showing broken

    @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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard