Google contacts api endpoint authenticated user contacts name is blank - node.js

Im using https://www.google.com/m8/feeds/contacts/default/full?alt=json&oauth_token='+accessToken+'&max-results=10000&v=3.0
to get authenticated user contacts
and it's returning contact list of authenticated user but the contacts name is blank, if one contact updated in gmail then that contact getting name, why is that happening?
Is there any wrong in above url

Did you get the contact name from the title
For example, you can get the value from the title field from following title field:
"title": {
"$t": "Tester Name",
"type": "text"
},
Its normal that some contacts might have a blank title and you can use a placeholder for their names.

Related

Create a new item in a SharePoint list

I try to create a new list item, in general work fine, buy I have trouble with Person field.
On my list, I have two columns:
Employee -> Person type - it's for employee
EmployeeId -> Text field - it's like Employee ID from ex. AAD
EmployeeSuperior -> Person type - it's for employee superior
I need to create new item with filled only the Employee I got errors.
If request body is like:
{
"fields": {
"EmployeeLookupId": "6"
}
}
A new item is created by field EmployeeId is filled, but Employee is empty.
If request body is like:
{
"fields": {
"EmployeeLookupId": 6
}
}
I get error:
"message": "General exception while processing",
If request body is like:
{
"fields": {
"EmployeeSuperiorLookupId": "6"
}
}
A new item is created by field EmployeeSuperior correctly.
I think the EmployeeId field is confusing for MS Graph. But I cannot remove it, but I want to use MS Graph for adding new items.
Has anyone how write good request body?
I tried a few combinations of request body, on new list with the same fields but with new names. For my tests I'm using  Graph Explorer, no test in other ways.

Change Nick Name of Email while sending the email from netsuite script 2.0

Suppose we have the code
email.send({
author: 17874,
recipients: "sam172#gmail.com",
subject: "mail from netsuite",
body: "test body email order id: " + newOrder
});
Can we modify the sender name only not the email.
I have to implement like if we have the email "test#gmail.com" and nick name as "Test". While sending the email it will show like from Test in recevire side. Can we change the name from test to test123.
This isn't possible as far as I know. You really have two options to modify the name of the sender only:
Either change the name of the user (the one you set in the options.author field).
Or have the correct name from the beginning and then modify the reploy-to instead by setting the options.replyTo
This isn't exactly what you want but I think it's the only workaround.

In Bot Framework, what Unique ID should I use to save session?

I am using bot framework and I am saving the session.messageAddress so I can send the user a msg later. I want to track each unique user I get. In case if they send me another msg again I will know I have already received a msg from them earlier. What unique ID should I use to identify the user?
I was thinking of using session.message.address.conversation.id, is this correct?
Refer to https://learn.microsoft.com/en-us/azure/bot-service/bot-service-resources-identifiers-guide?view=azure-bot-service-3.0
Every bot and user has an account within each channel. The account contains an identifier (id) and other informative bot non-structural data, like an optional name.
Example: "from": { "id": "john.doe#contoso.com", "name": "John Doe" }
You should use session.message.user.id to identify the user. Using the conversation id won’t work because the user can start a new conversation with the bot by simply reloading the web chat page and a new conversation id will be generated.
Edit
I mistakenly wrote session.from.id to identify the user. The correct way to do it is session.message.user.id!
Say that the user John Doe is chatting to the bot through Skype then message.user.id = "john.doe#contoso.com" and message.user.name = "John Doe". And there you have it! your unique user id!
The session object will look like this:
"session":
{
/*...*/
"message":
{
/*...*/
"user":
{
"id": "john.doe#contoso.com",
"name": "John Doe"
}
}
}

How to populate DocuSign Name field with something other than Sender name?

I'm using DocuSignAPI SDK to send envelopes. I have a few templates defined and they use a Custom Field called MemberFullName.
The field is of type Name, FullName.
For some templates I want MemberFullName map to a Signer's name, but sometimes I want to map another name to it.
My assumption was if I don't map anything to MemberFullName, then Signer's name will be used. But if I add "fullNameTabs" for MemberFullName, then it will be mapped.
Signer sgnr = new Signer()
{
RoleName = "Someone other than Member",
RecipientId = "1",
Name = "Bob Signer",
Email = "bobsemailaddress#yahoo.com"
};
sgnr.Tabs.FullNameTabs = new List<FullName>();
sgnr.Tabs.FullNameTabs.Add(new FullName() { TabLabel = "MemberFullName", Name = "Joe Smith" });
But MemberFullName is still mapped to Signer name in the resulting document.
How can I map a NON-SIGNER name to a field of type "Name"?
I know I can create a different field of type TEXT and map "Joe Smith" to it, but I wanted to reuse the "MemberFullName" field in both situations.
I apologize as I may not be using correct "docusign terminology" for things.
You will not be able to set the value of FullName tab manually. See this answer
for more information.

Search feature using mongoose

I am creating an application using mean stack. I need to create a advanced search feature for my application where schema can searched by various fields like firstname, lastname, etc. On clicking the search button I will use the below route to connect to the server.
$http.get('/search/' + $routeParams.searchdata)
now if I try to console log the searchdata I can get the fields that I entered in the search form. Eg: If I enter the first name and the email id I see in the console as
{"firstname": "Smith", "email": "smith#gmail.com"}
If I try to access searchdata.firstname I get undefined.
1) How can I access the fields entered in the search form?
2) There are many fields in the schema. How will I tell to search only the fields that were entered in the form?
1) How can I access the fields entered in the search form?
See this answer Node.js: Difference between req.query[] and req.params
2) There are many fields in the schema. How will I tell to search only the fields that were entered in the form?
Just pass the query to your find mongoose function like this :
app.get('yourPath', function(req, res){
yourCollection.find(req.query, function(err, elements){
if(err)
res.status(500).send(err);
else{
res.json(elements);
}
}

Resources