Sharepoint list related to another sharepoint list - list

Is it possible to attach details from one sharepoint list to another like vlookup in excel? For example if I type unique index in one field, all details will be import from another sharepoint list. Any ideas how to do that? Can't find any solution.

You could use lookup column in the SharePoint list.
Reference: How to create a Lookup column in SharePoint

Sharepoint lists are not linkable like tables in relative databases. You could write a webpart or script or something else to 'connect' them.
You can use the APIs to get their contents and write a function which processes the contents. After processing you could use another API to write the results in another SharePoint List.
GET List_1 Data
GET List_2 Data
Process(List_1_data, List_2_data)
POST result to List_n

Related

SFMC - How do you query a LIST?

I want to query a LIST inside Marketing cloud, and then use Automation Studio to send subscribers from that list to a Data Extension.
But I don't see a method of querying a custom list?
The list is stored under "Subscribers > MyList".
MYList Screenshot
The _ListSubscribers data view contains subscribers associated with all lists. You'll need to narrow it down by ListID.
You'll find the ID of the List in its properties.
All lists share Profile Attribute values, which can be found in the _EnterpriseAttribute data view. You can relate that back to _ListSubscribers using the SubscriberID.

How Join two list in SharePoint

I want have created Wikipage on my subsite in SharePoint 2013 online, I want to add two dependent dropdowns on my website... for that I have created two lists in my SharePoint subsite. How to link one List to another list... Just like SQL table PK-FK relationship.
List 1:
List 2:
Just join two lists:
Create lookup column refer to category list.
For Cascade Dropdown, you could use SPCascadeDropdowns.
https://www.c-sharpcorner.com/article/cascading-of-lookup-dropdown-fields-on-sharepoint-2013-and-o/
For inner join query(need lookup column).
https://social.msdn.microsoft.com/Forums/office/en-US/789d7f23-12ae-4454-a37b-e69580c9284d/caml-inner-join-in-javascript?forum=sharepointdevelopment
Actually I am not quite clear about what you are saying - may be you may handle this through the lookup column mapping between two lists.... in SharePoint list relationship is maintained by lookup column/list.
And if you are looking for connected list view webparts in SharePoint online you may go through the below article :
https://global-sharepoint.com/2019/08/18/connected-web-parts-in-sharepoint-online/

Unique Column in WSS 3.0 List

I am trying to implement a feature in a list from WSS3.0.
Basically I have a list and I want to add items to the list but I want to check first if there is already any item with the same value in a specific column.
I have a column named "My Key Field" and I want the values in this field to be unique. So, for example, if I have a record in the list where "My Key Field=65 210" I should not be able to add a new item when a users inserts the same value for the "My Key Field".
Any ideas on how to do this? A simple solution would be great considering my lack of skills concerning to Sharepoint programming....but I am flexible and I can learn.
Thanks for your attention!
Regards,
Aganju
The SPServices library has a method for this, called SPRequireUnique. It relies on SharePoint Web services.
For the record, you get this feature out of the box in SP 2010.

Filter external list fields from client

BACKGROUND:
We’re developing a custom application which access SharePoint through the Client Object Model and this application need to access ECT (external content type) lists defined in SharePoint using the OM (Object Model). This application is a product that should be usable with most SharePoint installations and configuration and cannot have prior knowledge of External Lists.
When there are no filters set up for the ECT, SharePoint returns all the available items in the list (given the number is below the threshold). The moment we define a filter for this ECT, SharePoint return only the items after this filter is applied (probably correct behaviour from SP).
PROBLEM:
We need to be able to search this ECT list (non-filtered) based on text entered by a user in a search box. At the moment there seem to be no way to change the filter SharePoint applied when returning the values to the calling object.
I.e. I have 10 items in my ECT list (1,2,3…10). Each Item has 3 columns (ID, Name, Description). After setting up a filter for the ECT list, SharePoint return items 2, 3 & 6 when I ask SharePoint for a list of items.
No the user does a search the matches the description of item 7. How can I search/filter the list to return the item that match my search query?
I’ve been running in circles trying to solve this, but nothing seem to work. I tried setting the CAML query as well as the LoadQuery as defined in both http://pholpar.wordpress.com/2011/02/09/how-to-query-external-lists-on-the-client-side-using-caml/ and http://msdn.microsoft.com/en-us/library/ff464384.aspx but nothing seem to work.
Even I had this problem. Let me tell you there is no way of doing this.
Even in Server object model, there was an option to change the filters of the default view but then the SPList will return 0 items once the filter is applied.
The funny part is once your code runs & you open the list in SP UI, you can see the actual modified list. But the same cannot be queries in the object model.
Looks strange. I guess if you modify the SPList (ECT based) in this instance, then you can only get results in the next instance (like in next page refresh.....)

How to link a SharePoint list with a Word form?

I want to store Word forms into a library and then use them to populate with data from a SharePoint list. Push data from the list to the forms, by selecting one of them.
Has anyone do it? is there a simple way?
This sounds like a mail merge kind of operation. Mail merge does not work with datasources with a HTTP path. The workaround to this is to map the document library as a network drive. When performing mail merge in Word, you would then select the drive as the source.
See Q 14 in this link for more info
[]: http://support.microsoft.com/kb/826838
Each list can only (I think) 1 form that is used as the template document.
Make secondary lists for each Word form.
If you have a primary input list, then a workflow that recreates a list copy in the secondary list as per the required form.
This should force the secondary lists to populate data onto the form as per each type, then save the form back to your primary list.
A bit out of the way, but should be able to be done.
You can use word (2007/2010) quick parts to pull metadata from SharePoint, but it works only if you use document library and not a list.