How to add custom field to the task via CSOM?

Hello!
I'm trying to add custom fields to my programmatically created task in project 2013. Tasks are created. Then I get them and load custom fields by:
DraftProject projCheckedOut = tstProj.CheckOut();
projContext.Load(projCheckedOut.Tasks);
projContext.ExecuteQuery();
foreach (var task in projCheckedOut.Tasks)
projContext.Load(task.CustomFields);
projContext.ExecuteQuery();
But the each CusomFieldCollection object has only 1 field (Health, because it have a default value and created automatically). But when I load my project in Project professional i saw more than 1 field, but they are empty.
Then I tried to add a new custom field to each CusomFieldCollection of each task.
var newField = new CustomFieldCreationInformation();
newField.FieldType = CustomFieldType.TEXT;
newField.Name = "F_1";
newField.Description = "test description";
task.CustomFields.Add(newField);
task.CustomFields.Update();
New field added to the collection, but when I update the project and publish it nothing is happened.
How to add a custom field to the each task and set it value?
Or how to attach enterprise task custom field to my tasks.
I'm using Microsoft.ProjectServer.Client.

Hi
Hope the below posts are of some  helpful for you 
http://social.msdn.microsoft.com/Forums/en-US/d79f22f2-7fd2-46af-b778-e189c8611120/use-csom-to-update-projects-custom-fields?forum=project2010custprog
http://msdn.microsoft.com/en-us/library/microsoft.projectserver.client.project.setcustomfieldvalue.aspx
Thanks
Geeth
Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

