Uploading image to google doc via google form - google-docs

I'm creating a application form, where users input their info, and after submitting, the form "generates" a google doc with those information and sends that document to my email. That works fine.
My problem is this:
I also need users to upload their picture, and then I have to include that picture inside of that google doc. Can you please help me solve this problem?

Related

Why are my Sharepoint Links missing the Tenant?

I am working on an automate flow that emails a share point page to a list of subscribers whenever the page is updated.
Everything works except the links contained in the email (/page). On share point i am able to navigate to the link however in the email the page redirects me to /sites/xxx/xxx.aspx. It is missing the tenant information.
Is there a setting i missed or something that is preventing sharepoint from including the full link when sending the email?
I made sure the full link was typed when the hyperlink was created and am using an HTTP to share point (in automate) and inserting the "CanvasContent1" into the email. I checked the html being sent and the link title is given as the full link but the href is given as /sites/xxx/xxx.aspx.
Thank you for everything
On a SharePoint page, links will be converted to relative links when the page is saved.
If you copy the page content as rendered into an email, then, yes, the tenant will not be included in the link, since the link is never intended to be used outside of the context of the page, where the link works fine.
So, you need to change your approach when emailing the page. Maybe email just a link to the page, then people can take it from there. Or, manipulate the html content in PowerAutomate and replace /sites/xxx with https://Yourtenant.sharepoint.com/sites.xxx

Create PDF file with pre-defined template

I am trying to create a PDF with the pre-defined template with this particular library called PDFKIT. The server is written in Nodejs, may I know is there any good example I could refer to? What I want to achieve is to have a User Interface as an entry form, and then there is a pre-defined PDF file in-place on the server.When the user hits the submit button, the pdf rendering engine will pick-up the data and embedded into the pdf template file.
Take a look at the PSPDFKit for Web / PSPDFKit Server API docs for handling forms which let you retrieve and update all form fields. You can then use the document APIs for downloading a PDF with the form fields set to whatever values your user submitted.
So to recap, the steps are:
Upload the template PDF to the server storing the document id in your database or in the user's session.
Fill in the form fields using the data your user submitted.
Download the PDF with the updated form fields and e.g. email it or store it somewhere.
Alternatively you can create a signed URL so that you can directly redirect your user to the generated PDF.
Have you heard about PhantomJS? There is a package which name is phantom-html-to-pdf. You may give it a try.

Uploading Image to SharePoint from PowerApps via Flow

As the title says.. I'm building a power app that uploads an image to a sharepoint directory.
Following this blog I was able to successfully upload an image that was captured by a Camera Control.
However, I would like to do the same thing but with an 'Add Picture' Control.
My PowerApp function for doing this is
ClearCollect(PictureCollection2, AddMediaButton2.Media);
MediaToSharePoint.Run("test.png", First(PictureCollection2).Value)
I add the media to a collection, then Run a Flow with the value. This value is a form of a URL that contains the image stored as a blob. Here's an example of the value that gets passed to the Flow
blob:https://create.powerapps.com/79d7f767-4dff-448d-87ec-b3d2f7cdf27d
The flow has two steps; a PowerApp connector and a Share Point Create File
The flow is failing on the second step with a 'Bad Request' error.
Has anyone been able to upload an image to Sharepoint via an 'Add Picture' control?
Any help would be appreciated, let me know if there are any more details I should provide.
We were able to solve the problem by saving pictures to a SharePoint List.
Here are useful links explaining the solution.
"Save Attachments to SharePoint List using PowerApps" (YouTube Video)
"Add attachments to SharePoint lists" (Blog Post)
"Showing List Attachments in a gallery" (Forum Thread)
It's working!

Twitter api doesn't send media element with timeline

So I am using the twitter node module and twitters rest api to fetch timelines.
All works well, except that attached images do not get sent with the response.
Even after I added "include_entities: true" to the options object.
I'm talking about an image directly attached to a twitter post, links get displayed just fine.
I simply can't find a way to get it to display, any help is appreciated.
Every tweet has a Media Entity attached to it. You need to find the Media Id and then get the URL from -mediaURL. The below picture shows the full object model.
PC : https://www.visual-paradigm.com/tutorials/rest-api-design-twitter-example.jsp

Embedded Google Docs PDF viewer displays login page rather than PDF

I have a Web page in which I embed a Google docs viewer in an iFrame
<iframe src="http://docs.google.com/viewer?url=URL-encoded-URL&embedded=true" width="750" height="960" style="border: none;"></iframe>
(where URL-encoded-URL is an actual encoded URL).
For many/most of my users, the Google PDF Doc viewer appears and displays the referenced PDF.
But some of my users instead see the Google Docs page with the login box. I've no idea why that happens. Has anyone heard of this happening? And more important, know why, and what can be done to ensure the PDF is shown.
I second Zhami's comment on the question. This happens when you (the user) has a google account whose login has expired. The login page shows them Email: field already filled in with your email but asks for your password. If you then click on "change user", the email field goes back to empty and then you can go back to the iframe page and you will see the document.
I think maybe we can say this is a google bug?

Resources