Forum Discussion
Connect two SharePoint lists
- Apr 12, 2020
Hi Ghada Mehrez
Thanks for the additional explanation. If I am understanding you correctly, this should be fairly simple to do. I understand you to say that when an item is created in List A, then a task should be created in Task List B with a link back to the new item in List A, and also the RelatedTo field in that new item should be updated to contain a link to the new task in List B. Is that correct? If so, please see the following flow, which does that using basic actions.
Overview (trigger + 2 actions):
Detail of creating an item in the Task List, including a link to the new item which triggered the flow. You probably already figured out that the name of your task list must be entered manually as it's not listed by default under List Name.
Detail of updating the original item in List A to add a link to the task just created in the Task List. ID and Title are from the trigger item (When item is created), and RelatedTo is the Link to Item from the step just above (Create new item).
Does this do what you want...?
Sandy
Can you try updating the item using the REST API. Use 'Send Http request to SharePoint' action.
Sudharsan K Thanks a lot but I'm beginner in use Microsoft Flow could you please guide me how to do this action
do you mean this action:
- Sudharsan KApr 08, 2020Steel ContributorHi,
No problem, please refer the below link for a detailed explanation on using SharePoint REST API using Power Automate
https://www.chakkaradeep.com/2018/05/16/working-with-the-sharepoint-send-http-request-flow-action/
Below is a link to REST API in SharePoint and its details
https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest
Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...- Ghada MehrezApr 12, 2020Copper Contributor
Sudharsan K Thanks a lot I tried to track your suggested method but it seems I don't have HTTP in my company package we need tp upgrade in addition I cannot understand how this can help in my case.
I'm stacked in this for weeks, please your support I need to add flow to do following:
1- When Non conformity Created in List A it creates anew Task in List B and attche link to list A in the related to field so the user can back easily to List A. (This flow work fine with me)
2- When the new item saved in list A, update the item prosperities related to field to get the link to List B new item.
Note: Every Non Conformity has one Task and the objectives fro related to link is to navigate easily between List A and List B Items.
- Sandy UssiaApr 12, 2020MVP
Hi Ghada Mehrez
Thanks for the additional explanation. If I am understanding you correctly, this should be fairly simple to do. I understand you to say that when an item is created in List A, then a task should be created in Task List B with a link back to the new item in List A, and also the RelatedTo field in that new item should be updated to contain a link to the new task in List B. Is that correct? If so, please see the following flow, which does that using basic actions.
Overview (trigger + 2 actions):
Detail of creating an item in the Task List, including a link to the new item which triggered the flow. You probably already figured out that the name of your task list must be entered manually as it's not listed by default under List Name.
Detail of updating the original item in List A to add a link to the task just created in the Task List. ID and Title are from the trigger item (When item is created), and RelatedTo is the Link to Item from the step just above (Create new item).
Does this do what you want...?
Sandy