Two days on and I'm ripping my hair out.
I need to upload hundreds of 'png' attachments into a table (i.e. not one by one to each account code) where they automatically find the relevant account code in the table by matching the account code to the attachment file name.
Alternatively I need to upload all the attachments to a single place and then have a search query that allocates these attachments to their specific account codes in a table.
I have been able to come up with a query that allocates ALL of the attachments to ALL of my relevant account codes but cannot allocate specific attachments using the data filename for reference to a specific account code.
I have also been able to create a form that shows the relevant attachment under the data filename but this will not open from this field when I double click it. When I open the attachment itself from the form it just gives the 'manage attachment' box showing every single attachment for me to select the one I want. This is of no use for my customer.
I'm sure it has to be simple but I have spent ages on this so can anyone please help.
Graham
Related
I am trying to create a log for all the PDIR reports that are generated in our company. For this purpose, I have written an apps script code that brings forth a format from our master sheet when a product part no. is typed. After filling in the information it allows the user to press the submit button that transfers this PDIR to a PDIR database where all the PDIRs are being stored. Now, what I want to do is, add a feature to the submit button that automatically creates a log for the PDIR report. I have attached the format here for reference. I want to find a way to extract the URL of a particular sheet and add the link in the log next to the invoice, so my employees do not have to waste time finding different invoices and can just search for the invoice no. and have a link ready to take them to it.
Long story short, I want to find a way to get a URL of a sheet from a different spreadsheet using apps script.
I'm trying to come up with a solution that will allow me to (1) pull data from Sheets for only ONE of the rows into a Gmail template and (2) allow for modifying the template with additional information that's not in the spreadsheet before sending it off.
Context: My organization uses an intake/referral log to track key information about referrals. Once info is in the Sheet, they manually send an email assigning the referral to an employee for follow-up. Much of the info in the Sheet is retyped...which initially made me think of automating this fully with AppsScript, so that all the standard info (case #, case type, due dates, etc) is included in that email. However, the emails sometimes have a paragraph or three of contextual information that we don't want to store in the spreadsheets and have pulled into the automated email.
So my goal is to pull the data from the spreadsheet into the email where I can (vs having to retype it) AND allow the addition of contextual info before sending it off to the assigned employee.
Any thoughts on how to accomplish this? I haven't found a mail merge add-on or Apps Script solution that allows doing this one row at a time and adding in extra custom info into the email.
Thanks in advance!
So this question, as currently written, could clearly be accomplished a whole bunch of different ways. With that in mind, here is one quick and dirty way in which it might be accomplished:
On the spreadsheet where the data is stored, create a script via tools>script editor.
Using that script, create a menu which runs a function that does the following, perhaps in an endless loop:
a. Prompt the user for the email address of where to send the email if it isn't in the spreadsheet or a token value, such as an empty string, to end the script.
b. Prompt the user for the number of the row where the info is stored.
c. Prompt the user for any extra contextual information to add to the email.
d. Get the info from the applicable row in the spreadsheet.
e. Create a nicely formatted email and send it off.
From there, the person in charge of doing the referrals would simply run the script and feed it the required information. Clearly human error could fowl things up here, but without more details of exactly how you want this to work, it isn't really possible to define exactly how to best protect against human error. Reading up on Data Validation might give you a start on that front.
And if you are still completely lost, I happen to be a Google Apps Script tutor/consultant who often gives away free tutoring/consulting. See tutoringbyroger.com for more on that.
I hope that helps.
I have historic data from an old directory that I successfully appended to a new form using a script. However, I want the members of the directory to be able to edit, review and upload additional data to their own record without creating duplicate records. I know forms can be editable after an individual submits it and obtain a link. But is it possible for an individual to edit their record if it was appended into the form?
I'm a beginner in script, but I have experience coding and manipulating data in other software.
Thanks!
Yes it's possible. You could use getEditResponseUrl() to get a link to edit the response. Only you should decide where to you will record those links and how you will make the corresponding link available to those who should edit the response.
I am designing a service hour record system for a docent service. The user inputs the applier's name, date of activity, number of service hours, and the registration number of all docents participated (separated by commas).
What I want to do is to make one record of all docents and all the activities they have participated. The registration numbers of the entries are split and transposed into one column in another sheet, the details of the activity are copied onto the same sheet, then the details of the docent are taken from a name list and pasted. I would like to ask if there's any way I can automate this process through a function by google apps script?
Included is a sample file with 3 entries, the name list called 'Database' and the intended just in case you don't understand what I wanted.
This is the link to my file
You're going to use the Spreadsheet service provided by AppScript since you put your data into CSV files. To manipulate data from your docent system, you'll need to learn how to import and export from your CSV file too.
I have an Excel spreadsheet with some information about an event we're going to host. Imagine something like this:
Name | Code Number | Date of Birth | Etc.
There's about 40 people in there. And I want to create a simple html file in which, when someone enters their code number (say, 12345678A), the rest of their info (Name, DOB, Etc.) will be displayed. It's nothing confidential so we don't need PHP, only easy HTML.
Is this possible? Does anyone of you know how to do this?
Thanks!
Save your Excel file to OneDrive. It's free online storage by Microsoft. All you need is a Microsoft ID, which takes about 10 seconds to set up.
Store the file in the Public folder, then right-click and select "Embed". That will give you the code you need to embed your spreadsheet into a web site.
For an example see my blog post here. You can edit the blue cell and hit enter, then formulas will re-calculate the spreadsheet.
So create a workbook with a user interface you want to present on the web and let Excel do the magic in the background.