Opening gMail Website to a specific message - gmail-api

I'm using the gMail Node API to search for specific messages (not drafts) using the gmail.users.messages.list API, then I use the gmail.users.messages.get API to get the details for the message.
So I have the message id, thread id etc.... in the payloads returned. I present the user with the subject line from each message and I would like to also give the user a URL that will open the message in the gMail website.
If I use the gMail website to open one of the messages that are in my test bed the URL for gMail is:
https://mail.google.com/mail/u/3/#inbox/FMfcgzGljlhhRnrLbTDqXnNxSbhRcVCN
I could easily put that URL together myself but here are my questions:
Will the '/u/3/#inbox' portion of the URL always be the same for the authenticated user?
How do I get the ID at the end of the URL(beginning with FMfcgz...)? I searched the payloads from the API's and I cannot find that ID in any of the data returned.

Related

azure logic app not able to retrieve who is the approver after approving the mail(UserEmailAddress- showing Null)

I have created a flow using logic apps where once the owner approves the mail I need to know who approved that mail. While using normal my account I am able to retrieve the user who approved the mail but while using the service account am not able to retrieve the values. All the values its showing as null while using the service account.
How do I get the --> email address <-- of the user that selects 'Approve' or 'Reject' buttons in the email? If an email is forwarded to another person I would like to know who (email address) clicked approve or reject.
After reproducing from my end, I observed that when the mail is viewed in HTML format this doesn't work and also while forwarding the mail, but this works when the response is sent through the adaptive cards and not the HTML message that are received during the Send email with options action. One way that this can work is when you use only the adaptive cards that are send as the request.
RESULTS:
and when you use HTML responses then below is something how you'll be receiving the response.
You can also try Creating your own actionable messages for Flow Approvals by StefanS365 where in you add provider in Actionable Email Developer Dashboard and request the approvals.

Can I fetch firstname,lastname,email and profile picture of linkedin with only one api request?

How can I fetch first name,last name,email and profile picture of LinkedIn with only one API request? #linkedin
No, email needs a different request as of their documentation
GET https://api.linkedin.com/v2/me will get you first and last name and profile picture.
GET https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~)) will get you email address.
You need to request the user for r_liteprofile permission for the first request and r_emailaddress for the second during the Authenticating process.
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin?context=linkedin/consumer/context

Create Docusign documents and send emails from another system

I am trying to integrate Salesforce and Docusign. I'd like to send Create documents through a soap / rest call, and surpress the notification to the recipient. From Salesforce I'd like to send out the link to the envelope / documents through a branded email.
Is that possible? It seems like DS only supports a createAndSend call.
This documentation says I can create an envelope in draft form - https://docs.docusign.com/esign/restapi/Envelopes/Envelopes/create/ . It also says I get an envelope summary as a response.
https://docs.docusign.com/esign/restapi/Envelopes/Envelopes/create/#/definitions/envelopeSummary
As others have noted, Embedded Signing is the answer here. I've just done this with a client.
You would build the envelope with the SOAP API (good receipies from DocuSign on how to do this with APEX here: https://www.docusign.com/developer-center/recipes/docusign-for-salesforce).
When you define the Recipient, you would provide the ClientUserId in a CaptiveInfo object (use the ContactId for this). This tells DocuSign to skip sending the recipient an email, and you will handle this yourself.
Create and send the envelope (you can use templates as well).
You will need a portal or public Force.com site to move forward. The reason being that the URL for signing is a one-time-use link, and it expires 5 mins after it's generated. So you can't store it or send it in an email. By the time they click the link it will be dead.
So instead, you link to a Visualforce page you control. Add the ContactId to the URL as a parameter, so you know who is looking at the page.
When they load the page, you should have the Visualforce controller lookup the EnvelopeId (so if the page is about an Opportunity, you should store the EnvelopeId on the Opp or somewhere handy) and the recipient (use the ContactId to get the info about the recipient).
You then send this to DocuSign with the RequestRecipientToken method. It will return the token URL, and you can present it to the user.

List Google Group's emails with Gmail API Users.messages

is it possible to load emails sent to google group via API?
I can see something like that in Gmail API: https://developers.google.com/gmail/api/v1/reference/users/messages/list
but not sure if it will work for google groups.
When I tried it I just got "Delegation denied for..." error.
What I need is to periodically load emails (possibly with attachments) from more google groups (so it is not convenient to resend all emails to some regular gmail address...) - any ideas?
Thanks
For the question is it possible to load emails sent to google group via API?
I think there is no API that allows reading a message in Google Group.
So the alternative way is to use a Gmail account which is a member of that group. By using this Gmail you can check all the message that is sent to that group.
About the Delegation Denied error, this message will be sent if the initiator, in response to a credential request message, is unwilling to generate the requested credential.
Check this SO question for more information.

AppEngine gmail - missing email in chat message

Is there any reason, why I don't get email along with chat message retrieved by gmail.users.messages.get? When I try to execute the request via API explorer I can see the email in "From" field of the MessagePartHeader, however when I try it programmatically, the email is missing (using the same paramters as in API explorer).

Resources