cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Derek4
Resolver I
Resolver I

Capture picture file in Dataverse and upload to Word template

Hi everyone,

 

I'm building an approval flow which will generate a word template when it's approved, I use dataverse(CDS) to store the user and approver's input.

 

the problem is I have pictures in my flow (approver signatures) and when I run my flow it return an error shows the picture is not png or jpg. but everything is ok if I don't write the pictures to my word template.

 

this is how my flow looks like:

微信截图_20210608122350.png

微信截图_20210608124058.png

 

this this how I write the picture to my word template:

微信截图_20210608123359.png

 

this is the Dataverse(CDS) field I use to store the picture:

微信截图_20210608123553.png

 

 

this is the error details:

微信截图_20210608113033.png

微信截图_20210608124058.png

 

I'm sure that the picture is in jpg format. maybe it relates to the base64 format?

 

Can anyone help me on this?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Achavan ,

 

I refer to this post Solved: Issue with pulling a full and clarity image from c... - Power Platform Community (microsoft.... and modified it a little bit:

 

1. first I use the dataverse "download image" action, remember to set the Image size to "full";

2. Then I use data operation "Compose" action;

微信截图_20210609093526.png

the expression is:

 

outputs('Download_OIM_Signature')?['body/$content']

 

 

3. write the output of Compose action to the word template field (image).

View solution in original post

4 REPLIES 4
Achavan
Resolver II
Resolver II

Hi @Derek4 ,

 https://ankitapowerblog.wordpress.com/2020/12/20/populate-signature-in-word-document-using-cloud-flo...

hope this helps ! 

 

Did I answer your question? Please consider to mark my post as a solution to help others.

Hi @Achavan ,

 

your method works, but it does not get a full image, how can I modify it to get full image?

can you please show the image output you are getting ?

Hi @Achavan ,

 

I refer to this post Solved: Issue with pulling a full and clarity image from c... - Power Platform Community (microsoft.... and modified it a little bit:

 

1. first I use the dataverse "download image" action, remember to set the Image size to "full";

2. Then I use data operation "Compose" action;

微信截图_20210609093526.png

the expression is:

 

outputs('Download_OIM_Signature')?['body/$content']

 

 

3. write the output of Compose action to the word template field (image).

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,491)