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