Similar Messages

  • How  to add custom fields to the  sap standard  program ukm_bp_display

    How  to add new custom  fields to the  sap standard  program ukm_bp_display .
    could u  please any one help me on this?

    Hello Kumar,
    You have to modify below structure, as this structure is providing the field catalog for output display (ALV).
    Here you can see there are a lot of include structures, so if you want to add fields in the output display you can add those fileds as an append structure to any of the below mentioned structures (Like ukm_s_account, ukm_s_bp_cms_sgm etc as per your requiremnt and positon at which you need to dispaly your fields.)
    DATA: BEGIN OF gt_grid_alv OCCURS 0.
           partner LIKE but000-partner,
           credit_sgmnt LIKE ukmbp_cms_sgm-credit_sgmnt.
            INCLUDE STRUCTURE ukm_s_account.
            INCLUDE STRUCTURE ukm_s_bp_cms_sgm.
    DATA:   credit_sgmnt_txt LIKE ukmcred_sgm0t-credit_sgmnt_txt.
          Gruppe Vector
            INCLUDE STRUCTURE ukm_s_bp_vector.
          Gruppe OBL = Obligo
          include structure UKM_S_BP_CMS_MALUSDSP_OUT.
            INCLUDE STRUCTURE ukm_s_display_segment.
            INCLUDE STRUCTURE ukm_s_bp_cms.
            INCLUDE STRUCTURE bus000_dat.
    *DATA:   icon(4).
          Gruppe RAST (Raster)
    DATA:
             rast01 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast02 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast03 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast04 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast05 LIKE ukm_s_display_segment-AMOUNT_GRID,
             rast06 LIKE ukm_s_display_segment-AMOUNT_GRID.
    DATA:    rast2_6 LIKE ukm_s_display_segment-AMOUNT_GRID.
    "Summe raster 2 bis 6
    DATA:  END OF gt_grid_alv.
    Another way is you can  go  to SE38, and you can create implicit enhancements.One enhancement point is available here in this required area. so create an implementation and add your fileds with data types.This way is also simple.
    Hope this will solve yiour problems.
    Regards,
    Antony Thomas

  • How to add Custom fields ( under the Custom Tab) in RMMAIN ( SOLMAN 4.0)

    Hi Expert,
    I am working in SOLMAN 4.0
    i want to add some Custom fields in RMMAIN Transaction -Screen level..( under one custom tab)
    i have tried in EEWB, it is not helpful for RMMAIN
    is any Screen exit available for RMMAIN? or any other way?
    I ll give Reward points
    Thanks & Regaids
    Ganesh, R

    Hi,
    go through this...
    https://wiki.sdn.sap.com/wiki/display/Snippets/Displaycustomerfieldsinheaderoflogisticsinvoiceverification+transactions
    Thanks,
    Shailaja Ainala.

  • 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

  • CRM  IC Winclient - How to add new fields in the BP Search of TRX CIC0

    Hello Experts,
    I want to know how to add new fields in the BP Search of TRX CIC0. In the HTML that we're using here I need to add the URL of the BP.
    Can you help me?
    Thanks in advance.
    Caíque Escaler

    Hi
    make append to tables in se11 - CCMBP1FIELDS, CCMBP2FIELDS
    in spro in Define customer-specific search control -> mark fields with X.
    and enhance html template CRM_CIC_SEARCH_DISPLAY. -> tcode smw0, look for package CRM_CIC_COMPONENTS for html CRM_CIC_SEARCH_DISPLAY. export it from SAP, edit, and import.
    you will need to enhance function module used for searching - you will find him in spro in Search Strategies.
    Regards
    Radek

  • Add custom field in the F4 help for selecting source field in tcode FMDER

    HI,
    I an working in FUND MANAGEMENT, i want to add custom field in the F4 help for selecting source field in t-code FMDERIVE.
    How this possible.
    Regards,
    Pankaj

    OK

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • How to Add IBAN Field in the Bank Details Infotype?

    Hello All,
    I need to know the procedure for How to add IBAN field in the bank details infotype?
    Could anyone help me please.
    I m new to SAP HR.
    Immediate help will be appreciated.
    Thanks.
    Regards,
    Mudassir.Imtiaz

    Hi mudassir,
    For IBAN implementation:
    1. Implement SAP Notes 925410, 1409674, 1405521
    2. Go to t-code FIBF - From menu select Settings - P/S Modules - of an SAP Application - Create entry
    For Turkey we've added the following entry (depends on country) :
    00003040 TR CONVERT_IBAN_2_BANK_ACCOUNT_TR
    3. Go to V_T588M for module pool MP000900 and screen 2000 select IBAN & Q0009-IBAN00 fields as standard.
    4. Go to table T77S0 and make value of ADMIN IBAN entry S.
    Regards,
    Dilek

  • How to add more fields at level task for importing to MsProject

    Hi everyone,
    We would like to have the same number of fields either for importing as exporting; or at least, the fields that we need.
    The problem is when we are configurating the fields for exporting from cProjects to MsProject, we found 81 available fields and then we don't find the same amount for importing (34). So, in some cases we don't find fields which were configurated for exporting and it is no posible to upload the information back because the field is no available for importing.
    Does anyone knows how to add more fields for importing at the cProjects side?
    Thanks a lot,
    CAMILO URIBE

    Some fields can not be migrated because of MsProject designe. The above is the reason why cProjects' customizing does not offer the
    mapping of the same nuember of fields.

  • How to add custom fields in BADI  Subscreen.

    Hi Friends,
    I have to include some custom fields in MFBF tcode.(In make-to-order tab page).
    To do that I have used RM_HR_INTEGRATION  BADI definition  and created implementation for this. In the provided subscreen I tried to add custom fields but it asks access key . I donu2019t know , how to proceed further. Your help is needed.
    Or kindly provide me solution to achieve my requirement.
    Thanks in Advance,
    senthil.

    Hi Venky,
    We can see the documentation in
    se18 -> badi -> LE_SHP_TAB_CUST_HEAD -> display -> documentation button above the definition name
    in the first pop-up of documentation..go to the end which says 'Further notes'
    Further notes
    Documentation on BAdI Interface LE_SHP_TAB_CUST_HEAD
    click on this and we have a detailed description of each method defined in the badi
    Hope it helps
    Regards
    Byju

  • How to add new fields in the EBP front end..

    Hi All,
    Can any one let me know the process of how to add new fileds in the shopping cart creation screens by using the "Tag Browser" option in the Object navigator.
    Best Regards,
    Mahesh. J

    Hi
    <b>Please go through the following links for more details and examples -></b>
    http://help.sap.com/saphelp_47x200/helpdata/en/a2/8c6eeb2d8911d596a000a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/5ecbe22a8a11d5991f00508b6b8b11/frameset.htm
    This will definitely help.
    <u>For adding customer fields to the Shopping cart, you need to refer SAP OSS Bote 672960 and 485891.</u>
    Do let me know, incase you need any other details.
    Regards
    - Atul

  • How to add custom field to ical

    Hi
    I run a small business from my mac pro and my iphone. I would like to get a good workflow but it seems I am missing a few bits of information.
    First I would like to add custom fields to ical so that I can gather all the information I need in one spot. For example, I create a meeting with new client Tim Smith on Friday so I want to enter his name and contact info into ical because I need his address and phone number on the event so I can reference it.
    Then I would like to find a way to automatically create a contact card based on that information. If I can find an apple script that reads the fields in Ical and creates new contacts based on new events that I created.
    Then I would like to automate extracting the email addresses to send out preformed group mailers for people who were in my calendar that day ie "Thanks for meeting with me, I think we got a lot accomplished and hope to see you at the next meeting." etc etc
    Then also automate reports based off of my ical events such as "Report for how many times I had a meeting in the Blue Room this week" or "How many times did I meet with Timothy Smith"  this year
    I have tried automator and it doesn't seem strong enough to do this so I am thinking AppleScript but I am not very good at it. Anyone have any ideas on any of these issues?

    Tried the iCal forum and support
    www.apple.com/support/ical
    Tried Lion Community?
    you have notebook and tower?
    www.apple.com/support/macbookpro

  • How to add a field in the BAPI.

    hi,
    i wanted to add a field zchech in the BAPI (BAPI_INCOMINGINVOICE_CREATE) how to do that.

    Hi Preethi
    BAPI_INCOMINGINVOICE_CREATE is standard SAP BAPI.
    You cannot add new fields to the interface.
    Check whether the interface allows for any customer enhancements.
    Else copy this BAPI into a customer namespace and modify accordingly.
    Reward points if this helps.
    Regards
    Meera

  • How to add a field in the step Variables

    Hi guys, how to add a Field array to the Step Variables?

    Do you mean how to add properties to a Step Type?
    Steps are instances of Step Types so you can not add properties. If you need to add property to say a Numeric Test Limit step type, then you have to create a Custom Step Type based on a Numeric Test Limit Step Type then add your additional properties. Check out the TestStand documentation for Custom Steps Type.
    Depending on your needs you might beable to use the Add Attributes to meet your requirements, depends on what TestStand version you are using. This could save you the bother of having to create your own step type.
    Regards
    Ray Farmer

  • How to add custom field in Documents Tab of PO Header ?

    Dear SRM Friends,
      This is a challenging task as an ABAPer to confront to..
      We are in the midst of a requirement where we have to add a custom field in the PO Header. But the requirement is to add the field in Documents Tab in PO Header Data as found in the following path of SRM Webpage  :
    Operational Purchaser > Purchase Orders > Process Purchase Order > Select a PO > Header Data > Documents.
      As guided by "Note 672960 - User-defined fields 2" , on executing all the steps of the note the field is getting added, but in the Basic Data Tab of the PO. But this doesnt meet the client requirement.
      Anybody having some solution to this, shall be greatly awarded.
    Thanks in advance,
    Vikas.

    Hi Vikas,
    You can define a Text ID in Header data with F4 help. But the list of values will be fixed, but configurable. This will exactly solve your problem. This will be quite simple and straight forward solution with no custom developments.
    Please Navigate to
    SAP Implementation Guide -> Supplier Relationship Management -> SRM Server
    -> Cross-Application Basic Settings -> Text Schema
    1. Define Text Types
    Select BBP_PD and double click text id. Add a new text id here.
    2. Define Text Schema
    Select PO and add the newly created text id and set required parameters.
    3. Define Fixed Values for Texts
    Select your PO transaction type and maintain the required values for F4 help / drop down.
    Hope this would solve your problem.
    Regards
    Kathirvel

