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

  • Verified answer
    Bipin D365 Profile Picture
    28,961 Moderator on at
    RE: How to convert Entity Image Byte Data to Base 64 Workflow MSCRM

    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/

  • Verified answer
    Bipin D365 Profile Picture
    28,961 Moderator on at
    RE: How to convert Entity Image Byte Data to Base 64 Workflow MSCRM

    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/

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,140 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,895 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans