Using Google Apps Script or a Google Sheets formula, How can I get the shared ID of an image that is stored in a Google Drive folder? - database

I am using Google AppsSheet as a front end to a small business Application I built for a friend using Google Sheets as the user interface, dashboard and database. The Sheet has a dashboard and mockup invoicing system that can display a signature image at the bottom of the invoice that was captured using AppSheet. The filename of the signature is stored in a column as well as all of the other invoice data. On the invoice page, I have a dropdown list of customers and after selecting the customer I click a button that runs a script to populate the invoice with all of the customer data. For the Signature, I am using the Google Sheets formula " =IMAGE("https://drive.google.com/open?id=" & CELL W/IMAGE ID) " to display the captured image on the Google drive. This part works fine BUT only if I use the ID of the image, not the Filename of the image. If have to manually add the image ID, this defeats the automation aspect and I can not expect my buddy to figure that out for every image...
Finally the Question:
Since I have the file name of the image, I would like to get the ID of the image to save in a new column for the recall of the signature Image at the bottom of the invoice page. Then he can export the invoice as a PDF and send to the customer.
Is this possible or is there another way to accomplish displaying an image in Google Sheets using the Filename of an image stored in a Google Drive folder?
I'm a noob and have accomplished a lot using stackOverflow as my main coding reference. I applaud all who contribute to helping us noobs out. Thanks in advance!
I have searched all over google and tried using .getId(), getFilesByName() then trying to get the ID.... As I mentioned before... I am a noob and still wrapping my head around how Objects and Methods work together and trying to visualize the relationships between all of the moving parts. Any good resources for explaining all of this would be helpful as well... Thanks.

Related

How to make a nextjs component embeddable

I'm working on a project in nextjs in which I have created a dashboard in which users can manage their websites in groups, after this i have extracted data from the websites and the data is indexed in meilisearch for adding the search functionality, now I have done all the thing.
now i want that the script of my search component that i have made in nextjs which is getting data from meilisearch and show that script in text area of my websites so users can copy and paste in their websites to have the search functionality and have the same result like i am getting in my websites, how can i do that.
enter image description here
as you can see i have input box where i am searching and git the results now i want to generate a script of the search component to be show in the above text boxes so users can copy and paste it in their own websites and they should get the same results as i am getting here.

How to bulk upload pdf from Google Sheet, inserting links next to rows?

I have a lot of pdfs generated from a google sheet (pulled keywords from google sheet to create personalized pdf) - I need to have a google drive link (view only) next to a row with relevant information used to create that specific pdf.
There is a tool called Dropspread but it only works with 1 link at a time (https://workspace.google.com/marketplace/app/dropspread/1038626361348)
Please help, I would really appreciate it.
You can add files in bulk to Google Sheets with the FileDrop add-on https://workspace.google.com/marketplace/app/filedrop/223672111812.
You select the cells and add the files to the upload area, FileDrop will automatically upload the files in Drive and add them to the cells with a link. Adding one file at a time is free but adding files in bulk with the add-on is a paid feature.
A quick video here https://www.youtube.com/watch?v=GZasNAPkE9Q

Where to get a web graph with corresponding web pages dataset

I'm trying to implement PageRank algorithm on a set of web pages, for that I need a sample dataset of web pages, and the web graph corresponding to them, this web graph represents the links between the pages that the data set contains.
I need the web graph so I can get the transition matrix and do the calculation needed. Example:
URL1 -> URL2
URL3390 -> URL5
URLxxxx is an id, somehow mapped to the corresponding web page
My question is: how/where can I get this resource (I've tried many links on the internet but nothing really helps), I would also like it to be not of a very large size, (internet connection limitation), if I can't have this as it is, could sou give me some advice on what I should do?
Update: for people who may consider this off topic, and they may be right, networks like Software Recommendation or on Computer Science, don't even have corresponding tags, and doesn't really fit the kind of this question, I appreciate your help.
May be Site Visualizer is the tool you're looking for. The app has the feature to generate visual sitemap.
Download and install the app (Standard or Pro version), click Create new project toolbutton, type the URL of the website you need to crawl, and then click Start button.
After the crawling is finished, click Draw button on the Visual Sitemap tab. Graph of the website will be drawn as a set of pages (rectangles) and links (lines with arrows). Click on a box to select the certain page and highlight its outbound links:
Dataset of all links of the website you can get by using All Links report (on the Reports tab). 'From URL' and 'To URL' columns are what you need.
Besides of that, you can represent a dataset of pages or links of the crawled website by using your particular SQL query. For instance, go to the Database tab, type the following query and click Execute toolbutton:
SELECT * FROM links WHERE link_type='A'
The resultset will contain only A-tag links, excluding images, CSS files, JS, etc.
The program has full-featured 30-days trial period, so you can carry out your tasks for free.
you might try searching for datasets used in supplementary information for PageRank papers. Here's an example:
this paper: http://langvillea.people.cofc.edu/ReorderingPageRank.pdf
uses this dataset:
http://www.cs.cornell.edu/Courses/cs685/2002fa/data/gr0.California
which supposedly contains 9,664 nodes and 16,773 links. The links are at the end of the file and appear to be in a connection format similar to what you're looking for.
from this page (which also has other datasets):
http://www.cs.cornell.edu/Courses/cs685/2002fa/
here's a few other pages that aggregate network datasets:
http://snap.stanford.edu/data/, see particularly
http://snap.stanford.edu/data/web-Stanford.html
http://www.datawrangling.com/some-datasets-available-on-the-web
http://networkdata.ics.uci.edu/resources.php
good luck!

creating a custom database in adobe business catalyst?

I want to create a custom database within Adobe Business Catalyst. I have an Excel Spreadsheet with 1000's of rows of data that I want to upload.
Does anyone know how I can do this or where I can find instructions on how to do this as I cant seem to find anything anywhere???
What you need to use is the Web Apps module. You haven't told us what you want to do with this data but I assume that you simply want to render it on the page. Web apps will allow you to crate a custom field for every column in your spreadsheet and import that spreadsheet into it. It has a list view which creates an automatic link to a detail view. See the following link for more info -
http://kb.worldsecuresystems.com/kb/add-custom-content-using-web.html

Possible to SQL Server database drive a Google Map by UK postcode?

We have a property/accommodation profile page that lists a property address including postcode. This information is stored in a SQL Server database table and the page has a recordset that allows us to feed profile information onto a page depending on the propertyID that is selected (either via link or using a form) by the user.
We created a field in the database table that would allow us to insert the Google Map embed code for a property and, subsequently, we'd then call that on the property profile page but this requires us to create the embed code in Google Maps first, have to paste that into our database field etc, before it would display a map on our page.
So...we would like to database drive the map based on the postcode. Is that possible?
We really don't want to have to get into longitude/latitude coordinates, we just want the map to identify the postcode and put a place marker on a map where that postcode appears.
How do we acheive this? We've tried looking through the documentation and help files, but we really don't know what we're asking for so finding answers is proving incredibly difficult or the answers that we've found seem extremely technical (Google API, Geocoding, etc) for what we're trying to acheive.
Could someone point us in the right direction?
We hoped that there would be some way of inserting the postcode, dynamically, into generic embed code from Google Maps and that Google Maps would do the rest.
Anyway, we would appreciate any help and advice that could be offered. Thank you.
Regards
NJ
Traditionally Postcode data in the UK costs lots of money.
You can now download the Ordnance Survey data and convert their data into Latitude and longitude which would let you plot coordinates on google maps. (http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/index.html)

Resources