【问题标题】:Exporting FileAttachment using Acumatica WebService使用 Acumatica WebService 导出 FileAttachment
【发布时间】:2018-02-28 12:56:11
【问题描述】:

我正在尝试为来自不同实例的案例获取活动,其中所有文件附件和注释都附加到活动中。我尝试过不同的方法,但不幸的是它们都没有奏效。谁能建议使用 Acumatica WebService 获取案例活动的所有文件附件和注释的最佳方法。

这是我尝试过的代码--

SP203010WS.Content content = context.GetSchema();
export = context.Export
(
	new SP203010WS.Command[]
	{
		new SP203010WS.Value
		{
			LinkedCommand = content.Case.CaseID,
			Value = currentCaseNo
		},

		content.Activities.Type,
		content.Activities.Summary,
		new SP203010WS.Field { FieldName="Body", ObjectName="Activities"},
		content.Activities.StartDate,
		content.Activities.CreatedBy,
		new SP203010WS.Field { FieldName="NoteID", ObjectName="Activities"},
		content.Activities.CreatedAt,
		new SP203010WS.Field
		{
			FieldName = content.Activities.ServiceCommands.Attachment.FieldName,
			Value = content.Activities.ServiceCommands.Attachment.Value,
			LinkedCommand = content.Activities.ServiceCommands.Attachment
		},
		new SP203010WS.Attachment
		{
			FieldName = content.Activities.ServiceCommands.Attachment.FieldName,
			Value = content.Activities.ServiceCommands.Attachment.Value
		},
		new SP203010WS.Value
		{
			FieldName = content.Activities.ServiceCommands.Attachment.FieldName,
			Value = content.Activities.ServiceCommands.Attachment.Value,
			LinkedCommand = content.Activities.ServiceCommands.Attachment
		},
	},
	new SP203010WS.Filter[]
	{
		new SP203010WS.Filter
		{
			Field = content.Activities.StartDate,
			Condition = SP203010WS.FilterCondition.Greater,
			Value = maxStartDate
		}
	},
	0, true, true
);

【问题讨论】:

  • 有什么建议吗?

标签: acumatica


【解决方案1】:

查看 I200(基于屏幕的 Web 服务)第 75-76 页的文档。首先,您必须获取文件名列表,然后遍历每个文件以获取实际附件。

【讨论】:

    猜你喜欢
    • 2017-07-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-14
    相关资源
    最近更新 更多