Skip to main content

Notifications

Community site session details

Community site session details

Session Id : nHR3DJFbTDqZVUvfmMGtWP
Power Apps - Microsoft Dataverse
Answered

Issue with pulling a full and clarity image from common data service using word online connector in flow

Like (0) ShareShare
ReportReport
Posted on 13 Sep 2020 01:42:28 by 139

Hello,

Facing issues with pulling a signature image from CDS as uploaded. It is only displaying a thumbnail of the image as shown in the screenshot (It is cropping the image on both left and right hand side and not clear enough either). I'm using the following step in the Microsoft flow for initializing signature variable and using it subsequently in the Populate a Microsoft Word template for image field.

 

{
"$content-type": "image/png",
"$content": @{body('Get_record:_entity_name')?['cre9a_test_signature']}
}

 

For time being, I added white space on either side of the image before uploading. This seems to display the image in full in the word document generated using flow. However, the image is not as clear as the original one.
Also, I tried with base 64 converter for the uploaded signature image, but still facing the same issue as it is picking up the thumbnail.

As a work around, I could think of adding a new column and update base 64 code of the original image before uploading the image and then convert it to image in the flow or use SharePoint list instead of CDS for storing the image. Though, I would like to follow the standard way of doing this.

Thanks,

Srinivas

Categories:
  • sthota Profile Picture
    139 on 26 Feb 2021 at 09:03:50
    Re: Issue with pulling a full and clarity image from common data service using word online connector in flow

    Hello @ChrisPiasecki @v-yutliu-msft ,


    I have created a flow from the scratch in solution and followed the same steps as you mentioned above. I have uploaded an image of type PNG. Also, I am able to parse the $content through 'base 64 to image' converter to get the same image for testing purposes. However, I am getting the error "The image is not of type PNG or JPG. Please provide an image of type PNG or JPG." while trying to add to a picture control in word through 'Populate a Microsoft Word template' step in a flow.

    Please find the attached screenshot for the same. It would be great if you can share your insights on this.

  • ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on 14 Sep 2020 at 16:47:57
    Re: Issue with pulling a full and clarity image from common data service using word online connector in flow

    Hi Sthota, 

     

    The Power Automated flow must be created from a CDS solution to use the CDS Current environment connector.

     

     

    Unfortunately you may need to recreate the flow from scratch as adding an existing flow into a solution that was created outside a solution will not have the cds current environment connector available. 

     

    Hope this helps. Feel free to mark one of my responses as an accepted answer if it did. 

     

    - Chris

     

     

  • sthota Profile Picture
    139 on 14 Sep 2020 at 16:04:03
    Re: Issue with pulling a full and clarity image from common data service using word online connector in flow

    @ChrisPiasecki

    Thanks for your solution. This is exactly what we are looking for. 
    @v-yutliu-msft  @ChrisPiasecki Unfortunately, we can see the connector when we start a new flow.  (Common Data Services (Current Environment)).  However- if we try to insert a new step into an existing flow, we no longer see that option to us, and we get an error like below if we try to copy the code into our flow. 

    Also, we tried to remove the power apps trigger and try to add When Power Virtual Agents calls a flow trigger without any luck.

    Thanks, 

    Srinivas

  • Verified answer
    v-yutliu-msft Profile Picture
    on 14 Sep 2020 at 11:34:31
    Re: Issue with pulling a full and clarity image from common data service using word online connector in flow

    Hi @sthota ,

    Do you want to increase picture pixel by getting image from CDS?

    I'm afraid there's no  standard solution in powerapps now.

    The picture pixel will be decreased automatically when pulling to powerapps.

    I think using flow is the best way.

    The solution that you tried and @ChrisPiasecki  provided are both ok.

     

    I suggest you submit an idea about increasing picture pixel when pulling from CDS here:

    https://powerapps.microsoft.com/en-us/support/pro/ticket/

     

     

    Best regards,

  • Verified answer
    ChrisPiasecki Profile Picture
    6,389 Most Valuable Professional on 14 Sep 2020 at 05:11:14
    Re: Issue with pulling a full and clarity image from common data service using word online connector in flow

    Hi sthota,

     

    You can use the Get file or image content CDS action to get the image type field. Ensure to specify an image size of 'full'. The output will be of binary type, so you can take the outputs('Get_file_or_image_content')?['body/$content'] into a compose action with the correct image/png type.

     

    fullimage1.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard

Featured topics

Loading started