Loading...

Can I create an INACTIVE record?

Can I create an INACTIVE record?

If you need to create an inactive record in a system, unfortunately you cannot do so in one shot. It requires two database transactions: one to create an active record and another to deactivate it. This is due to the fact that the StateCode attribute metadata shows the isValidforCreate as No, so it cannot be set in the create transaction. Additionally, if you attempt to set the StatusCode only, you will receive an error message because statecode=0 is set as default by the system, which invalidates the pair if you pass statuscode=2 in the create payload.

This blog post offers a solution to this issue.

It is important to note that this post originated from a Stack Overflow question.

Published on:

Learn more
Arun Vinoth @ Dynamics
Arun Vinoth @ Dynamics

Share post:

Related posts

Upgrade for the latest Microsoft Fluent Design System visual styling on Microsoft SharePoint

Microsoft SharePoint is getting an upgrade to the latest Fluent visual styling system. This may result in minor changes such as differences in...

1 year ago

Working with System & Public Views in Dataverse

If you're new to Dataverse and Dynamics 365 CRM, this article provides a comprehensive overview of the different types of views available in t...

1 year ago

Update to the Minimum iOS System Requirements for Outlook for iOS

If you're an Outlook for iOS user, it's essential to know that the app is only supported on the two most recent versions of iOS. When a new ve...

1 year ago

Announcing Public preview – System preferred multi-factor authentication method

Microsoft has come up with a new solution to the challenge of users selecting different authentication methods for varying levels of security....

2 years ago

Eduardo Maltez: Full-system testing using Selenium - Episode 224

In this episode, Eduardo Maltez, a Software Engineer at Clear Measure, discusses full-system testing using Selenium. With extensive experience...

2 years ago

What is it that I can edit but can’t see as a system administrator?

Have you ever wondered what you can edit as a system administrator in a particular environment but can't see? It turns out that there's an ans...

2 years ago

Azure SQL Database: Non-blocking transactions | Azure Friday

This video highlights the importance of efficient management of concurrent access to a resource in Azure SQL database, especially when multipl...

2 years ago

Power Apps Ticketing System With Sentiment Analysis

In this video tutorial, you'll learn how to build a ticketing system using Power Apps and Microsoft Cognitive Services. The system is equipped...

3 years ago

Time of Flight Camera – System Overview

The Azure Depth Platform program has recently featured guest blog authors Paul O’Sullivan and Nicolas Le Dortz introducing the Analog Devices ...

3 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy