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).

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,516)