在O365中,当新项目添加到列表中时,如何调用webservice或创建taxanomy? [英] In O365,How to Call webservice or create taxanomy when new item is added to the list?

查看:89
本文介绍了在O365中,当新项目添加到列表中时,如何调用webservice或创建taxanomy?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据要求,我必须在分类标准下创建条款 将新项目添加到列表时设置的术语。


这些术语是创建项目中的列表项目字段数据。


我有一个web.vice for this.if我提供一个术语作为输入。它将在taxanomy termset下创建一个术语。


现在让我知道在O365中将项目添加到列表后如何调用此Web服务。


或者让我知道是否有  更好/更有效的方法来执行此任务。


我对远程事件接收器和Web作业一无所知。如果有可能,请提供一步一步的方法。

解决方案

您好


您可以将Web服务自定义为OData服务,这样您就可以创建列表工作流,创建项目时,触发工作流程并在工作流程中调用自定义服务。


您可以查看以下官方链接了解更多详情。


https://docs.microsoft.com/en-us/sharepoint/dev/general-development/working-with-web- services-in-sharepoint-workflows-using-sharepoint-designer


为SharePoint在线列表创建工作流程。


https://www.c-sharpcorner.com/article/create-and-publish-designer-workflows-to-sharepoint-online-from-local-machine/


否则,您需要通过SharePoint加载项解决方案创建远程事件接收器。


https: //docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/create-a-remote-event-receiver-in-sharepoint-add-ins


最好的问候,



As per the requirement, I have to create a terms under taxonomy  term set when a new item is added to the list.

These terms are the list item field data in the created item.

I have a webservice for this.if i provide a term as input. it will create a term under taxanomy termset.

Now let me know how to call this webservice after an item is added to the list in O365.

or let me know is there a better/efficient method to do this task.

I don't have an idea about Remote event receiver and web job.If its possible with it then provide the step by step approach.

解决方案

Hi,

You could custom your web service as OData service so you could create workflow for list, when an item created, trigger the workflow and call your custom service in workflow.

You could check below official link for more details.

https://docs.microsoft.com/en-us/sharepoint/dev/general-development/working-with-web-services-in-sharepoint-workflows-using-sharepoint-designer

Create workflow for SharePoint online list.

https://www.c-sharpcorner.com/article/create-and-publish-designer-workflows-to-sharepoint-online-from-local-machine/

Otherwise, you need create remote event receiver by SharePoint add-in solution.

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/create-a-remote-event-receiver-in-sharepoint-add-ins

Best Regards,

Lee


这篇关于在O365中,当新项目添加到列表中时,如何调用webservice或创建taxanomy?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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