QUERY DATA FROM ACTIVE DIRECTORY



Similar documents
ACTIVE DIRECTORY WEB SERVICE USER GUIDE LAST UPDATED: January 4, 2013

Word 2007: Mail Merge Learning Guide

Microsoft Access to Microsoft Word Performing a Mail Merge from an Access Query

Windows XP Exchange Client Installation Instructions

Gravity Forms: Creating a Form

Sending broadcast s

Step-By-Step build Advanced InfoPath Form and SharePoint Designer Workflow

Word 2010: Mail Merge to with Attachments

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

IT Quick Reference Guides Performing Mail Merges in Word 2010

UF Health SharePoint 2010 Introduction to Content Administration

A. BACK UP YOUR CURRENT DATA. QuickBooks Business Accounting Software for Windows Account Conversion Instructions

TABLE OF CONTENTS BACKGROUND: HIGH IMPACT 4.0 PROFESSIONAL AND ACT!. 3 SELECT MAIL MERGE OPTION ON THE MAIN SCREEN.0 TEMPLATE.

BSDI Advanced Fitness & Wellness Software

ONBASE OUTLOOK CLIENT GUIDE for 2010 and 2013

Online Statements. About this guide. Important information

Cascade Server CMS Quick Start Guide

Booth Gmail Configuration

Editing your Website User Guide

Document Manager 2.0. Corporate Administrator Guide

Integrating LANGuardian with Active Directory

MAPPING THE WEBDRIVE REFERENCE GUIDE

BSDI Advanced Fitness & Wellness Software

UF Health SharePoint 2010 Document Libraries

emarketing Manual- Creating a New

Create a new investment form and publish it to a SharePoint 2013 forms library

Introduction to Search in SharePoint Hands-On Lab. Lab Manual

Migration Manual (For Outlook 2010)

Connecting to Delta College Exchange services off-campus

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Avery Wizard: Using the wizard with Microsoft Word. This is a simple step-by-step guide showing how to use the Avery wizard in word

Microsoft Access 2007 Advanced Queries

BusinessObjects Enterprise XI Release 2

Mail Merge Creating Mailing Labels 3/23/2011

HDAccess Administrators User Manual. Help Desk Authority 9.0

How to install and use the File Sharing Outlook Plugin

Microsoft Outlook 2010

Title: SharePoint Advanced Training

Creating Responsive Drip Campaigns

Organizing and Managing

Microsoft Access 2010 handout

Don't have Outlook? Download and configure the Microsoft Office Suite (which includes Outlook)!

4.6 - Insurance Manager

Getting Started with the Standalone

Introduction to Microsoft Access 2007

Outlook 2013 ~ e Mail Quick Tips

How to Pop to Outlook

How to Configure Windows 8.1 to run ereports on IE11

Microsoft Outlook 2003 Module 1

LRFP AND PROJECT APPLICATION TRACKING SYSTEM District Administrator Instructions. Accessing the Administrator Section of the Website

As your financial institution completes its system conversion, you

Connect Now Workgroups and Communication:

