Hi there,
I am currently working on a little project using PowerApps as I learn to use it and I am stuck on building a clocking in/out app and wondering if anyone could help. My App is fairly simple but I wonder if I am not actually able to do what i am trying to make powerapps and flow do at the moment.
At the moment, an Admin user can login to the App and go a new user screen. The New user screen really just needs a first name and last name field and then to generate a barcode so that it can be printed on site. So, at the moment, I have tried to do this by generating a random number and then using the Right function to create a unique 8 digit number. The number is then concatentated in a string with a URl that creates somethign like this:
Concatenate("http://barcodes4.me/barcode/c39/", Right((Text(Rand())),8),".jpg?width=400&height=200")
This URL is actually a web service that creates a jpeg of the barcode. At the moment it is in a text field.
I am using an Excel spreadsheet on onedrive as my datasource. I have set up an email enabled printer in my office. So the idea is to somehow get the image that the URL creates and then attach it to an email in flow and send it to the email address associated with the printer. In Flow I have created a variable for powerapps to use and I can set the variable to the URL. I realise this probably was not going to work as sure enough it just created an attachment with the URL 🙂 that was sent to the printer.
I then went down the route of adding an image control into power apps and setting the datafield value to my text label which has the URL in. Again this didnt work. As I am new to Powerapps, I am struggling to work out if there is anyway to scrape the image from the webpage that generates the Barcode so that I can attach it to the email. If anyone has any good ideas please let me know! 🙂
thanks for any help
Paul