Hello guys !
I'm reaching out to you after a couple days of investigating.
I've recently got to work on an app that wasn't developped by me, so I'm apprehending the code there.
This app is a reporting app, workers use this app to fill in a couple dropdowns, a quick description of their issue and a photo. Once they click on send it sends an email with the content of the report and the photo.
This is where my problem lies.
It should work like this :
User Reports an issue > Sends an email > Uploads the attachment to a Dedicated Documents Sharepoint List > URL gets uploaded in the "Image" field of the Sharepoint List with all the reports
Currently this is what the app is doing
User Reports an issue > Sends an email
The attachment is only sent by email and it just fills in the Reports Sharepoint List without the image.
This is how I have written my code on the OnSelect of the send button :
Office365Outlook.SendEmailV2(
"me@email.com";
"NEW REPORT";
"Lorem";
{
Attachments: Table(
{
Name: "Photo.jpg";
ContentBytes: Image8_1.Image;
'@odata.type': ""
}
)
}
);;
Patch(
ListeSignalementTournee;
Defaults(ListeSignalementTournee);
{
Catégorie: VarCategorie;
SousCategorie: VarSousCategorie;
VotreUO: ComboVotreUo.Selected.Result;
VotreEquipe: ComboVotreEquipe.Selected.Result;
UORisque: ComboSiteRisque.Selected.Result;
SiteRisque: ComboSiteRisque.Selected.Result;
ZoneRisque: ComboZoneRisque.Selected.Result;
SousZoneRisque: ComboZoneRisque.Selected.Result;
DescriptionProbleme: TextInputDescription.Text;
Action: VarAction;
ActionRealiser: TextInputActionRealiser.Text
}
);;
Notify(
"Votre signalement est transmis";
NotificationType.Success)
Would you guys have any fix for this ?
Thank you !

Report
All responses (
Answers (