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

Announcements

No record found.

News and Announcements icon
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,985 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,985 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans