Start a new topic
Answered

Search Connector

I want to connect to SharePoint Search to show Latest and Popular documents from current site. Is there any help material/tutorial available?


Best Answer

Hi Muhammad,


ShortPoint fully supports SharePoint REST APIs including Search REST Queries, User Profiles and more.


These are few steps on how to create the new connection using SharePoint REST APIs:


Using SharePoint REST APIs to get Latest Documents


STEP 1: THE REST API


your_site_address/_api/lists/getbytitle('Document List Name')/items?$top=5&$orderby=Modified desc


Document List Name: Is the name the document list.

$top=5: To get only 5

$orderby=Modified: Sort the list by the modified date


STEP 2: Create New REST API Connection Type

Use any ShortPoint, open Connect Tab, Select REST API and the paste the API in the REST API URL box. Then click Connect

image


STEP 3: Map the results metadata (columns) with ShortPoint options


In this example, I only need to show document title and add the document link


image



STEP 4: Preview and Save

That's it :)


image


This is the document library, sorted by modified date


image



Hope this will help.


1 person has this question

Thank you Muhammad for your feedback.


#ServerRedirectedEmbedUrl is not returning the url of the document? Or it is returning the correct value but when mapped with link option in ShortPoint, it is not working?


>> it would be nice if all insertable properties comes in field selection dropdown.

can you please explain more?



I can show document library contents but link is not working. I have used #ServerRedirectedEmbedUrl in link, it would be nice if all insertable properties comes in field selection dropdown.

Answer

Hi Muhammad,


ShortPoint fully supports SharePoint REST APIs including Search REST Queries, User Profiles and more.


These are few steps on how to create the new connection using SharePoint REST APIs:


Using SharePoint REST APIs to get Latest Documents


STEP 1: THE REST API


your_site_address/_api/lists/getbytitle('Document List Name')/items?$top=5&$orderby=Modified desc


Document List Name: Is the name the document list.

$top=5: To get only 5

$orderby=Modified: Sort the list by the modified date


STEP 2: Create New REST API Connection Type

Use any ShortPoint, open Connect Tab, Select REST API and the paste the API in the REST API URL box. Then click Connect

image


STEP 3: Map the results metadata (columns) with ShortPoint options


In this example, I only need to show document title and add the document link


image



STEP 4: Preview and Save

That's it :)


image


This is the document library, sorted by modified date


image



Hope this will help.

Login or Signup to post a comment