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
What is the value of the 'Id' param you are sending to the 'Nonconformity Report' list, it should be 'Id' of the related item. Can you please check?
Sudharsan K here it is
- Sudharsan KApr 07, 2020Steel ContributorHi,
Can you try updating the item using the REST API. Use 'Send Http request to SharePoint' action.- Ghada MehrezApr 08, 2020Copper Contributor
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...