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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Mapping of Status and StatusReason fields in CRM

(0) ShareShare
ReportReport
Posted on by 795

Hi,

I want to have two integer columns in a database named as Status and StatusReason respectively. I want to map these values to state and statecode fields in contact entity so that when i import the data from database to CRM, these updated records gets modified and deactivates the contact record if statecode = 1 and statuscode = 2

Thanks,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Mapping of Status and StatusReason fields in CRM

    Statecode=0 and statuscode=1 for active contact and Statecode=1 and statuscode=2 for inactive contact.

    Hope it clear your doubt.

  • CRM Beginner  Profile Picture
    795 on at
    RE: Mapping of Status and StatusReason fields in CRM

    yes, i know this.. But basically what happends i need to deactivate the record automtically by mapping the fields.. So, i defined these mappings as integer type and saved the values in these columns in database.. then, it should have been mapped to CRM.. But, not working

  • Dynamics365 Rocker Profile Picture
    7,755 on at
    RE: Mapping of Status and StatusReason fields in CRM

    You mean to say, After data import Statuscode and statecode values are inactive but record is not inactive?

  • Verified answer
    CRM Beginner  Profile Picture
    795 on at
    RE: Mapping of Status and StatusReason fields in CRM

    No, i mean to say, after data import, it doesn't have any effect on status..It is still active

  • Suggested answer
    StefanS365 Profile Picture
    3,575 Most Valuable Professional on at
    RE: Mapping of Status and StatusReason fields in CRM

    Hi there,

    After import the records will be active first so you can't combine that with a "inactive" statuscode.

    So you need to import/set only the statecode, that's it.

    Quote: "One thing to note while importing records is that the status change will actually take place after record creation. "

    Source: [View:http://survivingcrm.com/2011/11/crm-2011-data-import-wizard-in-practice/:750:50]

    Hope it helps.

    Stefan

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans