如何在将文档从源复制到目标时检索目标库/列表ID? [英] How to retrieve destination library/list Id while copying a document from source to destination?

查看:99
本文介绍了如何在将文档从源复制到目标时检索目标库/列表ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是visual studio for sharepoint托管应用的新工作流程。

I am new in workflow on visual studio for sharepoint hosted app.

目前,我正在努力必须将文件从源目录复制到目标目录的工作流。

Currently, I am working on a workflow which must copy a file from source to destination directory.

我正面临使用来自VS工具的CopyItem Activity将文件复制到目标的挑战,方法是在名为ToListId的属性中设置手动目标库ID VS工作流工具中名为CopyItem的活动。我的问题是如何动态获取目标库的ToListId

I am facing challenge using CopyItem Activity from VS tools to copy file to destination by setting manually destination library id in the property named ToListId of Activity named CopyItem in VS workflow tool. My question is how do I get dynamically ToListId of destination library.

祝你好运。

推荐答案

您好,

您可以在工作流程中创建变量然后在属性中分配变量,在获取库Id时,您只会获得变量中的值。

You can create a variable in the workflow and then assign the variable in the properties, when getting the library Id, you will only get the value in the variable instead.

谢谢

最好的问候


这篇关于如何在将文档从源复制到目标时检索目标库/列表ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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