Hi Everyone,
I was looking to add an button into PowerApps that would take the screenshot of the screen and send the same to a customer via email. I found out through forums that PowerApps currently docent have the screenshot functionality. However, I came across a blog post where it could be added as a custom control via importing the code into environment. The below formula that I've used has 2 errors; Identified not recognized on the first part of the code and the second part displays an error above the formula - your formula is missing a column 'Attachments.ContentBytes' with a type of blob.
Please see the below formula and advice the necessary changes that are required. Thanks
ClearCollect(ImageC,{Name: "Screen.jpg", ContentBytes:'btd_btd.screenshot(00000001-0000-0000-0001-00000000009b)1'.OutPut, '@odata.type':""});
Office365Outlook.SendEmailV2("xxx@xxx.com","Report","Please see the attached screenshot.",{Attachments: ImageC});