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)

Create Inactive record

(0) ShareShare
ReportReport
Posted on by 175

Is there a way to create inactive record programatically ?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    You can try to pass statecode/statuscode along with the list of other fields. If this wouldn't work - deactivate it immediately after creation.

  • LBA Profile Picture
    175 on at

    I tried to add status value along with other fields but it is not taking and I am bulk creating the records :(

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Then I will suggest you a small trick

    1. Add some flag field to entity and import it along with entity - it will mean that record should be deactivated after creation.

    2. Add Real-Time workflow that will trigger on Create of record, check flag field from step 1 and then deactivate record.

    Simple, fast and does what you want.

  • LBA Profile Picture
    175 on at

    Hey Andrew,

    I have created a active record and updated the status so I am sorted :)

    Thanks

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