Comparar colunas de duas listas do Sharepoint 2013

Pessoal, minha dúvida é a seguinte:
Tenho duas listas no Sharepoint, a Lista A que é uma lista com um termo de aceite, onde você deve preencher com seu CPF e clicar no botão de aceite do termo. A Lista B possui uma base de dados com todos os usuários, onde possui as colunas: Nome, CPF, matricula,
etc.
Eu preciso que ao salvar um item na Lista A, o Sharepoint faça uma validação na Lista B, se o CPF foi encontrado em algum item da Lista B, puxe os campos da Lista B para a Lista A.
Isso é possível por meio do Workflow do Sharepoint Designer? Como deveria ser feito?
Ou então, como eu poderia fazer isso com JavaScript?

You can achieve in many ways, using InfoPath/Workflow/EventHandler etc.
The most effective way is transforming the list form to InfoPath form because other approaches only trigger after the data insertion in List A and no way you can prevent that if SCN does not match. But with InfoPath you can put a check before data instertion.
My approach is stated below...
1. List schemas...
  List A
Social Security Number | Single line of text   
Term  | Single line of text  
Person Name |  Single line of text  
Registration Number |  Single line of text
 List B
Social Security Number |  Single line of text   
Person Name |  Single line of text  
Registration Number |  Single line of text 
2. Convert the listform of List A to InfoPath
3. Add secondary dataconnection of List B...do not autopopulate at form load
4. Disable default Submit and set the form with button submit using rules
5. Add rules to submit button...
Rule 1 
Action : Query using data connection to List B
Rule 2
Condition : If Any occurrence of SSN of List B is equals to SSN of current item in List A
Action :
Set Person Name in List A from List B where (List B)SSN = (List A)SSN
Set Registry Number in List A from List B where (List B)SSN = (List A)SSN
Submit using data connection
Close the form
Sample InfoPath Form