Maybe you are looking for

  • Help with installation on a kindle fire hd

    I got a kindle fire he for Christmas and I want to install Adobe so I can read my textbooks on it. I have tried and all I get is it cannot read the file. The operating system is Linux safari 32 bit I think. Any ideas.nun

  • IDOc creating and postinng in the inbound system.

    i one requirement. i will get sales orders in flat file from legacy system. i need to consolidate the sales orders and post in the syatem as debit memo request.here i need to create the idoc with consolidate sales order and post in the same system.i

  • Return Data from Oracle using a web service in AXIS - please help

    Hi Forum, I am very new to web services and Java tech. and recently I have been assigned to work with technology and I am struggling to learn it and need your help and assistance. I am trying to return some data from a an oracle database but I have t

  • CS5 - Photoshop won't start:  preferences file  was invalid (it has been deleted)

    Environment: Win7 Ultimate - 4 gig ram - CS5 Design Premium Seemingly out of the blue - Photoshop stopped loading and I'm getting two error messages : first:           ADOBE PHOTOSHOP CS5 Extended:  "Could not load actions because an unexpected end-o

  • Unable to update my iphone 4 to iOS 4.0.1

    I tried updating my iphone4 and its giving the following errro. "iTunes could not backup 'ipone name' because of an unknown error. Can anyone pls help ? I am in UK with O2. I have lots of time singal lost error inside my home and some places outside