Hi All Virtual ,
I am facing some problem with my code can someone help me.
referring this blog:https://www.xrmlabs.com/About-Us/XRMs-Blog/Post/7215/How-to-convert-Entity-Image-Byte-Data-to-Base-64-Workflow-MSCRM
Thanks
Hi All Virtual ,
I am facing some problem with my code can someone help me.
referring this blog:https://www.xrmlabs.com/About-Us/XRMs-Blog/Post/7215/How-to-convert-Entity-Image-Byte-Data-to-Base-64-Workflow-MSCRM
Thanks
Hello,
Make sure you decorate your input parameters with correct attributes as per below code -
[RequiredArgument]
[Input("ImageFieldSchemaName")]
public InArgument<string> ImageFieldSchemaName { get; set; }
[RequiredArgument]
[Input("Base64dataField")]
public InArgument<string> Base64dataField { get; set; }
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
Hello,
You need to update your line of code with below code -
Entity PreImage = workflowContext.PreEntityImages.First().Value;
Also, update below code
ent = base64;
with
ent[Base64dataField.Get<string>(context)] = base64;
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
André Arnaud de Cal...
293,140
Super User 2025 Season 1
Martin Dráb
231,895
Most Valuable Professional
nmaenpaa
101,156
Moderator