Pergunta

  1. I have two different sites in same site collection but two sites language is different

  2. I created two custom lists in both sites with same number of site columns and datatypes but display name of site columns are different according to language.

here i want when i create a new item in site1>customlist1 the same item should create in site2>customlist2

how can i do this either custom code or power shell

http://Web1/site1en/aboutus/Lists/customlist1/AllItems.aspx http://Web1/site1ar/aboutus/Lists/customlist1/AllItems.aspx

if i use event receiver is it required to deploy as farm solution? and it will work if two sub sites are in different language level

is there any other way just like one console application i can run one time to avoid any farm solution deployment?

Foi útil?

Solução

An event receiver would work, that would have to be a farm solution. If you have access to the server you could also do this by creating a scheduled PowerShell script that checks/updates the lists...

I would look into if a simple workflow could do the trick. As your target list is in another site you would have to update that using the SharePoint Rest API

Here is a similar question with some resources you can check out: Workflow copying a list item from one site to another site

Outras dicas

You could use the out of the box feature "Variations" to achieve this. This feature makes content available to specific audiences on different sites by syncing content from a source variation site to each target variation site.

You could refer to this article:

https://docs.microsoft.com/en-us/archive/blogs/sharepoint_quick_reads/sharepoint-2013-variations-creation-and-synchronization-of-content-between-source-and-target-sites

Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top