Similar Messages

  • How to get attendies count for a calendar list in sharepoint 2013?

    Hi everybody,
    I am using calendar list in SharePoint 2013 for my project.
    Could please tell me how to get the count of attendees using SP Designer or OOTB calculated field.
    Because I want to display the fields like
    TOTAL SEATS =20
    Attendees= Need count
    Avail seats= total - Attendees count.
    In that way I want to show information about availability seats for training session.
    Regards,
    Dhayanand

    Hi Dhaya
    Please refer the links.Hope it helps :-)
    http://social.msdn.microsoft.com/Forums/en-US/b8677dc5-3eb1-4bdc-92f2-f57201bfabb1/field-that-counts-attendees?forum=sharepointcustomizationprevious
    http://sharepoint.stackexchange.com/questions/54253/use-count-related-column-value-as-int-in-a-sp-designer-workflow

  • Issue After Rating setting is enabled to the Discussion Board List in SharePoint 2013.

    Hi ,
    We are facing issues After Rating field is added to the Discussion Board List in SharePoint 2013. We are getting below error while adding a new item or editing a new item. Did anyone got this issue earlier and any solution for this.
    Ashish Kumar Baranwal

    Users which were getting issues actually getting below error:
    [COMException (0x81020014): One or more field types are not installed properly. Go to the list settings
    page to delete these fields.<nativehr>0x81020014</nativehr><nativestack></nativestack>]
       Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String
    bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames,
    Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter
    pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +0
       Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName,
    Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames,
    Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter
    pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +565
    [SPException: One or more field types are not installed properly. Go to the list settings page to delete
    these fields.]
       Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +146
       Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName,
    Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames,
    Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFil
    Ashish Kumar Baranwal

  • Issue After Rating field is added to the Discussion Board List in SharePoint 2013

    Hi ,
    We are facing issues After Rating field is added to the Discussion Board List in SharePoint 2013. We are getting below error while adding a new item or editing a new item. Please help on this.
    Ashish Kumar Baranwal

    Users which were getting issues actually getting below error:
    [COMException (0x81020014): One or more field types are not installed properly. Go to the list settings page to delete these fields.<nativehr>0x81020014</nativehr><nativestack></nativestack>]
       Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID,
    String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress,
    Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +0
       Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String&
    pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration,
    Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +565
    [SPException: One or more field types are not installed properly. Go to the list settings page to delete these fields.]
       Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +146
       Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String&
    pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration,
    Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +2336
    Ashish Kumar Baranwal

  • How to change the url of "Add New Item" of a particular list in SharePoint 2013???

    Hi Guys,
    How to change the url of "Add New Item" of a particular list in SharePoint 2013???
    I need to redirect it into the page where I have created my Visual web part.
    Please suggest
    Warm Regards,
    Tony Joy

    Hi,
         There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
    Hope it helps!!!
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • Generate reports from lists in SharePoint 2013 (Office 365)

    Hello everyone,
    We are in the need to generate reports from lists in SharePoint 2013. The reports would do data mingling between lists (like a relational database) and generate the reports in HTML and maybe a link to pdf on the SharePoint site.
    We are currently generating reports in Access. This is an issue for two reasons:
    Reports cannot be generated on the fly. Whenever we want reports in pdf form, we have to go into Access and run our reports macro written in VBA. It essentially generates the reports as pdf into our synced SkyDrive, which syncs it to our SharePoint site
    Report generation cannot be done by the client. This is due to the same concept as (1). We need to generate reports in Access.
    Is there any way to do this in SharePoint 2013? Are there any apps that do this?
    Any guidance or help would be appreciated.
    FYI: Our SharePoint server is hosted on the Office 365 network. It is not a local system.
    Thanks

    One option is to run the info into a Word Template and then run Word Automation Services to convert to PDF, but I think you're still going to run into some similar issues.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How go generate Popularity Trends report for a custom list in SharePoint 2013

    Hi, 
    I want to generate  Popularity Trends report for a custom list in SharePoint 2013, is it possible?
    Thanks
    khadar pasha

    According to
    this link you should be able to access this option from the Items tab. for this to work, the Analytics Processing Component needs to be running.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Custom list in Sharepoint 2013 for training booking purpose

    Kindly note that I am trying to  do custom list in Sharepoint 2013 for training booking purpose
    As below :
    The user should enter the user name  - it works fine
    The user should select the data from the choice list
    The requirement is , I need to limit in each  day of the training 20 seats (20 booking only) only
     Can you advise how to do so.
    [email protected]
    Basil

    check below post and video on how to build the event receivers
    http://www.sharepointpals.com/post/How-to-create-a-custom-list-level-event-receiver-in-SharePoint-2013-and-SharePoint-2010
    https://www.youtube.com/watch?v=wZf2xvEM5Io
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Create a private view for Task List in SharePoint 2013

    I have a Task List, How can I Create a Private View that every user can see Only his Tasks, and Sync it to his outlook (sync only his tasks) , no one can see or sync tasks not assigned to him?

    Hi,
    According to your post, my understanding is that you wanted to limit view permission on particular users in SharePoint.
    There is no out of the box way to achieve it in SharePoint.
    CodePlex has a good tool SharePoint 2013 Column & View Permission, it have some features as below, we can use it.
    Features:
    Column Permission
    - Hide or Read Only Columns in a List Forms (New/Edit/Display)
    - Hide Columns in Views
    - Hide Columns in Alert Me Emails
    - Specify the permission for Users, SharePoint Groups or Active Directory Groups
    View Permission
    - Disable Views
    - Automatically Disable Views in Custom WebPart Zones
    - Specify the permission for Users, SharePoint Groups or Active Directory Groups
    More information: https://sp2013columnpermission.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Retrieve data from a list in SharePoint 2013 provider hosted App using CSOM

    I have developed a provider hosted app in SharePoint 2013. As you already know, Visual Studio creates web application and SharePoint app. The web application gets hosted inside IIS and the SharePoint App in SharePoint site collection. I'm trying to get
    data from a list hosted in SharePoint using CSOM. But I get ran insecure content error. 
    here is my code in Default.aspx
        <script type="text/javascript" src="../Scripts/jquery-1.8.2.js"></script>
        <script type="text/javascript" src="../Scripts/MicrosoftAjax.js"></script>
        <script type="text/javascript" src="../Scripts/SP.Core.js"></script>
        <script type="text/javascript" src="../Scripts/INIT.JS"></script>
        <script type="text/javascript" src="../Scripts/SP.Runtime.js"></script>
        <script type="text/javascript" src="../Scripts/SP.js"></script>
        <script type="text/javascript" src="../Scripts/SP.RequestExecutor.js"></script>
        <script type="text/javascript" src="../Scripts/App.js"></script>
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head runat="server">
            <title></title>
        </head>
        <body>
            <form id="form1" runat="server">
            <div>
                <input id="Button1" type="button" value="Get title via CSOM" onclick="execCSOMTitleRequest()" /> <br />
                <input id="Button2" type="button" value="Get Lists via CSOM" onclick="execCSOMListRequest()" />
            </div>
                <p ID="lblResultTitle"></p><br />
                <p ID="lblResultLists"></p>
            </form>
        </body>
        </html>
    and App.js is:
        var hostwebUrl;
        var appwebUrl;
        // Load the required SharePoint libraries
        $(document).ready(function () {
            //Get the URI decoded URLs.
            hostwebUrl =
                decodeURIComponent(
                    getQueryStringParameter("SPHostUrl")
            appwebUrl =
                decodeURIComponent(
                    getQueryStringParameter("SPAppWebUrl")
            // resources are in URLs in the form:
            // web_url/_layouts/15/resource
            var scriptbase = hostwebUrl + "/_layouts/15/";
            // Load the js files and continue to the successHandler
            //$.getScript(scriptbase + "/MicrosoftAjax.js",
            //   function () {
            //       $.getScript(scriptbase + "SP.Core.js",
            //           function () {
            //               $.getScript(scriptbase + "INIT.JS",
            //                   function () {
            //                       $.getScript(scriptbase + "SP.Runtime.js",
            //                           function () {
            //                               $.getScript(scriptbase + "SP.js",
            //                                   function () { $.getScript(scriptbase + "SP.RequestExecutor.js", execCrossDomainRequest); }
        function execCrossDomainRequest() {
            alert("scripts loaded");
        function getQueryStringParameter(paramToRetrieve) {
            var params = document.URL.split("?")[1].split("&");
            var strParams = "";
            for (var i = 0; i < params.length; i = i + 1) {
                var singleParam = params[i].split("=");
                if (singleParam[0] == paramToRetrieve)
                    return singleParam[1];
        function execCSOMTitleRequest() {
            var context;
            var factory;
            var appContextSite;
            var collList;
            //Get the client context of the AppWebUrl
            context = new SP.ClientContext(appwebUrl);
            //Get the ProxyWebRequestExecutorFactory
            factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
            //Assign the factory to the client context.
            context.set_webRequestExecutorFactory(factory);
            //Get the app context of the Host Web using the client context of the Application.
            appContextSite = new SP.AppContextSite(context, hostwebUrl);
            //Get the Web
            this.web = context.get_web();
            //Load Web.
            context.load(this.web);
            context.executeQueryAsync(
                Function.createDelegate(this, successTitleHandlerCSOM),
                Function.createDelegate(this, errorTitleHandlerCSOM)
            //success Title
            function successTitleHandlerCSOM(data) {
                $('#lblResultTitle').html("<b>Via CSOM the title is:</b> " + this.web.get_title());
            //Error Title
            function errorTitleHandlerCSOM(data, errorCode, errorMessage) {
                $('#lblResultLists').html("Could not complete CSOM call: " + errorMessage);
        function execCSOMListRequest() {
            var context;
            var factory;
            var appContextSite;
            var collList;
            //Get the client context of the AppWebUrl
            context = new SP.ClientContext(appwebUrl);
            //Get the ProxyWebRequestExecutorFactory
            factory = new SP.ProxyWebRequestExecutorFactory(appwebUrl);
            //Assign the factory to the client context.
            context.set_webRequestExecutorFactory(factory);
            //Get the app context of the Host Web using the client context of the Application.
            appContextSite = new SP.AppContextSite(context, hostwebUrl);
            //Get the Web
            this.web = context.get_web();
            // Get the Web lists.
            collList = this.web.get_lists();
            //Load Lists.
            context.load(collList);
            context.executeQueryAsync(
                Function.createDelegate(this, successListHandlerCSOM),
                Function.createDelegate(this, errorListHandlerCSOM)
            //Success Lists
            function successListHandlerCSOM() {
                var listEnumerator = collList.getEnumerator();
                $('#lblResultLists').html("<b>Via CSOM the lists are:</b><br/>");
                while (listEnumerator.moveNext()) {
                    var oList = listEnumerator.get_current();
                    $('#lblResultLists').append(oList.get_title() + " (" + oList.get_itemCount() + ")<br/>");
            //Error Lists
            function errorListHandlerCSOM(data, errorCode, errorMessage) {
                $('#lblResultLists').html("Could not complete CSOM Call: " + errorMessage);
    Any solution is appreciated.

    Hi,
    To retrieve data from list in your provider-hosted app using SharePoint Client Object Model(CSOM), you can follow the links below for a quick start:
    http://msdn.microsoft.com/en-us/library/office/fp142381(v=office.15).aspx
    http://blogs.msdn.com/b/steve_fox/archive/2013/02/22/building-your-first-provider-hosted-app-for-sharepoint-part-2.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • Error Creating a List in SharePoint 2013

    I have a strange error I'm not able to solve. I've done several searches on this topic and found nothing even remotely like it.
    Here's the situation, some of my SharePoint 2013 users (who have Full Control rights on their SharePoint sites) are getting the following error when they attempt to create a new list on their sites:
    error_pagetitle
    An error occurred while getting the items.
    [AgrumentNull_Generic]
    Agruments:
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See Link  Parameter name: s
    When I follow the same steps, I get the list templates that I expect to get and can create lists. I tested this by allowing a user who was getting this error to login to SharePoint with their credentials on my computer. They got the error again. So it is
    not a problem on the users computer.
    Steps to reproduce this error:
    1. On the affected site, click on the "All Site Content" link.
    2. On the all site content page, click on the "Create" link.
    3. Error message displays.
    When I clicked on the link in the error message, I received the following error: "The definition of the resource ID could not be found."
    I checked the ULS logs and found nothing helpful. Can anyone give me advice on how to resolve this error? Anything would help.
    Thank you.

    Having the same issue.  If the end user had Full Control, what permission was missing and what list could he see if he could never create a list?

  • Find and item Search not working inside custom list in sharepoint 2013

    HI,
    In Sharepoint 2013 , i configured the Search. it is working in home page search Box and Find item search box  inside custom list as well But one particualr custom list  Find an item is not working. Any clue ?Thanks in Advance
    Thanks
    sanjay pradhan  

    Hi,
    According to your description, my understanding is “find an item” search box in a custom list not work in your environment.
    As search box and “find an item” search box in your home page are working, so the search service application is working.
    Do you have any customzation to the particular custom list ?
    If No, I suggest you can full crawl the data in Central Administration ->Manage Service Application->” Search Service Application”-> Manage Content Sources” to test if it works. 
    Also, please check if you have set "Allow items from this list to appear in search results" in list settings->Advanced Setting to true
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Export and import a list in sharepoint 2013

    Hi Team,
    I have an share point 2013 application which is an input wizard that allows user to enter some employe information and after user submits the same. these records are stored in form of sharepoint list.
    as part of load testing , I need to create this list with more than 100 records. i can use coded ui to enter information and create records, but this will take good amount of time.
    is there any way i can import the list to an excel and then add my test records using some  c# code and then import back the excel to share point list.
    Can any one help in this regard.
    Thanks,

    Hi,
    There are many options we can select to import the excel file to SharePoint list.
    First option,  you can use the “Export to Excel” option to export the list items to a excel file, create records in the excel, then save the file to local machine.
    Now, you can use the “ Export Table to SharePoint List” option under the DESIGN table tool in the Excel to export the file to a new list in the SharePoint.
    You can also use Excel 2007 Add-in(it works in SharePoint 2013) to achieve the same function.
    http://msdn.microsoft.com/en-us/library/bb462636%28v=office.11%29.aspx
    In SharePoint, we can also use the Import Spreadsheet app to import the Excel file to a new SharePoint list.
    Site Content->add an app->Import Spreadsheet
    What’s more, you can also use the SPImporter tool to import data to SharePoint.
    https://spimporter.codeplex.com/
    You can also import the Excel data to SharePoint list programmatically.
    http://ravimaloth.blogspot.com/2013/06/upload-excel-data-into-sharepoint.html
    http://social.technet.microsoft.com/wiki/contents/articles/18830.sharepoint-2010-import-data-from-excel-into-a-list-using-powershell.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Setting up records management for a custom list in SharePoint 2013

    In a workflow 2013, I am planing to 'declare a record' on a custom list. I am doing this since I do not want users to be able to change the custom list once the record is submitted to workflow 2013.
    There are options in record declarations settings that I am not certain what to set like what values are appropriate in 'declaration of records can be performed by'.
    Since I am my own administrator on my test SharePoint 2013 website, would you tell me what I can do at the administrator's site level to enable the 'mark a record and/or declare a record feature? Basically I would like to know what options to set for a custom
    list so the records can not be modified once the custom list has been submitted to the workflow.

    Hi Wendy,
    There are 2 ways either in place records or records archive it will depend on your requirments.
    check this article it will guide you about how to configure each way
    https://support.office.com/en-nz/article/Implement-Records-Management-0bfe419e-eb1d-421a-becd-5be9fed1e479?ui=en-US&rs=en-NZ&ad=NZ
    To decide which one you will choose check the comparison in this link
    https://technet.microsoft.com/en-us/library/ee424394.aspx
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • Sorting and filtering by select-multi person or group field in the list in SharePoint 2013

    Hi everybody,
    In SharePoint 2013, I have defined a column as "Person or Group" field, which you allow for multiple selections. when I try to sort/filter it by this field in the list. The field doesn't show up in the dropdown. If I changed "Allow multiple
    selections" option to "No" by clicking the column name to edit it in "List Settings", the field can show up sort in the dropdown.
    How about support sorting and filter by select-multiple "Person or Group" field in sharepoint 2013?
    BTW, in SharePoint 2010, it can support this issue no matter what the "Allow multiple selections" option the request is.
    Any help would be great!
    Thanks,
    Jodie

    Hi Jodie,
    Can you please give this as a try.
    To fix the Filter Issue on Assigned To Column. We need to run the following scripts.
    The field which allows more than one values or which allows multiple selections. The multi-valued fileds are non-sortable,
    non-filterable. Multi-valued fields cannot be indexed
    $web=Get-SPWeb
    $list=$web.Lists[] $field=$list.Fields[ColumnName] $strSchema=$field.SchemaXml $str=Schema$strSchema.Replace("Sortable=`"FALSE`"","Sortable=`"true`"")
    $field.SchemaXml = $strSchema
    Krishana Kumar http://www.mosstechnet-kk.com
    Thanks for your reply, I have tried to run the scripts, but it still cannot work. The following is my scripts:
    $web=Get-SPWeb 'http://cst-server-01'
    $list=$.web.Lists["Product Request"]
    $field=$list.Fields["Applicant"]
    $strSchema=$field.SchemaXml
    $str=Schema$strSchema.Replace("Sortable='"FALSE'"", "Sortable='"True'"")
    $field.SchemaXml = $strSchema

Maybe you are looking for