Import a filed value from custom database into User Profile using BCS

Hi,
I have a custom DB in SQL with couple of columns.
I need to import one of the fields (userid) into user profile - custom property.
Please guide me to make it done.
My direction seems wrong..since I am new to user profile-BCS concepts.
I created a custom property in user profile services, while "configure synchronization connections', I clicked on new connection.
Type: Business connectivity services, selected
It needs external content type.
I opened CA through designer, clicked on External Content type, I am able to connect SQLDB and related fields.
But, I am not sure what to be done?? How to make my task completed.
Guide me, somebody, please!!
- GEM

This should create the External Content Type
Open SharePoint Designer
Choose the Site where you want the External Content Type to be created
Under Site Objects -> Click External Content Types
In the Ribbon -> Click External Content Types to create a New one
Provide a name for your ECT
Click ‘Click here to discover external data sources and define operations’
Click Add Connection, under Data Source Type choose SQL Server
Provide the connection properties to your SQL Server
Under Data Source Explorer, Expand the tables folder and choose the table you want to connect to
Right Click the Table Name and create a New Read Item Operation
Under Input Parameters, Select the Primary Key of your table and verify that it is map as the identifier. This is important as this will be the column that will be used to sync BCS data to SharePoint. Click on Finish
Right Click the Table Name again and create a New Read List Operation. Follow the steps on K
OPTIONAL: Once done you can create an external Lists based on the content type to verify if you are able to pull data from your External Source
You can verify if the list is created by going to the site where you have deployed the External List. If you encounter a “Access denied by Business Data Connectivity, you can resolve this by going to Central Administration -> Application Management ->
Manage Service Applications -> Business Data Connectivity Service, choose the External Content Type you have created -> Click Set Object Permissions -> Add the account that your are using and Set ‘Execute & Set Permissions’. Refresh the external
list page.
This will create the connection between the BCS properties and the Custom User Properties which are mapped to BCS.
To create a synchronization connection follow the steps below
Go to Application Management -> Manage Service Application -> User Profile Service -> Configure Synchronization Connections
Click Create new Connection
Provide a connection name for your connection
Under Type, choose Business Data Connectivity
Under Business Data Connectivity Entity, choose the External Content Type created on the BCS Step
Choose the property to identity the 1:1 mapping, this is a unique column that should exist on both the BCS Data and the SharePoint User Profile Properties.
This part will create the Custom User Profile Property to hold the BCS Data
Go to Central Administration
Under Application Management click Manage Service Application
Click User Profile Service Application
Click Manage User Properties then select New Property
Fill the necessary fields
Under Add New Mapping, select the BCS Sync connection you have created above and the field from SQL where you want to map this property
Run Profile Synchronization
Artificial intelligence can never beat natural stupidity.

