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 :
Microsoft Dynamics CRM (Archived)

The type or namespace name 'DeleteRecordChangeHistoryRequest' could not be found ( are you missing a using directive or an assembly reference?)

(0) ShareShare
ReportReport
Posted on by 170

Hi,

I am using below namespace or assembly for using class 'DeleteRecordChangeHistoryRequest' but it is still showing me (The type or namespace name 'DeleteRecordChangeHistoryRequest' could not be found ( are you missing a using directive or an assembly reference?)). Please let me know what I am missing here? 

Namespace:
Microsoft.Crm.Sdk.Messages
Assembly:
Microsoft.Crm.Sdk.Proxy.dll

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Shidin Haridas Profile Picture
    3,499 on at

    1. Ensure that you are using the right version of the SDK.

    2. Try compiling in different .NET frameworks (4.6.1 and 4.5.2)

    3. Clean and recompile your code? 

    If my answer helps you, please mark it as verified to help the next person landing on this post.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    If I am not wrong, 'DeleteRecordChangeHistoryRequest' was introduced in  V9.0. So in order to use this, you need to have Dynamics 365 V9 and the relevant dll's for V9+.

    Hope this helps.

  • MSCRM learner Profile Picture
    170 on at

    Thanks for your response.

    But Microsoft.Crm.Sdk is available only up to version 7.1.0 in VS 2017 nuget packages. So How Can I install the same DLL with version 9.1? Please help me out.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    You can use Microsoft.Crm.Sdk.Proxy.dll . Refer below articles.

    docs.microsoft.com/.../microsoft.crm.sdk.messages.deleterecordchangehistoryrequest

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    I use "Microsoft.CrmSdk.CoreAssemblies" nuget packages which installs all required dlls. Refer this-

    nuget.png

    Hope this helps.

  • MSCRM learner Profile Picture
    170 on at

    Thanks for your reference.

    I am already using dll 'Microsoft.Crm.Sdk.Proxy.dll' but still it is showing me not found message for 'DeleteRecordChangeHistoryRequest'.

  • MSCRM learner Profile Picture
    170 on at

    I have already updated Microsoft.crmsdk.coreAssemblies to V9.0.2.5 and Microsoft.CrmSdk.Deployment to V9.0 but that is not helping me to get the class 'DeleteRecordChangeHistoryRequest'.

  • Suggested answer
    Shidin Haridas Profile Picture
    3,499 on at

    Make sure that you include 'Microsoft.Crm.Sdk.Messages' and have a version 9.0 of the Microsoft.Crm.Sdk.Proxy DLL

    Just verified this and it works.

    Ensure that you clean and then rebuild your solution.

    Let us know if you are still facing issues.

    If my answer helps you, please mark it as verified to help the next person landing on this post.

  • MSCRM learner Profile Picture
    170 on at

    3125.Capture.PNG

    Yes, I have included 'Microsoft.Crm.Sdk.Messages' but 'Microsoft.Crm.Sdk.Proxy DLL' showing version up to 7.1.0. In my visual studio 2017 enterprise, version 9.0 for 'Microsoft.Crm.Sdk.Proxy DLL' is not available.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    This is because you are using CRM 2015 version. Can you please use the one which I shared above and try it with that. As suggested above by all, this is related to mismatch and you need to include the v9 sdk.

    Hope this helps.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans