如何通过SPD工作流程在单个Web服务调用中更新多个记录 [英] How can I update multiple records in a single web service call from a SPD workflow

查看:82
本文介绍了如何通过SPD工作流程在单个Web服务调用中更新多个记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这个线程中,我们能够使用REST api GET检索满足特定条件的所有记录并对其进行计数

I this thread we were able to use a REST api GET to retrieve all of the records that met a certain criteria and count them

...在此线程中,我们遍历结果并使用从GET返回的记录ID使用传统更新列表项更新了这些项

... in this thread we looped through the results and updated the items with a tradition update list item using the record ID returned from the GET

Update multiple records in secondary list

但是,我真正想做的是修改字典变量,然后在单个Web服务调用中更新所有记录.尽管有大量有关获取和使用信息的信息.我一直很沮丧地尝试 查找有关修改字典变量中的值并将其作为更新提供给Web服务的信息.

However, what I really want to do is modify the dictionary variable then update all of the records in a single web service call. While there is a great deal of information about getting and consuming the information. I have been somewhat frustrated trying to find information about modifying the values in the dictionary variable and presenting it to the web service as an update.

几乎所有我能找到的东西都是C,JS等,这让我有点不理解.我正在尝试翻译,但没有成功.

Almost everything I have been able to find is C, JS, etc. and puts me a bit out of my depth. I am trying to translate but not succeeding.

推荐答案

嗨CharlesSchmidt,

要更新多个项目,我们可以使用肥皂网络服务 Lists.UpdateListItems 方法 .

To update multiple items, we can use soap web service Lists.UpdateListItems Method.

很难使用调用HTTP Web服务"来称为肥皂网络服务"由于它是HTTP RESTFul调用,而不是基于soap的Web服务调用. SOAP网站 服务使用  PUT HTTP方法.

It is difficult to use "Call HTTP Web Service" to call the soap web service" since it is a HTTP RESTFul call, not a soap based web service call. The SOAP web service uses the PUT HTTP method.

在SharePoint Designer工作流中,我们需要从字典并使用Loop逐一更新.

作为一种解决方法,我们可以构建Visual Studio 2010工作流程并使用

As a workaround, we can build a visual studio 2010 workflow and use Lists.UpdateListItems Method.

最好的问候,

Linda Zhang


这篇关于如何通过SPD工作流程在单个Web服务调用中更新多个记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