How To Change Your Site On Drupal Cloud On A Pcode On A Microsoft Powerstone On A Macbook Or Ipad (For Free) On A Freebie (For A Free Download) On An Ipad Or Ipa (For

Endnote Web: Beginners Guide to Using Endnote Web and the Cite While You Write Function

Microsoft Office 2010

Chapter 11 Managing Core Database Downloads

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Outlook Web Access (OWA) User Guide

Mail Merge. Course Description. Objectives: Design a Main Document. Design a Data Source. Directories. Merge the Main Document with the Data

Document Management in the List View

Personalizing your Access Database with a Switchboard

State of Ohio DMS Solution for Personnel Records Training

Appendix A How to create a data-sharing lab

Using MailStore to Archive MDaemon

Configuring Thunderbird for Flinders Mail at home.

Qualtrics Survey Tool

4HOnline HelpSheet. Sending Broadcast s & Text Messages Created: September 6, 2012 OVERVIEW SELECTING THE RECIPIENTS CREATING THE

Creating a Participants Mailing and/or Contact List:

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

Terminal Four. Content Management System. Moderator Access

formerly Help Desk Authority HDAccess Administrator Guide

kalmstrom.com Business Solutions

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Opening a New Case in Client Profiles for Windows (Juris Integration)

Use the Microsoft Office Word Add-In to Create a Source Document Template for Microsoft Dynamics AX 2012 WHITEPAPER

PM CENTRAL SANDBOX GETTING STARTED GUIDE

WHAT S NEW IN MS EXCEL 2013

Setting up Citrix XenServer for 2X VirtualDesktopServer Manual

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

FrontPage 2003: Forms

FRONTPAGE FORMS

Setting up Hyper-V for 2X VirtualDesktopServer Manual

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

Quick Start Guide. Microsoft Access 2013 looks different from previous versions, so we created this guide to help you minimize the learning curve.

Introduction to Microsoft Access 2010

Sophos Mobile Control Super administrator guide. Product version: 3

ICP Data Entry Module Training document. HHC Data Entry Module Training Document

This guide shows you how to configure each display option within the item editor.

SPHOL326: Designing a SharePoint 2013 Site. Hands-On Lab. Lab Manual

Microsoft Office. Mail Merge in Microsoft Word

ArcMail Technology Defender Mail Server Configuration Guide for Microsoft Exchange Server 2003 / 2000

How to Set Up Your. Account

Mastering Mail Merge. 2 Parts to a Mail Merge. Mail Merge Mailings Ribbon. Mailings Create Envelopes or Labels

ProperSync 1.3 User Manual. Rev 1.2

Scheduling Messenger

Introduction to Microsoft Access 2013

User Manual for Web. Help Desk Authority 9.0

Outlook Web Access. PRECEDED by v\

Teacher References archived classes and resources

Transcription:

QUERY DATA FROM ACTIVE DIRECTORY Active Directory includes a wealth of information about your company s organization. This task will show you how to auto populate fields in your InfoPath form with the email address and full name of the currently logged on user. CREATE THE DATA CONNECTION First we need to create a data connection to the Active Directory web service. 1. Open the Expense Report form template that we have been working with in previous labs. To do this, right click on the Expense Report sample XSN on your local drive, and select Design. 2. In the InfoPath 2010 ribbon, select Data and then click on Data Connections. 3. Click Add. 4. Select the radio button to Create a New Connection to and Receive Data. Click Next. 5. Select the radio button for SOAP Web Service and then click Next. 6. Enter the URL of the service: http://<yourservername>/qdabrawebservice/aduserinfo.asmx. Click Next. 7. Select the operation (Web Method) named GetMyInfo. Click Next. 8. Click Next. There is no need to check the checkbox of Store a copy of the data in the form template. Page 1

9. Uncheck the Automatically retrieve data when form is opened checkbox, click Finish, and then click Close. USE THE ACTIVE DIRECTORY DATA TO OBTAIN EMPLOYEE INFO Now you will change the Employee Email and Name fields to auto-populate. 10. In the Data tab of InfoPath 2010, click Form Load. 11. Click New and select Action. 12. Click the blue text under Condition. We will enter a condition because we only want to load this data once, when the form is first created. Page 2

13. Select Select a field or group from the first dropdown and select the emailaddress under the Employee node. In the middle dropdown, select Is blank. The condition should look as shown below. Click OK. 14. Next to Run these actions, click Add and select Query for data. 15. Select the GetMyInfo data connection and click OK. 16. Next to Run these actions, click Add and select Set a field s value. 17. Click the icon to the right of Field and select the emailaddress node under the Employee node. 18. Click the icon to the right of Value and click Insert field or Group. 19. Use the dropdown to switch to the GetMyInfo secondary data connection. Page 3

20. Expand the datafields node, select the Value node, and click Filter Data. 21. Click Add. We need to add a filter because the Active Directory web service returns multiple keys and their values. At this point, we want only the email. 22. Select Key in the first dropdown and is equal to in the middle dropdown. In the third dropdown, select Type text and type in mail (no quotes). 23. Click OK until all dialogs are closed. 24. Now we ll set the employee name field. Next to Run these actions, click Add and select Set a field s value. 25. Click the icon to the right of Field and select the name field under the Employee node. 26. Click the icon to the right of Value and click Insert field or Group. 27. Use the dropdown to switch to the GetMyInfo secondary data connection. 28. Expand the datafields node, select the Value node, and click Filter Data. Page 4

29. Click Add. We need to add a filter because the Active Directory web service returns multiple keys and their values. At this point, we want only the name. 30. Select Key in the first dropdown and is equal to in the middle dropdown. In the third dropdown, select Type text and type in name (no quotes). 31. Click OK until all dialogs are closed. 32. Switch to the Home tab in the InfoPath 2010 ribbon and click Preview. You will see the current user s data: Page 5

33. Click on Close Preview. CREATE A SECOND DATA CONNECTION Now we need to create a data connection to the Active Directory web service so that the form can obtain the manager for the current user. 34. In the InfoPath 2010 ribbon, select Data and then click on Data Connections. 35. Click Add. 36. Select the radio button to Create a New Connection to and Receive Data. Click Next. Page 6

37. Select the radio button for SOAP Web Service and then click Next. 38. Enter the URL of the service: http://<yourservername>/qdabrawebservice/aduserinfo.asmx. Click Next. 39. Select the operation (Web Method) named GetManagerAlias. Click Next. 40. Click Next. There is no need to check the checkbox of Store a copy of the data in the form template. 41. Uncheck the Automatically retrieve data when form is opened checkbox, click Finish, and then click Close. CREATE A THIRD DATA CONNECTION Now we need to create a data connection to the Active Directory web service so that the form can obtain the manager s data. 42. In the InfoPath 2010 ribbon, select Data and then click on Data Connections. 43. Click Add. 44. Select the radio button to Create a New Connection to and Receive Data. Click Next. 45. Select the radio button for SOAP Web Service and then click Next. 46. Enter the URL of the service: http://<yourservername>/qdabrawebservice/aduserinfo.asmx. Click Next. 47. Select the operation (Web Method) named GetUserInfo. Click Next. 48. Click Next. There is no need to check the checkbox of Store a copy of the data in the form template. Page 7

49. Uncheck the Automatically retrieve data when form is opened checkbox, click Finish, and then click Close. USE THE ACTIVE DIRECTORY DATA TO OBTAIN EMPLOYEE INFO Now that all the data connetions are ready, we can set up the form logic that will auto-populate the Manager Email and Name. 50. In the Data tab of InfoPath 2010, click Form Load. 51. Click New and select Action. 52. Click the blue text under Condition. We will enter a condition because we only want to load this data once, when the form is first created. Page 8

53. Select Select a field or group from the first dropdown and select the manageremailaddress under the Manager node. In the middle dropdown, select Is blank. The condition should look as shown below. 54. Add a second condition, because the rule can only execute when the current user s alias has been detected. Click And. 55. Select Select a field or group from the first dropdown and select the emailaddress under the Employee node. In the middle dropdown, select Is not blank. Click OK. 56. Next to Run these actions, click Add and select Set a field s value. 57. For Field, select the username node in the GetManagerAlias data connection. 58. For Value, select the Value node from the GetMyInfo data connection, but add a Filter, such that Key equals samacccountname. Page 9

59. Next to Run these actions, click Add and select Query for data. 60. Select the GetManagerAlias data connection and click OK. 61. Next to Run these actions, click Add and select Set a field s value. 62. For the Field, select the username field in the GetUserInfo data connection. 63. For the Value, select the GetManagerAliasResult node in the GetManagerAlias data connection. Page 10

64. Next to Run these actions, click Add and select Query for data. 65. Select the GetUserInfo data connection. 66. Next to Run these actions, click Add and select Set a field s value. 67. Click the icon to the right of Field and select the manageremailaddress node under the Manager node. 68. Click the icon to the right of Value and click Insert field or Group. 69. Use the dropdown to switch to the GetUserInfo secondary data connection. 70. Expand the datafields node, select the Value node, and click Filter Data. 71. Click Add. 72. Select Key in the first dropdown and is equal to in the middle dropdown. In the third dropdown, select Type text and type in mail (no quotes). Page 11

73. Click OK until all dialogs are closed. 74. Now we ll set the managername field. Next to Run these actions, click Add and select Set a field s value. 75. Click the icon to the right of Field and select the ManagerName field under the Manager node. 76. Click the icon to the right of Value and click Insert field or Group. 77. Use the dropdown to switch to the GetUserInfo secondary data connection. 78. Expand the datafields node, select the Value node, and click Filter Data. 79. Click Add. 80. Select Key in the first dropdown and is equal to in the middle dropdown. In the third dropdown, select Type text and type in name (no quotes). 81. Click OK until all dialogs are closed. 82. Switch to the Home tab in the InfoPath 2010 ribbon and click Preview. You will see the current user s data, as well as the manager s data. Page 12

83. Click on Close Preview. 84. Optionally, you can right click on each of the four fields that are now being set automatically, and make these read-only, such that the user cannot modify their values. Page 13