Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7954021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:18:01+00:00 2026-06-04T03:18:01+00:00

Whenever there is an update in any entity on CRM , only the updated

  • 0

Whenever there is an update in any entity on CRM , only the updated fields of that entity are passed to corresponding plugin in addition to its ID. i want to retrieve the entity with all the fields from CRM. It turns out that I can do that by using the following code

IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);

so when i retrieve the entity as follows

service.Retrieve(entity.LogicalName, entity.Id, cols);

it returns data type “Entity”. How can I change it to lets say contact or account.
if I use some thing like this

service.Retrieve(entity.LogicalName, entity.Id, cols).ToEntity<contact>()

…it does not recognize contact.

Any ideas??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:18:02+00:00Added an answer on June 4, 2026 at 3:18 am

    Use the following to read data from the entity:

    Entity e = service.Retrieve(entity.LogicalName, entity.Id, cols);
    var x = e[‘attribute_to_read’];

    You will have to type cast the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't want to change the java code whenever there is addition of tag
I have a gridivew with auto-generated fields, whenever there is a new set of
Is there any way to enable horizontal scroll-bar whenever necessary? The situation was as
Is there ASP button that won't submit post form data. Whenever I click an
I m building a website where i need to update project counter whenever its
I have an object that performs multiple calculations whenever any of is input values
Hi everyone I wish to update my camera preview whenever there is a change
I want to listen change in my legacy system whenever there is any change
There is a certain job that will insert and update this table called ContactInfo
Is there any sort of workaround for the bug that makes firefox flicker when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.