Code Assist MCP for Microsoft Dynamics CRM

Build 25.0.9540

SetState

Sets the state and status of a record. The StateCode and StatusCode values can be either names (e.g., 'Won') or numeric codes (e.g., '1'), depending on the UseNameForPicklistValue connection property.

Stored Procedure-Specific Information

To execute this procedure, enter:
EXEC SetState Table = 'Opportunity', Id = '00000000-0000-0000-0000-000000000001', StateCode = 'Won', StatusCode = 'Won'

Input

Name Type Description
Table String テーブルの名前。
Id String 状態を変更するアイテムのId。
StateCode String アイテムの新しい状態コード。値は、Dynamics CRMのオブジェクトの有効な状態コードでなければなりません。
StatusCode String アイテムの新しいステータスコード。値は、Dynamics CRMのオブジェクトの有効なステータスコードでなければなりません。

Result Set Columns

Name Type Description
Success String このフィールドは、オブジェクトの状態コードとステータスコードが更新された場合はtrue、そうでない場合はfalseです。

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540