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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to convert Entity Image Byte Data to Base 64 Workflow MSCRM

(0) ShareShare
ReportReport
Posted on by 45

Hi All Virtual ,

I am facing some problem with my code can someone help me.

pastedimage1642272674407v1.png

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

I have the same question (0)
  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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/

  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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/

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans