Fetch details from one list to another on comparing user email address. - sharepoint-2010

I am looking for some guidance regarding SharePoint 2010 lists.
Scenario:
Let's say this is List-A having details of user profile.
Let's say it is List-B which has some other data and I have one column having user email address, in this list on form load event when user login it just fetch user email address. In this list I have to introduce one column that wil bring details from user profile list on the basis of email address. If email address doesn't exist in List-A then column will remain blank otherwise it will show user required text in the same column.
I hope that I have given enough details what I required.
Any idea would be great.
Furthermore, I don't have visual studio installed that's why I cannot do programing therefore any other workaround idea would be great.
Thanks in advance.

Use the SPServices Library based on Jquery. You can do this on client side by editing the form in SharePoint Designer.
Look at this function SPCascadeDropdowns()
http://spservices.codeplex.com/wikipage?title=%24().SPServices.SPCascadeDropdowns

Related

How to schedule different reminders for different contacts and query them

I am making a CRM for my business as a Realtor. I currently have the database connected to the site and I can add, remove, and update the contacts. Each contact will be assigned a "type." Like one type of contact may be a FSBO or one may be a buyer.
What I want to do is have a page that tells me if I need to do something like send an email or text to one of them that day. I have a predetermined campaign for each type. The FSBO type needs to be sent certain text messages on certain days depending on when they were added to the database.
So my question is how do I setup reminders to be displayed on the page showing me who needs what sent to them? Just a little confused about how to set up adding the campaign to each contact and then how to query the database to get the reminders due.

Accessing Bigcommerce' s %%GLOBAL_CustomerId%% variable

How can I have access to bigcommerce's %%GLOBAL_CustomerId%% variable?
I create a sample template and logged in with as a user. That variable doesn't show up. Isn't it suppose to be a Global variable?
Background: I want to create an app for bigcommerce that can identify a user base on their customerID. If I can't grab that variable, you guys see any other way to work around this?
It's not immediately clear in the docs, but you can use %%GLOBAL_CurrentCustomerEmail%% anywhere on the template to get the email address of the currently logged in user.
If you need the customer's ID, then you can query the API with the email as a parameter.
Personally, I'd rather "trust" the customer's email as a point of identification, because you never know if the Bigcommerce ID's may get changed or not (example: Customers are deleted and then reimported, now having brand new ID's).
On a subject of security though, you cannot trust client side data, and should attempt to mitigate fraudulent requests through the use of a CSRF token or some similar measure. Otherwise, anyone can send you an email address and receive back a list of that person's favorite products -- golden information for say, a targeted advertising company, or just your suspicious next-door neighbor Joe who seems to always be conveniently checking his mail right when you get home from work, but never says anything when you walk by, not even a wave or a smile, despite the fact that you all have been neighbors for quite some time now. Like, should I say something? Hahaha, I kid I kid.

How to show a contact in the browser after getting the ID using the Office 365 REST API

I'm using the Office 365 REST API to look for contacts. Once I have the contact details, I need to open a browser and show it to the user.
So, for example, I find a contact with ID:
AAMkADVlY2IzOGVjLWUwMzgtNGFmMS1iMzZhLTY2MDE0ZTRiNTg4NwBGAAAAAAD1KqAdSTtFQKuI5sWH1n87BwBFsSNh6xuxTYUopw458yHGAAAAAAEOAABFsSNh6xuxTYUopw458yHGAAAAABTzAAA=
And then I'm using the following URL to show it:
https://outlook.office365.com/owa/?ItemID=AAMkADVlY2IzOGVjLWUwMzgtNGFmMS1iMzZhLTY2MDE0ZTRiNTg4NwBGAAAAAAD1KqAdSTtFQKuI5sWH1n87BwBFsSNh6xuxTYUopw458yHGAAAAAAEOAABFsSNh6xuxTYUopw458yHGAAAAABTzAAA%3D
The browser shows a windows containing some information of the contact, but it's not the same information I have when browsing the Office 365 People app. I just get the name, and there is no way to see all the details or edit this contact. This is a screenshot of what I see when I open that URL:
And this is the information I would like to see (available when I use the People app):
Is there any other way to achieve this? How can I show the contact details to my user?
Any hint will be greatly appreciatted!
Thanks!
I wrote a simple sample application (in Angular, but it's just using REST so you should be able to use it) that uses the Outlook Contacts REST API to get a user's contacts and display them to the user.
In short, you should be able to get the information you want by making a GET request to "https: //outlook.office365.com/api/v1.0/me/contacts" to get all the contacts of the signed in user, or a GET request to "https: //outlook.office365.com/api/v1.0/me/contacts/{contact_id}" to get a specific contact. In either case, you must also supply an access token and make sure your application has the correct permissions scope.
View the code (and some links that may be helpful to you as you continue your Office 365 development) on GitHub: https://github.com/martellaj/contacts-api-sample

Writing data from email to SQL server 2008R2

Following our company processes, our database has to send an email to a manager requesting for approval for some document record changes.
I was wondering if it was possible for the manager to reply to the server with an email containing "Yes" or "Approved" with the document# and have it update the document record accordingly. Right now, the manager has to send the QA dept the approval email, and they have to update the document record manually.
I have looked at SQL Mail, but it seems to be a bad way to go according to a lot of places.
We use Exchange 2010 and SQL Server 2008
Thanks!
Do you have IIS installed in your environment? If so, you can redirect the user from Mail (Outlook) to a service page to update the document approval flag.
If so, create a ASP or ASPX page that takes two query parameters. A document id and a approval notice.
Put two links in the email for the manager to click. You will have to send the email from SQL server with a HTML body. Enclosed are sample links for document 123.
Approve Change
Reject Change
Check out www3schools link below for details query string.
http://www.w3schools.com/asp/coll_querystring.asp
Check out the link below for details on working with databases.
http://blogs.msdn.com/b/morebits/archive/2010/09/26/working-with-data-beginners-guide-to-database-in-asp-net-web-pages-part-1.aspx
As an added feature, you might want to record the Active Directory (Windows Login) of who approved or rejected the document. That way, someone can not approve the document themselves. A date/time might be also handy.
This is one of many solutions you can use.

How to send some additional app info when user sends email using MFMailComposeViewController?

Is there any way to make my app send to me some additional app info when user sends an email from inside my app using MFMailComposeViewController but without enabling the user to delete or change that info? For example, I would like to receive with every user email some info like what is the device user is using, or number that shows how many times user launched my app, etc., but I don't want the user to have the option of changing or deleting that info in email. Is there maybe some other way of doing this? Thanks.
Create a public key encrypted attachment with the info you want to send.
If you are using email to gather feedback from your user, we have a feedback form that you can add to your app instead. Along with the user name, email, and comments, we do include information like device type and os version (the user doesn't see this). The form background color can match your app's color theme. Some developers have asked for that customization. You'll also get to specify feedback types and categories. This lets the user self classify the feedback. For example, feedback types can be "suggestions," "bugs," "testimonials," and "questions." Categories are sub types, which allows for narrowing down the feedback being given. You define the types and categories. The user chooses them while filling out the feedback form. All the feedback is sent to our feedback center for you to view, sort, respond, set status, group, and manage. You can be notified by email when feedback arrives.
Learn more at: www.SimpleFeedback.com - iOS Feedback