Fetch 'xhr' response when "Send" button is clicked in gmail - google-chrome-extension

I am making CRM for Gmail.
I want to get the unique "email id" in my chrome extension from the "xhr" response when "Send" button is clicked. I have not overridden any gmail functionality.
My plan is to use that email id to get the email using gmail api.
Is there any other way by which I can get the email data when the email is sent and save it in my system?
Thanks in advance!

After searching for a week, I got a way to get the unique emailID.
When email is sent, a link is displayed - "Your message has been sent. View message".
View Message is a link. If you inspect this link, you will get a span element. It has an attribute 'param', which contains the emailID.
I fetched emailID from there and passed it in request to gmail API to get the email data.
I know it is not a permanant solution, but working for me as of now.
If someone knows some other solution, please share.

Related

Not able to edit phone number for User verification in DocuSign

This is in reference to the User verification using DocuSign, I am trying to explore the Phone Authentication mode, but I am not getting an option to edit the number/ Choose a new number on the Screen where DocuSign requests for the Access code , I have set the recipMayProvideNumber": to true, but it does not seems to be working , Please help
See this blog post on the topic of recipient authentication.
The number should be passed during the API call like you did. You cannot change it as the signer, only the sender can modify it.
If you want to modify it, you need to make a PUT request to the envelope before it is sent. Once set you can still change it but that would require a new email to also be sent out, the original email with the original link would be invalidated.

How to send a response to dialogflow later

I am using dialogflow by google to create a bot.
When my user ask my bot for a report with several parameters, I need to create the report and send him the link to download it.
The report is created in about 1 minute. When I send the response (JSON(fulfillmentText = "my url")) of the POST request of my webhook, dialogflow send me an error : time out.
So I need to send immediately the message "Please wait..." and then, when the report is created, send to my user a new message with the url of my report.
I am trying to use the API V2 but I cannot find in the documentation a way to send a message to a user when the POST request is already done.
This is not possible, the interactions with Dialogflow agents are intended to be conversational and must be initiated by the user. The timeout for your fulfillments response is five seconds.
It would probably be a better user experience anyway if you get an email address from the user and send them the link there, either by asking for it with the #sys.email system entity (be aware of privacy issues though) or by using account linking.

How do I send an email directly from a gmail add on?

I have developed a gmail add-on for personal use and it can currently draft a reply to a recipient using message.createDraftReply(replyMessage);. I then have to manually send email.
After the button click event, I would rather that the the email just be sent directly without further action needed on my end and the UI go back to the inbox (rather than the email view).
Is this possible? If so, can you please provide some direction/example.
Have you tried using the sendEmail method?
See documentation here:
https://developers.google.com/apps-script/reference/gmail/gmail-app#sendEmail(String,String,String,Object)

How does Basecamp add "View on Basecamp" links to Gmail?

I just got an email from Basecamp and it included a link to "View on Basecamp" which I could click from my Gmail inbox.
How do they do that? I looked at the raw message in Gmail but I couldn't see any headers that included the appropriate link - it only shows up in the actual message contents. Is this a Gmail/Basecamp specific partnership or is it something I can do when sending emails through my app too?
These are Gmail Actions, declared using JSON-LD or Microdata embedded in the email.

CRM 2011 System Workflow Sends Email Which Contains Link

I am sending email activity using system Workflow. It sends email where email-body contains a link.
What I do that I insert a link using "Hyperlink" button on the Email-Template provided by the System Workflow.
When this email received at on Outlook it works fine. If it is received on Thunderbird or Gmail or Yahoo, it distracted.
That "Link" text does not works as link anymore and it's value(i.e full URL) displayed over there.
What i can do for this in email template to works on other EMail client.
I formulate this email using system Workflow. I don't have such flexibility over here.
Any idea will be appreciated. Please help.
Thanks,
Anish

Resources