0
エンティティですでに作成されている属性を変更したいのですが、そのようなタイプの変更は、マイクロソフトの動的crmで行うことが可能です。4.0エンティティでエンティティと属性を作成しましたが、作成した属性を変更したいのですがどうすればよいですか?
エンティティですでに作成されている属性を変更したいのですが、そのようなタイプの変更は、マイクロソフトの動的crmで行うことが可能です。4.0エンティティでエンティティと属性を作成しましたが、作成した属性を変更したいのですがどうすればよいですか?
質問は少し曖昧ですが、属性または属性タイプの値を更新しますか? SDKドキュメントの更新例を示します。重要なことは、主キーの設定です。
// Set up the CRM Service.
CrmAuthenticationToken token = new CrmAuthenticationToken();
// You can use enums.cs from the SDK\Helpers folder to get the enumeration for Active Directory authentication.
token.AuthenticationType = 0;
token.OrganizationName = "AdventureWorksCycle";
CrmService service = new CrmService();
service.Url = "http://<servername>:<port>/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the contact object.
contact contact = new contact();
// The contactid is a key that references the ID of the contact to be updated. !Important.
contact.contactid = new Key();
// The contactid.Value is the GUID of the record to be changed.
contact.contactid.Value = new Guid("4D507FFE-ED25-447B-80DE-00AE3EB18B84");
// Set the contact object properties to be updated.
contact.address1_line1 = "34 Market St.";
// Update the contact.
service.Update(contact);