How do I automatically authorize app script in a merged doc - deployment

Im a newbie to App Scrips and have challenges with having to authorize my app script to run on each newly created document.
I run a merge with Sheet data in to a Doc template (using Autocrat) and have a script (in the template) that cleans up the merged doc - onopen. The problem is that I have to authorize the script in each newly created document.
The script will only be used by my partner and I. We share GDRIVE access.
Do I have to deploy as an Add-on? Web App? Shared Lib? If Shared Lib - how do I envoke it automatically in the newly created doc?
Any feedback/guidance is much appreciated. Thank you all.
I have tired to create a shared lib, but Im not sure how to automatically included the lib in the newly created document.
Is there a good learning tool/"how to" for this?

Related

How to upload the file on Anaplan without initial upload of file through user interface

I was trying to upload files onto the Anaplan platform using the REST API.So there was a note mentioned on the Anaplan.
To upload a file using the API that file must exist in Anaplan. If the file has not been previously uploaded, you must upload it initially using the Anaplan user interface. You can then carry out subsequent uploads of that file using the API.
So I was looking for any way to upload the file onto the Anaplan without going through the user interface. As the above statement in the Anaplan API page suggested that you need to upload through the user interface first. So is there any other way we can get away from that user interface part or not
The first upload is what helps you setup import actions within Anaplan. So, as the documentation states it is going to require some UI activity. Here is a community article to help you further:
https://community.anaplan.com/t5/Anaplan-Platform/Uploading-file-Via-REST-API-and-Triggering-Imports/td-p/51791

SharePoint 2013 Powershell - Moving Document Liobrary to New Site Collection

I am trying to move document libraries, from one site collection to another and retain of the metadata such as Modified By, Date Modified etc.
I have tried using the 'move' function within SharePoint 2013 Content and Structure but unfortunately this doesn't extend to across site collections.
I have tried multiple PowerShell scripts they successfully copy the file from one Site Collection to another but do not retain the metadata.
Any ideas, would be greatly appreciated.
Thanks.
have you tried saving the library as a template? You can mark the template to keep the contents.
Then you can deploy a new library from that template (Site actions / More options / Template name), and after that delete the template.
Additionally you can move it between servers. Go to the Site settings, there to the template gallery and download the template you just created. Now you can move it to another server or application.
Hope it helps.
Take a look at the SharePoint migration tools. Some of them offer free trials for limited amounts of data.

Visual studio unable to add swagger metadata file in my rest api client

I am new to mobile development. As i am familiar with c# .net so i am using xamarin plugin for visual studio. I have created a sample app in which i have used SQLite, created a DB and then performed CRUD operations. At this point all things are working good. But i already have a local DB and i want to use it. For this i have made an offline Azure api using swagger and on Release i have saved the files locally by using File System in release option in VS. Now i want to add my app as rest api client and want to use my local DB. But when i try to add as rest api client and then i select select an existing swagger file so while browsing i can't find any file. For reference please see the images bellow
So when i click browse and goto the location where i have saved my files for swagger i get nothing as shown in bellow image
Also it's finding the .json extension file which is not present in my publish api.
I don't know why it's happening, also as already told above i am new to mobile development i am not sure what to do. Kindly see the bellow image of my swagger UI
Any help would be highly appreciated
The URL you listed is for the user-friendly reference docs for your API; there should be a corresponding URL for the JSON definition endpoint for your API. Use this instead in the Add Rest API Client dialog in the "Swagger URL" option.
The other option is to use this peer URL to download the JSON description of your REST API into a local .json file and reference that when generating your client access classes.
For an example of these two endpoints, see https://msdn.microsoft.com/en-us/library/mt788315.aspx#Anchor_1.
Why you are using azure? I guess your are working in a company so they must have a server. Just publish your services on the server and then sync it with your mobile app and DB. This is the easiest and free way to do it. You can use Rest services for that

AEM | Difference between Live Copy and BluePrint

Please provide details about the difference between creating a live copies from blueprint and live copies directly(New-> New Live Copy) with scenarios/examples, in AEM
Blueprint: Is the basic structure created as a copy of existing site. Ex: We have a requirement to create a site with the same structure as Geometrixx site, we can create a Blueprint for the new site providing the Source Path attribute as Geometrixx site path.
Live Copy: Is  basically creating a new site based on the content and structure of an existing site or blueprint so that when changes are made in base/source site, it is automatically updated here.
i.e. Create a livecopy and enter the source page as “Geometrixx/Global/English”.
So any update to the ‘Geometrixx/Global/English’ page automatically updates the livecopy page.
Rollout: Using blueprint rollout feature we can push modifications to all it’s live copies simultaneously.

How to add workflow in Alfresco manually..?

I am working with Alfresco as Back-end and in alfresco some task done by executing workflow.Now my problem is I want to add workflow in alfresco manually but i don't know where to put workflow script so i will choose from work space ?
Following picture describes my problem :
I reached below point but don't know what to do further ?
According to above picture From where these bunch of files are came..?? OR At which location i will find these files in project workspace?
Login as admin in alfresco.
Navigate to Company home>Data dictionary>Scripts
You will be able to see all these files.
If you upload any of your js file then it will be automatically pickedup and addedinto this list.
You will find them in Company Home/Data Dictionary/Scripts.