cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

image or photo in CDM Common Data Model

Hi all.

 

Trying to figure if i can add image or photo into a CDM field rather than through an excel file like in site locator template.

I managed to save a photo fields (id, photoid, ...) but seems like nothing goes into the image field.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: image or photo in CDM Common Data Model

Hello Julien,

Thank you for your feedback. In CDM you can create a field of type Image in the entity and then upload an image through an app. You could try app from data to upload an image to the entity. In future you will be able to bulk import images through the data import functionality. What is the size of image you are trying to upload?

View solution in original post

13 REPLIES 13
Highlighted
Power Apps
Power Apps

Re: image or photo in CDM Common Data Model

Hello Julien,

Thank you for your feedback. In CDM you can create a field of type Image in the entity and then upload an image through an app. You could try app from data to upload an image to the entity. In future you will be able to bulk import images through the data import functionality. What is the size of image you are trying to upload?

View solution in original post

Highlighted
Advocate II
Advocate II

Re: image or photo in CDM Common Data Model

For the size, no idea. It depend of the mobile camera i think so no idea at all.

Will check app from data to see if i got a solution or an alternative. Basicaly i'm trying to do the same as in the site locator template but on a CDM and not on an excel file.

Highlighted
Advocate II
Advocate II

Re: image or photo in CDM Common Data Model

Any ideas?

Highlighted
Advocate II
Advocate II

Re: image or photo in CDM Common Data Model

Ok achieved with your solution.

Just put a form and select your image datacard. Don't forget the requiered fields.

 

But it looks in fact i can't use patch fonction on CDM's entities. Maybe i got something wrong about patch and updatecontext commands because they work on excel files as supposed. Is that a normal behavior or something that will be patched later?

 

By the way does someone know how to get back the image files that get stored in entities? Should i put a savedata with the submit form.

 

 

 

Highlighted
Community Champion
Community Champion

Re: image or photo in CDM Common Data Model

Hi

 

Patch for text and images are the same.

Patch(Table1, Defaults(Table1), {Field1: TextInput1.Text, Field2: image1.image})

and for getting the the image in your gallery or image, as long as you include in the item, the required field, it will appear automatically.

Nothing special you need to do.

hpkeong
Highlighted
Advocate II
Advocate II

Re: image or photo in CDM Common Data Model

Well tried two days to adapt SiteLocator CameraPhotos multipatch from an excel file to a CDM, it never worked.

 

The other question that doesn't get answered is when i record an image into a CDM entitie where or how can i get a jpg/png (wathever) image file. When i open database in excel i just get the non image fields. How can i extract image from such a database?

Highlighted
Community Champion
Community Champion

Re: image or photo in CDM Common Data Model

Hi

 

As far as I know (and experience), we can view the images in our gallery / image.

However, you can find any path (even in exported Excel file from CDM).

This is different from using Excel in Cloud as Database as you can have the path of the images and images are stored in Image Folder automatically.

 

Hopefully PG has the idea on how to batch download images whenever you wish to.

I get to know that Images Batch upload is on the roadmap.

 

Hope this helps.

hpkeong
Highlighted
Power Apps
Power Apps

Re: image or photo in CDM Common Data Model

Batch import/export of images is in the roadmap.

Highlighted
Kudo Kingpin
Kudo Kingpin

Re: image or photo in CDM Common Data Model

After CDM upgrade few weeks ago, i am jnable to find Image datatype when creating a new record in a CDM Entity. what has happened?

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,865)