From c0da07554741b542a30b70f66b5f558a95057455 Mon Sep 17 00:00:00 2001 From: Alexander Zekelin Date: Wed, 8 Jul 2026 11:15:38 +0200 Subject: [PATCH] docs: document special Dataverse type formats in data command --data (#63) --- .../Data/Bulk/EnvDataBulkCreateCliCommand.cs | 2 +- .../Data/Bulk/EnvDataBulkUpdateCliCommand.cs | 2 +- .../Data/Bulk/EnvDataBulkUpsertCliCommand.cs | 2 +- .../Data/Record/EnvDataRecordCreateCliCommand.cs | 2 +- .../Data/Record/EnvDataRecordUpdateCliCommand.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkCreateCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkCreateCliCommand.cs index c9cb2328..73877aac 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkCreateCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkCreateCliCommand.cs @@ -26,7 +26,7 @@ public class EnvDataBulkCreateCliCommand : ProfiledCliCommand [CliOption(Name = "--file", Description = "Path to a JSON file containing an array of records.", Required = false)] public string? File { get; set; } - [CliOption(Name = "--data", Description = "Inline JSON array of records.", Required = false)] + [CliOption(Name = "--data", Description = "Inline JSON array of records. Special column types: OptionSet as an integer (e.g. 375970000), Lookup as a GUID string or {Id,LogicalName} object, Money as a decimal (e.g. 1500.50), Boolean as true/false, DateTime as an ISO-8601 UTC string (e.g. 2026-05-01T00:00:00Z).", Required = false)] public string? Data { get; set; } protected override async Task ExecuteAsync() diff --git a/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpdateCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpdateCliCommand.cs index 36020d04..a7d7819e 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpdateCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpdateCliCommand.cs @@ -26,7 +26,7 @@ public class EnvDataBulkUpdateCliCommand : ProfiledCliCommand [CliOption(Name = "--file", Description = "Path to a JSON file containing an array of records.", Required = false)] public string? File { get; set; } - [CliOption(Name = "--data", Description = "Inline JSON array of records.", Required = false)] + [CliOption(Name = "--data", Description = "Inline JSON array of records. Special column types: OptionSet as an integer (e.g. 375970000), Lookup as a GUID string or {Id,LogicalName} object, Money as a decimal (e.g. 1500.50), Boolean as true/false, DateTime as an ISO-8601 UTC string (e.g. 2026-05-01T00:00:00Z).", Required = false)] public string? Data { get; set; } protected override async Task ExecuteAsync() diff --git a/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpsertCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpsertCliCommand.cs index df2df0a5..788d3122 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpsertCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Bulk/EnvDataBulkUpsertCliCommand.cs @@ -26,7 +26,7 @@ public class EnvDataBulkUpsertCliCommand : ProfiledCliCommand [CliOption(Name = "--file", Description = "Path to a JSON file containing an array of records.", Required = false)] public string? File { get; set; } - [CliOption(Name = "--data", Description = "Inline JSON array of records.", Required = false)] + [CliOption(Name = "--data", Description = "Inline JSON array of records. Special column types: OptionSet as an integer (e.g. 375970000), Lookup as a GUID string or {Id,LogicalName} object, Money as a decimal (e.g. 1500.50), Boolean as true/false, DateTime as an ISO-8601 UTC string (e.g. 2026-05-01T00:00:00Z).", Required = false)] public string? Data { get; set; } protected override async Task ExecuteAsync() diff --git a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordCreateCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordCreateCliCommand.cs index 33414c9e..56580d19 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordCreateCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordCreateCliCommand.cs @@ -24,7 +24,7 @@ public class EnvDataRecordCreateCliCommand : StagedCliCommand [CliOption(Name = "--entity", Description = "Entity logical name (e.g. account).", Required = true)] public string Entity { get; set; } = null!; - [CliOption(Name = "--data", Description = "Inline JSON object with record attributes.", Required = false)] + [CliOption(Name = "--data", Description = "Inline JSON object with record attributes. Special column types: OptionSet as an integer (e.g. 375970000), Lookup as a GUID string or {Id,LogicalName} object, Money as a decimal (e.g. 1500.50), Boolean as true/false, DateTime as an ISO-8601 UTC string (e.g. 2026-05-01T00:00:00Z).", Required = false)] public string? Data { get; set; } [CliOption(Name = "--file", Description = "Path to a JSON file containing record attributes.", Required = false)] diff --git a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUpdateCliCommand.cs b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUpdateCliCommand.cs index 56abe8db..ea4f2e3a 100644 --- a/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUpdateCliCommand.cs +++ b/src/TALXIS.CLI.Features.Environment/Data/Record/EnvDataRecordUpdateCliCommand.cs @@ -30,7 +30,7 @@ public class EnvDataRecordUpdateCliCommand : StagedCliCommand ValidationMessage = CliValidation.GuidValidationMessage)] public required Guid RecordId { get; set; } - [CliOption(Name = "--data", Description = "Inline JSON object with attributes to update.", Required = false)] + [CliOption(Name = "--data", Description = "Inline JSON object with attributes to update. Special column types: OptionSet as an integer (e.g. 375970000), Lookup as a GUID string or {Id,LogicalName} object, Money as a decimal (e.g. 1500.50), Boolean as true/false, DateTime as an ISO-8601 UTC string (e.g. 2026-05-01T00:00:00Z).", Required = false)] public string? Data { get; set; } [CliOption(Name = "--file", Description = "Path to a JSON file containing attributes to update.", Required = false)]