web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add Peninput sketch to...
Power Apps
Answered

Add Peninput sketch to Dynamics 365 to entity image.

(0) ShareShare
ReportReport
Posted on by 13

Hi power users,

I am trying to add a pen input sketch from powerapps to dynamics 365 to a field entity image in crm. 

 

heres the code

Patch(Consent, Defaults(Consent),{ _slgc_contact_value:Gallery1.Selected.contactid,slgc_consenttosupport:1,slgc_consenttoactonbehalfwith:0,slgc_consenthavebeenexplainedproperly:1,slgc_consenttocommunicatewith:0,Signature:First(Sketches).Image).

]

After long struggle i found First(Sketches).Image wont work out . i need to submit base64 code of the image. Is theres any way that i can create a base64 code of the image or i am missing anything? Any help is highly appreciated.

 

Categories:
I have the same question (0)
  • Verified answer
    JensKofod Profile Picture
    on at

    The Short description on how to make this work is to save the pen input image in a JSON format asking the JSON function to include Binary Data:

    Set( PenVar, JSON( PenInput1.Image,JSONFormat.IncludeBinaryData ) );

    See here for details: https://iiu.dk/2019/10/12/powerapps-pen-input/

    Remember to add a white color to your pen-input as the default transparent color will display black in CDS/Dynamics entity image

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard