SharePoint 2019 - Create OAuth Request Within Display Template To Request An Image From Another Site Collection - sharepoint

We have a SharePoint 2019 environment with one publishing site and multiple authoring sites, we have pages on the publishing site that use the Content Query Web Part to return a document and it's metadata from whichever authoring site is requested.
We are running into issue with having the preview images for these documents displaying on the Publishing site due to issues with Auth0. We are looking to include code in our display template to request the image via OAuth/Low-Trust SharePoint Add-in, but are unsure how to go about doing to.
Currently the line within the display template that requests/renders the image is:
var pictureMarkup = "";

Related

How to push a SP list item to another SP list in a different site collection

I have a SharePoint 2010 list on an external site for contractors to submit their applications. Currently, it uses an Infopath form and sends applications through emails with a XML version of Infopath form as attachment. My coworker then copies and pastes the application fields to a separate SP list on our internal site (SP 2016), where we track progresses. This is a tedious/intensive process. So, we would like to automate the process where we want push new applications (SP list items) to the SP list on the internal site. How do I do that or do you have any alternative recommendations?
Here could be some useful information:
Custom code is not allowed as IT has locked it down
Form was created with Infopath
Workflows are not allowed on the external site
Both sites are in different site collections
REST/SOAP services are locked down
No access to SharePoint Designer
After we make changes to the internal SP list, we do not need to reflect the changes on our external site
XML version of the Infopath form is emailed to us (can we make use of the XML file?)
We are using Windows 7; external site is using SP 2010 and internal site is using SP 2016
Thank you everyone!
I believe in your existing infopath form which is hosted in external SharePoint 2010 has data connection - now you can change the data connection file URL which will point to your new SharePoint 2016 site - then your existing external form will continue to work without changing anything. We have implemented using the same approach it worked.
If the above does not work for you, you may convert that infopath form into Nintex live for external access as you have mentioned above - you have lot of limitation for other approaches.

Microsoft Teams custom website tab retrieve information about the Team and corresponding SharePoint site

I'm looking for a way to access the corresponding Microsoft Team and SharePoint site that is created from a custom website tab. So what I have is a custom website tab added to a Microsoft Teams site. This tab is a website tab and is pointing to the custom website app that I'm building.
What I want to do is from within the custom website I want to be able to access the corresponding SharePoint site that was created from the Microsoft Team and then I want to be able to use the SharePoint client object model to interact with the document library.
You'd have to have your tab / web app provide an auth flow, and ask your user to grant access to the Graph APIs, which can be used to access that content.

Cloned SharePoint Environment on Test Server - Pages Appear in Document Libraries but SharePoint Says They are Deleted

I have created a test SharePoint server to be as close to our production server as possible. Production SharePoint databases were backed up and restored to our test server. The three main web.configs (Central Admin, main site, Security Token Service Application) were modified to include our custom app settings.
The site comes up fine, logging in using both AD and our custom FBA membership provider works as well.
Certain pages are visible in the Site Libraries through View All Site Content and using SharePoint Designer but SharePoint says that the page(s) are not found if you try to view them or check them in. Not all pages are not available. If I delete a bad page and replace it with a copy from our production application, it displays fine.
I've already found and tried possible solutions such as restarting the Search Query and Site Settings Service and checking the Alternate Access Mapping. I also found a possible solution that has you go to Component Services and modify security relative to an OSearch14 property. I was not able to modify this since right clicking on the property did not pop up any menu options. I will continue to look into this.
Any Ideas? I appreciate any help.
Thanks.

Adding a Custom Webpart to a Site Template in Sharepoint 2010

I tried to add a custom created webpart to a customized team site which I then saved as a template. The webpart in question worked fine with the original site. However, when I created a new site based on this template(within the same server that the webpart in question was deployed to) the area which was supposed to contain the webpart was blank. Is there anything I'm missing or is it not possible to deploy a custom webpart into a custom site template?
Just guessing here because I haven't tried it but when you add a webpart to the page you are essentially customizing that page for that specific site. The webpart location is stored in the content database just for that individual page.
When you save a site as a template you are just saving the structure so when you provision a new site the customized page isn't there.

add custome template in sharepoint site

I have a dotnet implemented site. I want to create same site template in sharepoint. what i have to do. Please if possible tell me detail steps. waiting for reply......its too urgent
Custom Site Template is a big subject on SharePoint . While there is no out of the box way to convert an ASP.NET Site to the SharePoint Custom Site Template.
Steps to do is to dissect the ASP.NET Site to various parts.
User Controls
CSS & JavaScripts
Pages
Custom dlls
Change each of the Parts to Web Parts / Drop the Control in the Control Templates folder.Create a new web part page for the page / Page Layout & Master Pages deployed as the Features.

Resources