cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Pen input save image to CRM field

In CRM, I have created one multiline text filed and I changed the control of the same to pen control.

test1.png

 

 

 

 

 

 

 

 

Now I need to set value for this field using PowerApps. How we can achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Pen input save image to CRM field

Hi @Bharath_v ,

Do you list all your CRM Entity records using Gallery?

 

I assume that you add a Gallery control in your app to list all your CRM Entity records, please add a Image control in your app, set the Image control to following:

Substitute(ThisItem.'Multi-Line Text Field', """", "")

then the saved pen input image would be displayed within the Image control.

 

If you want to display the Pen Input image within the Display form, please consider unlock the Multi-Line Text Field data card, then remove the original Label control, instead, add a Image control within it, set the Image property to following:

Substitute(ThisItem.'Multi-Line Text Field', """", "")

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Pen input save image to CRM field

Hi @Bharath_v ,

Could you please share a bit more about your sceario?

Do you want to save Pen Input image back to the Multiple Text filed in your CRM Entity?

Further, do you embed a canvas app into your CRM form or create a Model-Driven app?

 

Based on the needs that you mentioned, I think you embedded a canvas app into your CRM Form, and you want to save image data captured via Pen Input control into this Multiple-Line Text field, is it true?

I have made a test on my side, please consider take a try with the following workaround:

Firstly, you need to Max length property of the Multiple Line Text field in your Entity to a proper large value, e.g. 10000.11.JPG

Then refresh the Entity data source within your app manually. After that, take a try with the following steps:

1. Edit your embedded canvas app, go to the Edit screen.

2. Unlock the Multiple-Line Text filed data card within the Edit form, and then remove the Orignal Text Input box, instead, add a Pen Input control.

3.Remove the formula within the Update property of the Multiple-Line Text field data card in your Edit form.

4. Set the OnSelect property of the "Submit" button to following:

Set(PenInputData, JSON(PenInput1.Image, JSONFormat.IncludeBinaryData));   /* <-- Add this formula */
SubmitForm(EditForm1)

5. Set the OnSuccess property of the Edit form to following:

Patch(
           'CRM Entity',
            EditForm1.LastSubmit,
            {
               'Mul-Line Text Field': PenInputData
            }
);
Set(PenInputData, Blank());
Back()

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Regular Visitor

Re: Pen input save image to CRM field

Thank you for your replay. 

 

Actually my scenario is, I need to capture signature using PowerApps and showing same in PowerApps itself.
 I tried the same what you mention in the above, in CRM the field got updated with the below data.

 

test2.png

 

but while viewing in Powerapps i didn't get exact signature what I capture previously.

Highlighted
Community Support
Community Support

Re: Pen input save image to CRM field

Hi @Bharath_v ,

Do you list all your CRM Entity records using Gallery?

 

I assume that you add a Gallery control in your app to list all your CRM Entity records, please add a Image control in your app, set the Image control to following:

Substitute(ThisItem.'Multi-Line Text Field', """", "")

then the saved pen input image would be displayed within the Image control.

 

If you want to display the Pen Input image within the Display form, please consider unlock the Multi-Line Text Field data card, then remove the original Label control, instead, add a Image control within it, set the Image property to following:

Substitute(ThisItem.'Multi-Line Text Field', """", "")

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Regular Visitor

Re: Pen input save image to CRM field

Thank you for your inputs. now it's working as expected.

Helpful resources

Announcements
secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (3,845)