Google api schema for user fields - google-provisioning-api

I have created a software that connects to Google apps email and allows me to create a signature for specified users with their info. In Google apps domain management is no possibility to edit more "advanced" fields like company address, fax, emails, title, nickname etc.. so I used Flash Panel which offer me this possibility. But for this I need the fields api schema to add it in my config in order to connect Google fields with my merge fields. I have managed to make it work for some fields like: Name, Company name, email address, all types of phones, title, department, manager, fax number by adding the following in my config file:
<string>name=Name.FullName</string>
<string>company=Organizations[Rel:http://schemas.google.com/g/2005#work].Name</string>
<string>mail=PrimaryEmail.Address</string>
<string>mobile=Phonenumbers[Rel:http://schemas.google.com/g/2005#mobile].Value</string>
<string>title=Organizations[Rel:http://schemas.google.com/g/2005#work].Title</string>
<string>department=Organizations[Rel:http://schemas.google.com/g/2005#work].Department</string>
<string>managerGA=ContactEntry.Relations[Rel:manager].Value</string>
<string>phone number=Phonenumbers[Rel:http://schemas.google.com/g/2005#work_fax].Value</string>
<string>emlHome=Emails[Rel:http://schemas.google.com/g/2005#home].Address</string>
or
<string>homeEml=Emails[Home:true].Address</string>
What is before "=" its just a name used for the connection and what I need is what is after the "="..
I have searched through Google documentation but I didn't managed to find the correct api schema format for some fields like: country, city, street, nickname, photo, website, URL, Notes, Organization Unit, Aka, and any others. Also in Flash Panel there is a possibility to add custom fields and would be great if I could connect those too with the merge fields from my signature template editor. Can someone help me with the correct ones or where/how can I find them?
Also for example if a user has two home emails, I know how to retrieve the first one, but how should the string look like for the second one?

This is an old unanswered question that I found in passing.
The example uses the Profiles API which was deprecated in December 2013. See the migration guide: https://developers.google.com/admin-sdk/directory/v1/guides/migrate
As of 2016, the API is the User resource of the Admin SDK. The API docs are here: https://developers.google.com/admin-sdk/directory/v1/reference/users/update
You can use User.primaryEmail for the Google Apps account's id/address and you can iterate through the array of User.emails[] for any additional email addresses.

Related

I sent a link to a google form using a mail merge within google sheets, but the link defaults to an incorrect email address

My question is similar to this one that I found on Stack overflow, but the answer didn't quite fix my problem "How can I change accounts when I am trying to open up a restricted Google Form?" I thought I would add this for reference.
The specific issue I have isn't easy to describe, but I'll try my best (this is my first use of Stack overflow!)
I have set up a new Google form to be used as a membership form. I wanted this form to be pre-populated based on data in a spreadsheet. I have managed all this using a Mail merge addon in google sheets (Mail merge with attachments). Within the spreadsheet I have the recipient's email address, a bunch of other (pre-filled) information and a customised link to the google from, which starts with "=HYPERLINK("https://docs.google.com/forms/d/e/". The link works for the recipients, but it doesn't default to the email address I sent it to when they use the link to log into the google form. It defaulted to the email address that the form was created in (the club email address). As I only wanted one response from each recipient, when one person had completed the form others could not do so. The reason I mention the above question is that with a slight adjustment to the link - "=HYPERLINK("https://docs.google.com/forms/u/0/d/e/" ie adding in the u/0/ it will open up with the 'primary' email account of the user. However, this did not necessarily resolve the problem as some users had their primary and secondary accounts back to front. What I would really like is for the link to open using the same email account as the one I have sent the email to. Any help on achieving this would be greatly appreciated.
Thanks

Here API states that I cannot store results. So how can I use it for address validation/completion?

I've been testing out the Freemium HERE API and just had a deeper look at the FAQs and Docs.
From the pricing plan page, it states the following:
Storing results from geocodes is not allowed for Location Services products
So how can this API possibly be used for address validation / completion? For example, a user enters a misspelled address / zipcode into a web form on my online store. I now have a dirty customer record. Am I prohibited from using the API to autocorrect the address? e.g. from 12 Main Street, Nwe Yrk to 12 Main Street, New York, 90210
Actually, one of the purposes of the geocoder autocomplete API is to autocorrect addresses:
https://developer.here.com/documentation/geocoder-autocomplete/topics/quick-start-get-suggestions.html.
You can readily use this API in your web form to get address suggestions while the user types. In this case the user always enters/chooses the right address and you are of course free to store this in your database. What you are not allowed to do is to store the whole response/results (detailed map information about locations in the response or in the case of batch geocoder, the results zip file) for offline use.

Send surveymonkey web links via sms, enable respondent tracking

We're trying to put together a survey solution which allows us to send links to our surveys to users via SMS. I know we could simply take the surveymonkey survey url and send it, but we want the same unique respondent tracking that you get via email, so we can break down responses by respondent group. So to achieve that, every respondent would need a custom, trackable url for each survey.
I see that when you send the survey via email, you get a unique link along the lines of https://www.surveymonkey.com/s.aspx?sm=cun03M8_2br9IdNcpt0CqL9A_3d_3d
I also see in the api documentation for get_respondent_list that there's a field "recipient_id" which is described as "ID generated for recipients of survey invitations via email collectors". It's not obvious from the unique email link if the link includes the survey id and the recipient id, or if it's just a "tracking code" which gets converted to an id later. So I'm just wondering if there's a way to programmatically generate the unique link for a given respondent?
You can't use the tracking via the email collector because those must be sent via email from the Survey Monkey system. Additionally, the recipient_id that you mention is actually just an internal Survey Monkey id, and not relevant to tracking. A respondent who does two surveys would have two respondent ids.
In your case, I would use many weblink collectors, one for each survey respondent.
For each survey:
Using the API, create a survey with no collector.
For each respondent:
Create one weblink collector. At this point, it's anonymous.
Pass the weblink through a URL shortening API. For example, the bit.ly API can provide the (optional) svy.mk domain.
The bit.ly API also allows you to track metrics, so you can see who has clicked the survey link. Then you can map those to the response from the Survey Monkey API.
Repeat (with code, of course) for each respondent.
Also check out SurveySignal (www.surveysignal.com) that simplifies this capability with existing integration with Survey Monkey

Eventbrite custom ticket pdf

Is it possible to use event_list_attendees to get the list of attendees and their specific information for the event in order to place it onto my own custom designed ticket graphic/PDF?
For instance, I want to create my own stand alone website that links to my event, have users register/purchase tickets, then from my website via the API, I would send the user a custom email as well as a custom designed ticket specific to my event. On the ticket itself I would want to pull the attendee name and number of tickets ordered, as well as the barcode and the event information.
Yes, that is totally possible. See the page on the Eventbrite API - event_list_attendees
It should give you all the information you need.
Good luck!
You may be interested by Pygmento custom emails & tickets : https://www.pygmento.com/en/blog/eventbrite-custom-tickets-pdf/.
You can use the service customize the confirmation email and pdf ticket using any variable from Eventbrite : given name, surname, ticket class, barcode, or even the user-defined checkout fields.

How to dynamically populate Jira custom fields?

I'm new to the Jira admin side of things after having used it in a previous company as an end-user for several years. We are using the standard Jira workflow. The scenario I'm struggling with is the following. I'm attempting to match some of the functionality of our old-proprietary issue database. Right now I'm using many of the standard Jira fields, with only two new custom fields (both single Select Lists populated manually by me):
1) Customer = customer name who sent the new issue email to our support team
2) Customer Contact = the main customer contact, currently populated by the custom list
I created these two custom fields because we have external customers who call or email issues they have using our hosted software. Currently our system creates a simple new issue when a customer sends an email to our support email account. Our support team then goes in and cleans up the data and makes sure that all the required Jira fields have data, the comments are good, reproducible steps, etc. (Currently we do not strip out the customer domain name to auto-populate the Customer custom field, but I might try doing that soon.)
Our support team is asking that I add the following two new customer fields:
3) Customer phone number
4) Customer connection / login info
What I would like to implement is a system that goes something like this:
Customer name gets inputted (either automatically by grabbing domain name of customer email address or manually by our support team) into the Customer custom field. Customer name selected should be "pushed" into the Customer Contact Select List to help sub-select values for that particular customer.
The Customer Contact Select list should be "smart" or dynamic in that some pre-processing is done where the Customer name is grabbed so that it doesn't show ALL customers contacts for the tech support person to select, it just shows them the customer contacts for the customer that was selected.
Along with the filtered customer contacts, I would want to only see the Customer phone number for the contact that was populated in the Customer Contact select list.
And finally I would want to see the Customer connection information for the particular Customer that was selected.I've done this type of smart combo boxes in the past when I created Java / Database applications, so I have a feeling that this is possible in Jira. I'm just looking for the easiest way to implement this. It seems like there might be some external plugins that might help do this (ex. the values for the Custom fields are stored in a database table so they can be queried and the proper filtered result sets can be populated into the select lists.), or maybe using post functions (update issue), etc. But before I spent more effort investigating, I know this sort of thing has to be somewhere common and wanted to ask the Jira admin experts what the best practice would be for this type of functionality in custom fields. Please share your experience with how to solve this type of scenario. Thanks in advance!
Here is the way that tells how to import multiple options at once. Probably that would help u.
https://answers.atlassian.com/questions/92385/importing-project-from-another-jira-instance-how-do-we-mass-import-custom-field-multi-select-options?page=1#92622
EDIT
and here is the complete code to update another select list using new select list.
How to add new values to select list field in jira dynamically or using plug-in

Resources