Similar Messages

  • How I can transfer data from the database into a variable (or array)?

    I made my application according to the example (http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/). Everything works fine. I changed one function to query the database - add the two parameters and get the value of the table in String format. A test operation shows that all is ok. If I want to display this value in the text area, I simply drag and drop service to this element in the design mode
    (<s:TextArea x="153" y="435" id="nameText" text="{getDataMeanResult.lastResult[0].name}"  width="296" height="89"  />).
    It also works fine, just a warning and encouraged to use ArrayCollection.getItemAt().
    Now I want to send the value to a variable or array, but in both cases I get an error: TypeError: Error #1010: A term is undefined and has no properties..
    How can I pass a value from the database into a variable? Thank you.
    public var nameTemp:String;
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[0], dir_id);
    nameTemp = getDataMeanResult.lastResult[0].name;
    public var nameArray:Array = new Array();
    for (var i:uint=o; i<3; i++){
    getDataMeanResult.token = authors.getDataMean(arrayOfNumber[i], dir_id);
    nameArray[i] = getDataMeanResult.lastResult[0].name;
    And how i can use syntax highlighting in this forum?

    Astraport2012 wrote:
    I have to go back to the discussion. The above example works fine when i want to get a single value of the database. But i need to pass an array and get an array, because i want to get at once all the values for all pictures tooltips. I rewrote the proposed Matt PHP-script and it works. However, i can not display the resulting array.
    yep, it won't work for Arrays, you'll have to do something slightly more intelligent for them.
    easiest way would be to get your PHP to generate XML, then read that into something like an ArrayList on your HTTPService result event (depends what you're doing with it).
    for example, you could have the PHP generate XML such as:
    <pictures>
         <location>test1.png</location>
         <location>test2.png</location>
         <location>test3.png</location>
         <location>test4.png</location>
         <location>test5.png</location>
         <location>test6.png</location>
    </pictures>
    then you'll read that in as the ResultEvent, and perform something like this on it
    private var tempAC:ArrayList = new ArrayList
    protected function getStuff_resultHandler(event:ResultEvent):void
        for each(var item:Object in event.result.pictures)
           var temp:String = (item.@location).toString();
           tempAC.addItem(temp);
    in my example on cookies
    http://www.mattlefevre.com/viewExample.php?tut=flash4PHP&proj=Using%20Cookies
    you'll see an example of how to format an XML structure containing multiple values:
    if($_COOKIE["firstName"])
            print "<stored>true</stored>";
            print "<userInfo>
                    <firstName>".$_COOKIE["firstName"]."</firstName>
                    <lastName>".$_COOKIE["lastName"]."</lastName>
                    <userAge>".$_COOKIE["userAge"]."</userAge>
                    <gender>".$_COOKIE["gender"]."</gender>
                   </userInfo>";
        else
            print "<stored>false</stored>";
    which i handle like so
    if(event.result.stored == true)
                        entryPanel.title = "Welcome back " + event.result.userInfo.firstName + " " + event.result.userInfo.lastName;
                        firstName.text = event.result.userInfo.firstName;
                        lastName.text = event.result.userInfo.lastName;
                        userAge.value = event.result.userInfo.userAge;
                        userGender.selectedIndex = event.result.userInfo.gender;
    depends on what type of Array you're after
    from the sounds of it (with the mention of picture tooltips) you're trying to create a gallery with an image, and a tooltip.
    so i'd probably adopt something like
    <picture>
         <location>example1.png</location>
         <tooltip>tooltip for picture #1</tooltip>
    </picture>
    <picture>
         <location>example2.png</location>
         <tooltip>tooltip for picture #2</tooltip>
    </picture>
    <picture>
         <location>example3.png</location>
         <tooltip>tooltip for picture #3</tooltip>
    </picture>
    etc...
    or
    <picture location="example1.png" tooltip="tooltip for picture #1"/>
    <picture location="example2.png" tooltip="tooltip for picture #2"/>
    <picture location="example3.png" tooltip="tooltip for picture #3"/>
    etc...

  • Default value from Oracle database not working

    Hi Everyone:
    We use JHeadstart 10.1.3.1.
    I have an Oracle table that has 2 fields that are both mandatory and have default values. We have been spending a lot of time putting this type of business logic in the database so that these checks do not have to happen in the JHeadstart Application.
    The mandatory field is being brought into our Entity Object (as the mandatory checkbox is checked), but the default values do not seem to be getting pulled from the database. Even though the default value is defined at the database level, when trying to insert a new row into the table, a value must be filled in by the User running the application, otherwise an Oracle error is received that it is a mandatory field and must have a value. This happens when I am running the ApplicationModule by right-clicking it and clicking on "Test" as well as when running the Application
    Does JDeveloper not pull default values from the database? Is there something I am missing?
    Just for clarity, we have developed a re-usable library of entity objects that imports all of our Business Components similar to the following link
    http://download-uk.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcadvgen007.htm#CHEFECGD This is working well, but want to mention it here in case it is a consideration.
    Thanks in advance.
    Mary
    U of W

    Steven:
    Thanks so much for taking the time to reply. Good to hear from you. Hope you are keeping warm in the Netherlands!
    During synchronization or initial creation of the Business Components from the Oracle tables, JDeveloper brings over the mandatory attribute as defined in the database.
    Would it be possible, in a future release, to also bring over the default values found in the database and assign them to the "Default" property in the Entity Objects Editor?
    I always like to follow the best practice of defining something in one spot to make maintenance as easy as possible and avoid manual steps.
    Thanks very much for your time.
    Mary B
    U of Windsor

  • Error while populating drop down list with values from a database

    Hi all,
    I have a JSP page with a drop down list that is to be populated with values from a database.
    This is the code in my JSP file:
         <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers();
                Iterator<Integer> iterator = floornumbers.iterator(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% while (iterator.hasNext()) { %>
                       <option value="<%=iterator.next().intValue()%>"> <%=iterator.next().intValue()%> </option>
                       <% } %>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>   The DataManager.java class simply forwards this to its respective Peer class, which has the code shown below:
          package seatplanner.model;
        import java.sql.Connection;
        import java.sql.ResultSet;
        import java.sql.SQLException;
        import java.sql.Statement;
        import java.util.ArrayList;
        /* This class handles all floor operations */
         public class FloorPeer
         /* This method returns all the floor numbers */
         public static ArrayList<Integer> getAllFloorNumbers(DataManager dataManager) {
            ArrayList<Integer> floornumbers = new ArrayList<Integer>();
            Connection connection = dataManager.getConnection();
            if (connection != null) {
              try {
                Statement s = connection.createStatement();
                String sql = "select ID from floor order by ID asc";
                try {
                  ResultSet rs = s.executeQuery(sql);
                  try {
                    while (rs.next()) {
                      floornumbers.add(rs.getInt(1));
                  finally { rs.close(); }
                finally {s.close(); }
              catch (SQLException e) {
                System.out.println("Could not get floor numbers: " + e.getMessage());
              finally {
                dataManager.putConnection(connection);
            return floornumbers;
         }  The classes compile properly, but when I load this page up in Tomcat it just freezes and does not load the form. I tested the DB connection and it works fine.
    What am I doing wrong in the JSP code?
    Thanks for the help in advance.
    UPDATE: I commented out the form, and added <%=floornumbers.size()%> right above the commented code to check if the ArrayList is indeed getting populated with the values from the database (the values are of type integer in the database). The page still freezes like before. I'm puzzled now :confused: .

    Wrong usage of Iterator.
    <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers();
                Iterator<Integer> iterator = floornumbers.iterator(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% while (iterator.hasNext()) {
                                    Integer inte = iterator.next();
                            %>
                       <option value="<%=inte.intValue()%>"><%=inte.intValue()%></option>
                       <% } %>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>or make use of enhanced loop as you are already using J2SE 5.0+ for avoiding confusions.
    <!-- Form for picking the floor -->
             <!-- Get the available floors -->
             <% ArrayList<Integer> floornumbers = dataManager.getAllFloorNumbers(); %>
             <!-- Create the form for users to select the floor -->
             <form id="floorselectionform">
                  <input type="hidden" name="action" value="floorselected"/> <!-- Guides the servlet to redirect to the appropriate page -->
                  Select floor | <select name="floorselector" id="floorselector">
                       <% for(Integer inte:floornumbers) {%>
                       <option value="<%=inte.intValue()%>"><%=inte.intValue()%></option>
                       <%}%>
                  </select>
                  <input type="submit" value="Go!"/>
             </form>and a lot better thing would be making usage of basic Taglib provided with JSTL spec or struts spec which make life easier and simple.
    something like usage of <c:forEach/> or <logic:iterate/> would be lot better without writing a single scriptlet code.
    Hope that might help :)
    REGARDS,
    RaHuL

  • Exporting and importing a field value from one screen to another in BSP

    Hi All,
    I am working on a BSP application which consists of multiple screens. I have to export the value corresponding to a value selected from a drop down and import it in another screen so that in the next screen values can be populated corrsponding to the value selected in the drop down in the first screen.
    I tried using SET/GET parameter and also EXPORT/IMPORT so that I can get value from one screen into another screen but both the statements are not working in BSP....
    Please help...
    Vivek Gupta
    Edited by: guptav_infy on Feb 21, 2010 11:33 AM

    Hi All,
    This question is still un answered. please reply ..
    Vivek

  • How to I convert data from oracle database into excel sheet

    how to I convert data from oracle database into excel sheet.
    I need to import columns and there datas from oracle database to microsoft excel sheet.
    Please let me know the different ways for doing this.
    Thanks.

    asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
    You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
    Justin

  • Retrieving  the score value from the captivate into flash

    Hi,
    We have used Captive 2 to built course & publishing it as
    a non e-learning output
    and loading the published swf file in custom built flash
    movie (wrapper).
    We have accessed some of the captivate variables to control
    the captivate swf.
    Does anyone know how to retrieve the score value from the
    captivate into flash ?
    Thanks
    Regards
    Chetan

    Hello,
    Use the Object Browser in .NET and search on "Summaryinfo" and you'll find the API to use.
    Thank you
    Don

  • How To Concatenate Column Values from Multiple Rows into a Single Column?

    How do I create a SQL query that will concatenate column values from multiple rows into a single column?
    Last First Code
    Lesand Danny 1
    Lesand Danny 2
    Lesand Danny 3
    Benedi Eric 7
    Benedi Eric 14
    Result should look like:
    Last First Codes
    Lesand Danny 1,2,3
    Benedi Eric 7,14
    Thanks,
    David Johnson

    Starting with Oracle 9i
    select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
    from
    (select last, first, code, row_number() over(partition by last, first order by code) rn
    from a)
    connect by last = prior last and first = prior first and prior rn = rn -1
    start with rn = 1
    group by last, first
    LAST       FIRST      CODES                                                                                                                                                                                                  
    Lesand         Danny          1,2,3
    Benedi         Eric           7,14Regards
    Dmytro

  • How can i store values from my String into Array

    Hi guys
    i wants to store all the values from my string into an array,,,, after converting them into intergers,,,, how i can do this becs i have a peice of code which just give me a value of a character at time,,,,charat(2)...BUT i want to the values from String to store in an Array
    here is my peice of code which i m using for 1 char at time
    int[] ExampleArray2 = new int[24];
    String tempci = "Battle of Midway";
    for(int i=0;i>=tempci.length();i++)
    int ascii = tempci.charAt(i); //Get ascii value for the first character.

    public class d1
         public static final void main( String args[] )
              int[] ExampleArray2 = new int[24];
              String tempci = "Battle of Midway";
              for(int i=0;i<tempci.length();i++)
                   int ascii = tempci.charAt(i);
                   ExampleArray2=ascii;
              for(int i=0;i<ExampleArray2.length;i++)
                   System.out.println(ExampleArray2[i]);

  • How to get the value from a database without submitting a jsp page

    I have a jsp which has a text box depending on the value entered I want to get the value from a database for other two fields with out submitting jsp page. I am using struts.
    Thanks For any assistance provided.

    Alright,here is an example for you for the first case.
    Present.jsp:
    ============
    <html:html>
    <head>
    <title><html:message key="page.title"/></title>
    </head>
    <body>
    <html:form action="ChangeEvent.do">
    <html:hidden property="method"/>
    <!-- Submitting the Form onKeyUp of EmpId field and trying to save the
         state of the Form in the scope of session -->
    Emp Id:<html:text property="empId" size="5"  onkeyup="if(true){this.form.elements[0].value='populateDetails';this.form.submit();}"/>
    Emp Name:<html:text property="empName" size="10" />
    Email Address:<html:text property="email" size="10" />
    <html:submit>Submit</html:submit>
    </html:form>
    </body>
    </html:html>struts-config.xml:
    ==================
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <!-- Form bean which stores the properties of all the Form elements -->
    <form-beans>
    <form-bean name="employeeFormBean" type="org.apache.struts.action.DynaActionForm">
       <form-property name="empId" type="java.lang.String"/>
       <form-property name="empName" type="java.lang.String"/>
       <form-property name="email" type="java.lang.String" />   
    </form-bean>
    </form-bean>
    <action-mappings>
    <action path="/ChangeEvent" type="Test.GetChangeAction" name="employeeFormBean" scope="request" parameter="method"> 
    <!-- On successful call of DB the Page has to be forwarded to the same page again by
          uploading updated form bean values. -->
    <forward name="success" path="/Present.jsp"></forward>
    <forward name="failed" path="/error.jsp"></forward>
    </action>
    </action-mappings>
    </struts-config>GetChangeAction.java:
    =====================
    public class GetChangeAction extends DispatchAction{
      public ActionForward populateDetails(ActionMapping mapping,ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            DynaActionForm dForm = (DynaActionForm)form;
            String empId = dForm.get("empId");     
            // calling Model / Db and then getting back Employee Details
            EmployeeBean eb = ModelUtils.getDetails(empId);
            // Updating form bean by updating values from the Model 
            dForm.set("empName".eb.getEmpName()); 
            dForm.set("email".eb.getEmail());
            return mapping.findForward("success");
    }well to me this should work regardless to any browser but we need to make sure we put in our logic properly.

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • How to get the selection parameters from logical database into one of the t

    Hi Sap ABAP Champians,
    How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
    Please help me for this
    Thanks
    Basu

    Hi
    Thanks, that will work, but then I'll have to insert code into all my reports.
    I can see that "Application Server Control Console" is able to rerun a report.
    This must mean that the Report Server has access to the runtime parameters.
    But how?
    Cheers
    Nils Peter

  • Import an FLV file from Adobe Connect into Premiere Elements 12?

    The Adobe Connect support staff recommended that we use Adobe Premiere Elements to edit the FLV file that we exported out of their software.  We purchased Adobe Premiere Elements 12 based on that advice.  Now we see that FLV files are not on the list of supported import files. 
    How can I import an FLV file from Adobe Connect into Adobe Premiere Elements 12 for editing?

    Welcome to the forum.
    Over the years, I have used Moyea's Flash Importer plug-in for PrPro, and it has worked perfectly. With about PrPro CS 4, IIRC, Adobe did add an FLV Importer, so Moyea began to suspend development of that plug-in. Then, with the release of the CC version of PrPro, they dropped FLV completely.
    Now, Moyea does have other programs, but I do not know if any of them are plug-ins for PrE. However, many of their programs can create, edit and output FLV.
    There is also a (free, if memory serves) FLV converter, FLV to AVI, which I used to convert FLV files, before I discovered the Moyea plug-in for my PrPro.
    I would look into Moyea, to see if there is anything, that will work as a plug-in to PrE, http://www.video-to-flash.com/products/, and if not, explore a program, such as FLV to AVI: http://www.pazera-software.com/products/flv-to-avi-converter/
    Good luck,
    Hunt

  • How can I export projects from PMDB1 database into existing PMDB2 database?

    Does datapump handle this? I have been told my only option is XER format but I have thousands of projects to move from one database into another existing database.

    Migrate.bat will migrate an entire database from one platform to another (eg: Oracle to MS SQL SRVR) but for selective projects you would need to move them via PPM Application export (XER/XML). Your other option as someone suggested is to upgrade the entire database schema to a newer version if that is the end goal, but it sounds more like you have two existing database schemas to consolidate.

  • I cannot import music I bought from another site into iTunes.  The files are there but they won't import into Itunes.  How can I fix this?  Thanks!

    I cannot import music I bought from another site into iTunes.  The files are there but they won't import into Itunes.  How can I fix this?  Thanks

    What format are they in?
    What happens when you try?
    Have you tried placing a copy in the Automatically add to iTunes folder?
    tt2

Maybe you are looking for

  • How to install WD My Book World drive on Yosemite Mac

    I am a novice Mac user and need installation instructions for Western Digital My Book World (model #WD10000H1NC-00) external drive to a Mac (Yosemite 10.10.1). I downloaded and installed WD-Anywhere-Backup-Mac-2.5.125.zip from the WD site, but as am

  • Added a check to Text to sequence file result in Test Stand hang up.

    I added the check in text to sequence file translator.vi (the file is attached) With this addition I generated the dll. Test Stand load the sequence file without any problem for the first time. If I add a space to the sequence file and save the file;

  • Any help with Linkskys PrintServer PSUS4, G4 and HP1200 in a wired network?

    Wired the house with cat 6e wire. Verizon FIOS is working great on a network of Mac G4 Powerbook; Mac G4 PowerPC and two PC's. Hooked in a Linksky's PrentServer to the network - the Mac won't recognize the HP 1200 printer. What settings should I be p

  • Running total in footer

    I have a table with several In, Out and Bal columns. I would like a footer row that shows the current balance for each Bal column. So it needs to reference the most recent row. Any ideas how to do this?

  • Exceptions from script menus open ExtendScript Toolkit

    I'm having trouble with exceptions thrown by scripts that appear in custom menus. Whenever an error is encountered when thrown by a script executed from one of these menus, it causes the ESTK to open and break on the offending line. For extra frustra