
Announcements
Hello! I'm on an app that I'm developing, I need to place a button that takes info from the app and places it into a PDF. The flow works well but, now I'm trying to send a Image to the PDF too, but when I open the PDF, the image appears with a Red X. Any help?
This is my Flow:
This is my HTML control content:
"<!doctype html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
</head>
<body style='margin: 10px 10px 10px 10px; font-family: Verdana, Geneva, Tahoma, sans-serif;'>
<div style='width:100%;height: auto; background-color: rgb(16,6,159); color:white; text-align: center; font-weight: bold'>
Polopiqué - Modelos e Operações
</div>
<table>
<tr>
<th style='padding-left: 18px; font-weight: bold; text-align:center'><b>Modelo " & " " & varDetalhes.Cliente & " " & varDetalhes.Modelo & " " & varDetalhes.Designação & "
</th>
<th>
// Here is the problem.
<img src='https://www.polopique.pt/media/images/logotipo.jpg' alt='logotipo' width='120'>
</th>
</tr>
</table>
<br>
<center>
<table>
<tr style='background-color: rgb(199,199,199)'> <th> </th><th>Operação</th> <th>Máquina</th> <th>Tempo</th> <th>Prod/Hora</th></tr>
" & Concat(
colModOp;
"<tr style='text-align: center'>
<td style='width: 50px ; '> " & Ordem & " </td>
<td style='width: 200px; text-align:left'> " & LookUp(
Operações;
RefOperação.Value = Operação;
Descrição
) & " </td>
<td style='width: 100px'> " & LookUp(
Operações;
RefOperação.Value = Operação;
Máquinas.Value
) & " </td>
<td style='width: 80px'> " & Tempo & " </td>
<td style='width: 50px'> " &
With(
{
_min: Value(
Left(
Tempo;
2
)
) * 60 * 1000;
_sec: Value(
Mid(
Tempo;
4;
2
)
) * 1000;
_ms: Value(
Right(
Tempo;
3
)
)
};
RoundUp(
3600000 / (_min + _sec + _ms);
0
)
) & " </td></tr>"
) & "
</table>
</center>
<br>
<div style='width:100%; height: auto; background-color: rgb(16,6,159); color:white; text-align: center; font-weight: bold;'> " & Now() & " </div>
</body>
</html>"
Hi @Anonymous
First Thing to notice is Your PowerApps(V2) trigger there you have input type as text that is PDFbody in your case so that is 1 reason of getting error
so You just click on plus icon and take one more input type as file like
Now To FileContent you pass your image URL from powerapps
Note:
insted of sending image directly from app you store image into OndDrive or sharepoint and this URL you pass to the FileContent
Once this done
Take next action as a Get file content using path of OneDrive (stored your image in one drive ) and from dynamic content select File Content
For more please refer
https://www.youtube.com/watch?v=KGLtKl97OGo&t=489s
Please Accept as a solution if you got your answer and give like