How can i find custom fields in a document library?

Hi, guys.
I need your help, please.
My users sometimes creates custom columns i document libraries using the SharePoint GUI. That's fine, but I need to distinguish these columns from SharePoints own columns. So here's my task at hand:
I need to find all the fields (columns) for a document in a document library that were added by a user, i.e. NOT SharePoint standard fields. Is there a way to do this, like a property or something?
In my case, I have an event receiver triggering on ItemUpdated. The following snippet iterates through all fields of my item and I can read the item title and the item value.
How can I filter this to only show title and value of
custom fields?
foreach (SPField field in properties.ListItem.Fields)
string title = field.Title;
string value = string.Empty;
if (properties.ListItem[field.Title] != null)
value = properties.ListItem[field.Title].ToString();
// Do something with 'title' and 'value'
Again, the code above gives me ALL columns and I only want columns created by users. If it's possible, I'd like to skip custom content type fields.

Hi,
There is a custom column “CustomField1” in my library, after running the code, the output would be:
In fact, these fields do not exist in the
SPBuiltInFieldId object:
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbuiltinfieldid_members.aspx
As the documentation about these fields seems not being documented so well at this moment, to avoid the influence in your solution, you can exclude these fields explicitly
in the if block.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Patrick Liang
TechNet Community Support

Similar Messages

  • How can i add Custom fields into the

    Dear Experts
    We have Ecc6.0 system,
    How can i add Custom fields into the Infotype Screen(PA30),i heard that we do it by PM01 Tcode.
    But in PM01 i am unable to find the enhance infotype tab.
    How can i do it ....pls help.....
    Regards
    Sajid

    Hi,
    Do it thru the third tab : Single Screen.
    There write down the infotype number (e.g. 0022) and say generate objects.
    Regards,
    Dilek

  • How can i find the fields for &DOPOS_CPY-WRBT1(I13.0)&

    Hi All,
    In sapscripts, what is the meaning for (13.0)?
    how can i find the fields for &DOPOS_CPY-WRBT1(I13.0)&?
    Thanks.

    meaning for (13.0) is write to form this variable's 13 character non decimal and 0 character decimal places.
    shortly not write decimal places.
    DOPOS_CPY-WRBT1 is exist in form caller program. check in abap program not in sapscript.
    take care
    Çağatay

  • How can I find Custom Sapscirpts

    How can I find custom Sapscripts in my existing system
    regards
    AJ

    AJ,
    Z* in SE71 and SMARTFORMS.You can also check the table TNAPR as well as TTXFP to know the print programs of the respective forms.
    K.Kiran.

  • How can I find out in the billing document, who creat the billing.

    how can I find out in the billing document, who creat the billing.
    thanks.

    On  VF03 -Enter billing document number>>press on enter button>>you will get overview of billing document item>> select menubar>>Goto>>header>>header parthner>>you will get full screen with Name "Created By".
    Thanks&Rgds,
    Rajesh

  • My iPhoto library just reverted to an old library: How can I find, and re-access my current library?

    My iPhoto library just reverted to an old library: how can I find and re-access my current library?  I opened my iPhoto, and got the message that it needed to "update" to use this library.  I thought maybe there had been a software update since I last opened the program (2 days ago).  The library it opened was saved in a file on the desk-top.  My current file was just in iPhoto.  Please help!

    Best option: Restore from your back up.
    Otherwise:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • How can i find  out field for a particular component type

    hi,
    how can i find out for particular component name is belongs to this field.....that means REF_DOC_NO componemt is belongs to xblnr field ..../.if we know only component type ...how to find the field...
    plz tell me
    thanks&regards,
    kalyan

    keep the cursor on component
    press F1
    select technical information
    you will find the field name and table or structure name
    regards
    sateesh

  • How can I find tables in a PDF document?

    When I fun a full accessibility check, it tells me that I have problems with some tables in the document. The current error that concerns me is this:
    "(g) 6 Table element(s) with no TH child elements."
    The document originally contained a number of tables. I examined them all for possible offenses, but couldn't find anything wrong.
    So I deleted the pages containing the tables, and I still get the error.
    There are no other tables in the document, at least that I'm able to see. And if I scan sub-ranges (e.g., 1-17, 18-33), the scan comes back clean for tables. So I'm forced to conclude that the tables aren't actually part of any page. 
    Hence the question: how can I find the offending tables and remove them?

    Tags are independent of PDF page content. Removing/deleting a page or page(s) does not remove anything in the PDF's structure tree.
    As Full Check is looking at the structure tree the report reflects what is present there.
    In the Tags panel walk the structure tree to locate the Table tags. Delete these.
    Be well...

  • How can I find what's really in my Library?

    After several problematic days, I finally installed iTunes 9.
    The new version then imported multiple files (so fast I hardly saw what half of them were, but they were additional to all my regular/ previous files - things like voice memos and other stuff).
    I notice that my memory usage has gone up considerably (even though I cannot see a lot of those new imported files in iTunes anywhere).
    Question: how can I find (and get rid of) what those imported files were please? On my c: drive folder I can see the iTunes folder with album artwork, games, music, applications, previous libraries - but I think there is much more stuff hidden around somewhere - any ideas please?

    What you see in your +My Music\iTunes+ folder is pretty much everything that takes up space. Be careful changing the files here, though. ITunes will not notice if you move or delete something, so the entry that points to it in iTunes will get a "!" mark. Better to review your libraries in iTunes and delete stuff you don't want, opting to move them to the Recycle Bin.
    The only other place iTunes stores anything (except for its own .exe stuff in +Program Files+, of course) is in the hidden system folder Application Data. In your Windows XP, you can view this folder by opening a Run box ( +Start > Run+ ) and typing %appdata%.

  • How can I find This field in what table OBMNG (Open quantity) Tcode Me23n

    hello,
    I need to find this field in a table and not in a structure because I am doing an extract. The structure that has this field is MEPO1320, but i cant pull data from it. I tried st05, where used in  and i could not find it, can someone help? please.

    Hi,
    Go To the structure in SE11 and put the cursor on the required field and try a where used list.In the selection criteria check the checkbox Tables and continue.If not for the field chk for the data element.
    Regards,
    Lakshman.

  • How can i find customer warranty date ?

    Dear Guru,
        I have a problem about finding customer warranty start date  and end date. I don't know the table which is contains these data. I know only material and serial number. Please give me solution.
         Thanks in advance

    Hi There.
    I would like to suggest a couple of references,
    [SAP HELP Library - Standard Reference for Warranty Check - Purpose/Use and Prequisites|http://help.sap.com/saphelp_47x200/helpdata/en/77/8c460fdb434c529a70c6f0cdcf3b30/content.htm]
    [SAP HELP Library - Standard Reference for Warranties|http://help.sap.com/saphelp_nw04/helpdata/en/a4/5cf037f1d6b302e10000009b38f889/frameset.htm]
    [SAP HELP Library - Standard Reference for Processes in Warranty Claim Processing|http://help.sap.com/saphelp_47x200/helpdata/en/77/8c460fdb434c529a70c6f0cdcf3b30/frameset.htm]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • How can i find keywords in my script/document?

    i need to be able to jump to certain parts of my script quickly and I am having trouble doing that now.

    There are couple of ways you can acheive this depending on what exactly you are looking for.
    If you are looking to jump from one scene heading to the next one, you can either use the Oultine view (To invoke the Outline view, Navigate to the View Menu and choose> Outline View) to quickly move from one scene to another.
    You can also navigate from one element type to other of the same kind by keeping the cursor on that element type and hitting CTRL+J.
    For eg. if you want to jump from one Parenthetical to the next one, keep the cursor on the Parenthetical element and hit CTRL+J on the Keyboard.
    If you are searching for a specific word, use the Find/Replace option (To invoke the Find/Replace, Navigate to the Edit Menu and choose> Find/Replace - or hit CTRL+F on your keyboard)
    This would invoke the search bar on the bottom of the screen, where you can type the word that you are looking for and navigate to those words in the script using the Up/Down arrow next to the search field)

  • HT5527 How can I find a list of what documents are stored on I-cloud?

    Is there a way to list documents stored on I-cloud?
    I want to delete any documents or transfer them to computer.
    In other words, "Is there a directory of I-cloud documents?"

    What I am looking for is a way to sort where Pages (eg) files were stored on the I-Cloud vs on desktop or in another folder.
    Everything is obvious to sort except for I-Cloud.
    It is way too tedious to open each document

  • How can I find the text only in the custom text frame?

    Well guys, I have a problem.
    I have such code:
    app.findTextPreferences.findWhat = "text";
    text = app.activeDocument.findText();
    position = text[0].insertionPoints[0].index
    in the variable "position" I get  global(not depending in which frame the text is) position(number of chars) of the found text, but I want to get the number of the frame where is text was found! Or how can I find only in the custome frame?
    Please, help me

    Assuming that you have some way of identifying that text frame, then it is just a matter of doing the search only against that frame. For example:
    myFrame = app.documents[0].pages[3].textFrames[5];
    app.findTextPreferences.findWhat = "text";
    text = myFrame.findText();
    position = text[0].insertionPoints[0].index
    However, unless myFrame is the first in a story, the index will not be relative to the start of myFrame. To get that, you need:
    framePos=myFrame.characters[0].index;
    textOffsetInFrame =position - framePos;
    Dave

  • How can I find transactions using list of field names

    Hi,
    I do have some field names . I wanted to know how can I find the list of transactions that uses those fields in SAP?
    Regards,
    Aman

    Aman,
    It will be hard work, take the where-used list from SE11 for program, function groups and etc.
    Take the object name and go to SE80 and check in the tree if it has any transaction assigned.
    regards,
    Alexandre
    It

Maybe you are looking for

  • Operating Unit Information in GL

    Hello all, I have a doubt in AP. I have two operating unit in AP and attached both in to one ledger. I have created Invoices for both OU and transfered to GL. Now my doubt is, How to Identify the GL Journal which is related to OU. Meaning which journ

  • IDOC Posting with new fields in VA01

    Hi, Previously i asked for creating New fields in VA01 screen. i got that now i need to create a sales order based on the Inbound IDOC  which i get and i will be getting new fields which are created . And this Fields data is coming from an Extension

  • MIRO payment terms  disable

    while doing  MIRO  , the payment terms in editable  , I wants to know how to disable payment term as this payment terms is coming from  Purchase order .   Kindly suggest how to diable payment terms in MIRO . Regards, Hari R

  • Ordering Database Records

    Hi all, thanks for reading... I have table with some simple columns and rows in it. I wanted to have full control over the order these elements appeared so created a column named "item_order" which holds a number (1 being highest priority) for each r

  • Rotating a photo section

    I am very new to Photoshop (4 days), having just purchased Elements 10 (I was not told that Vers 11 was available and for the same price!!!!!). Yesterday I started a new project and loaded a photo. The photo was of a phone cord and was taken against