cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sajarac
Kudo Kingpin
Kudo Kingpin

Bing Map Image

Hello Community.

Is this possible?

 

If I have in my app a field which is a Full Address and I show that address in a map in my map, is possible to send that static map as a image to flow?

 

I would like to send an email and include in the body the customer address and below a small rectangle showing that static map image.

 

Thanks in advance for any response.

 

Regards.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @sajarac :

Yes. I've made a test for your reference:

1.PNG2.PNG

If my replay helps,please consider marking it as a "solution".

Best Regards,

Bof

View solution in original post

9 REPLIES 9
v-bofeng-msft
Community Support
Community Support

Hi @sajarac :

Do you want to convert the URL of a static picture into a picture format file, and then get the content of the file?

If so,I've made a test for your reference: 

1\Add a image control and set it's image property to:

"http://dev.virtualearth.net/REST/v1/Imagery/Map/Road/47.645523,-122.139059/18?mapSize=500,500&pp=47.645523,-122.139059;66&mapLayer=Basemap,Buildings&key=MyKey"

2\Create a flow('PowerApp->UploadfilefromURL,Getfilecontent')

1.PNG

3\Add a button and set it's OnSelect property to

'PowerApp->UploadfilefromURL,Getfilecontent'.Run(Image2.Image)

The Result:

2.PNG

Best Regards,

Bof

sajarac
Kudo Kingpin
Kudo Kingpin

Hey, thank you very much for your prompt response.

 

I did a test and hardcore the URL and got this issue:

sajarac_0-1619095197865.png

 

 

And also I can not see the option to insert the output of the get file content in my Send an email step

 

sajarac_1-1619095238453.png

Just to recap.

 

In my from I am getting the address in a JSON format from my powerapp

 

The address is a concatenate field like this: "Address, City, State, Zip"

 

And the idea or the possible choices is to use that address in flow or send the picture directly form powerapp whatever is easier.

 

Regards

 

 

Hi @sajarac :

Could you please show me the setting of "Upload file from URL" action?

Could you please show me the formula in your app?

Best Regards,

Bof

sajarac
Kudo Kingpin
Kudo Kingpin

Hi, the address is for the meantime hardcore but it will replaced with and address from my JSON 

 

sajarac_0-1619179189289.png

sajarac_1-1619179250815.png

 

sajarac_2-1619179274930.png

 

 

Hi @sajarac :

Please remove the quotation marks on both sides of the URL

1.PNG2.PNG

Best Regards,

Bof

Good morning.

 

Thanks again for your response, unfortunately still not working.

sajarac_0-1619438035884.pngsajarac_1-1619438068812.png

 

 

 

Hi @sajarac :

The formula is wrong.

1.PNG

If you just need to simply test whether this action can work, please use the complete URL  (do not use any formula or variables)

If the variables come from your canvas App, please test step by step according to the solution I provided at the beginning.

Best Regards,

Bof

sajarac
Kudo Kingpin
Kudo Kingpin

Good morning, you are absolutely correct. The formula is fine. 🙂

 

If you don't mine one more question? How can I insert the map into my "Send an email" step? I don't see any option available.

 

Sorry, and thanks again for your help.

 

Regards,

Hi @sajarac :

Yes. I've made a test for your reference:

1.PNG2.PNG

If my replay helps,please consider marking it as a "solution".

Best Regards,

Bof

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,278)