Update project fields including custom fields

Hello forum members,
i am trying to write a utility that would migrate project data from Oracle database into Project Server by using CSOM. However, SetCustomFieldValue() method is not working for me. I am getting the following  'Microsoft.ProjectServer.Client.ProjectCreationInformation'
does not contain a definition for 'SetCustomFieldValue'. Any ideas? Is there a better way to do this with PSI? I would appreciate some code samples.
                //todo: replace code to pull values from db
                using (OracleConnection connection = new OracleConnection(connectionString))
                    newProj.Id = Guid.NewGuid();
                    newProj.Name = projName;
                    newProj.Description = "Test creating a project with CSOM";
                    newProj.Start = DateTime.Today.Date;
                    newProj.EnterpriseProjectTypeId = GetEptUid(basicEpt);
                    newProj.SetCustomFieldValue("Custom_<c22c082a-3490-e311-b25c-0050569d03ac>", "Approved"); //does not work
tatiana

ok. i found the answer! here is a link to the blog where i found it: http://blogs.msdn.com/b/brismith/archive/2010/08/25/project-server-adding-custom-fields-to-projects-and-tasks-using-the-psi.aspx
here is the solution on how to add a value to a custom field by using PSI and it worked for me:
 //Adding a row for my first custom field 
                SvcProject.ProjectDataSet.ProjectCustomFieldsRow cfRowCost = templateDs.ProjectCustomFields.NewProjectCustomFieldsRow();
                cfRowCost.PROJ_UID = templateRow.PROJ_UID;
                // The Custom_Field_UID is the unique identifier for each custom field row
                cfRowCost.CUSTOM_FIELD_UID = Guid.NewGuid();
                // The MD_PROP_UID identifies the specific custom field
                cfRowCost.MD_PROP_UID = new Guid("6c289ce3-eb97-e311-87f7-0050569d03ac");
                //give it a value
                cfRowCost.TEXT_VALUE = "programmatically added to custom field";
                //Adding to the dataset
                templateDs.ProjectCustomFields.AddProjectCustomFieldsRow(cfRowCost);
tatiana

Similar Messages

  • Using Power Query to Update Project Custom Fields

    Is Power Query in Excel 2013 able to do Bi-directional updates for updating Enterprise Custom Project fields in PWA 2013?

    So to update data you would need to either use one of the following APIs:
    PSI
    CSOM
    JSOM
    JSOM REST
    Always try and use one of the client side API's if possible (PSI is a server side API). I'm not sure you will be able to do this via Excel though, I would look at a custom app , web part etc.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Project Server 2010 - create a custom enterprise project field for persons (no text, no lookup table...)

    I want to create a custom enterprise project field and would like to use instead of for example a text attribute or a look-up table a field for employees (e.g. project manager) which are coming e.g. from the Active Directory. But when creating this custom
    project field I cannot see such an option. What solution do you suggest as I want to avoid that everybody uses different names and spellings for e.g. the project manager and without having to fill the lookup table with all resources of the company.
    Thank you so much for your help!

    Hi,
    Are you using Proejct Server 2007, 2010, 2013?
    In case you're working with 2010 version, here is an excellent
    blog about how to insert a resource picker in a PDP (project detail page).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • In LSMW how to include customer fields in BAPI method ?

    Hi all,
    We have a requirement to use BAPI method in LSMW. We have some custom fields defined needs to be handled in BAPI structures.Please tell me how to handle BAPI extension structures(EXTENSIONIN/OUT) in LSMW.

    Hi Venugopal,
    You can use the sold to party field fiield for your requirement.
    Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
    If can enter the customer name, which will sort out the sold to party number whihc you can use.
    If this is not wat is required you have to copy the transaction and create a new Zreport.
    Hope this helps you.
    Thanks
    Arun

  • How to find Project Level Text Custom Fields in Project Server 2010 databases?

    Hello,
    We are using Project Server 2010 SP2 in SEM Mode. We are planning to use Project Level Local Custom fields and we want to pull them in reports using SSRS, so I am wondering which table these "Local" (non enterprise) custom fields are stored in
    database.
    Any suggestions?
    Regards,
    Kishore Dodda
    Kishore Dodda

    Hi,
    Please see this
    similar thread about reading local custom fields though the PSI.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Is it possible to have "Condition based custom project field entry in project detail page"

    Hello All,
    In PWA, In Project details page, when we add Displayed Project fields into the Project Information page, Is it possible that I have a custom enterprise field and based on its selection, I can choose the other field in that page.
    I mean, say i have a Custom field in project page as 'Hardware' which has a lookup of say :
    CD
    DVD
    Flash Drive
    External HDD
    Cloud etc.,
    Then when a user selects any one of these. then the below appearing options will be based on this selection. 
    Say user selects cloud, then the next project field should be like Public, Private or Hybrid. Which is not same when user selects other fields.
    I did not find any OOB solution for this. So can anyone please guide me how can I achieve this in PWA, so that these fields may be used as enterprise custom fields, which can be later used for Reporting purposes.
    Thanks,
    Shanky

    Hello,
    You could adopt this no code out of the box option approach:
    http://psbehindthescene.blogspot.co.uk/2014/04/cascading-custom-fields.html
    Or potentially look at adding JavaScript code to the page to do this programmatically - not looked at doing this but it should be possible.
    Another option might be Fluent Pros Auto Complete Manager - this might offer this functionality but I have never used it:
    http://www.fluentpro.com/productsautocomplete.html
    Paul 
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • How do I change custom field description and name on the project fields PDP

    I'm creating a custom PDP for a workflow process and I need to add the folloiwng fields "Project Name" and "Description"
    When I try to create Project Name custom field under server settings I get the following message "The custom field name cannot match the name of any intrinsic fields."
    So I went to the PDP web part Project fields and I found a field named " Project Name". I added it to the Proejct Fields web part, but it displays as "Name".
    How can I change this field that's out of the box? I don't see "Project Name" and "Description" under server settings > Enterprise Custom Fields and Lookup Tables to modify them.
    Thank you

    Hi there,
    Project Name & description fields are internal fields in project server which you cannot view in Enterprise custom fields in PWA. You will not be able to create with the similar name. There is no way to change these fields as far as I know. 
    I would suggest to have the new fields name something like  Project_Name/ ProjName or Project_Description/ProjDescription . 
    Hope that helps.Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

  • Updating the field "relevant for POD" for customer in XD03 in R/3

    Hi All,
    Is there a way to update the field "relevant for POD" for newly created customer on XD03 in R/3 from CRM system. My requirement is customers will be created in CRM by interface from mainframe(legacy) system. Whenever a  new customer is created thorugh this interface in CRM, the mentioned POD field needs to be checked in R/3  and also this field is not available in CRM on BP transaction( as I have observed till now) causing my main issue otherwise I believe that BDOC will take care of it to move to R/3 system.
    Thanks in Advance.

    Hi,
    Dear AYAZ,
    as my knowledge " XD03 " is used for DISPLAY THE  CUSTOMER,you may ask particular SD Consultant for required changes.
    For changing the customer T.C is " XD02 " in Sales Area Section( SHIPPING Tab )you"ll find the Relevant for POD( Check Box ).
    Plz give points if you feel valuable.
    Regards
    CR Gupta

  • Add a custom tab to include custom fields in Shipment Screen (VT03N)

    Hello every one,
    We have a requirement to add a custom tab to include custom fields in shipment header.
    Can any one of you help me on this?
    Thanks in advance !!!
    Regards,
    Ganga

    Hi Ganga,
    This is the question of customer exit....you will get very good links on the forum itself...but i can give you some hint:
    1. fing out the package or program name for the transaction(by gng in the setting)
    2. go to se84 and in the enhancement->customer exit tab...with the help of pkg name got above find out the various enhacement for this tcode.
    3.find out the appropriate one by putting in the break point.
    4. You can get an exit with a screen exit where you will create your own screen(with the custom field if.....then you have to append them in the table) or with the std fields.
    5. there you will get the fm exit for PBO and PAI as well.
    Hope this might help you in solving the problem.
    Pooja

  • Recurring Journals - Request Project Field is available

    Hi,
    My customer has asked that the Project field be included on the Recurring Journals option.
    This would allow them to post monthly rent journals automatically with the correct analysis using the project field.
    Please consider this update for a future release.
    Thanks
    Greig

    Hi
    Thanks for your idea, actually, we have already aware of that and decided to do the enhancement in next main release version.
    We will add project field to Recurring posting and posting template. Also we will do a complete check to add project field to more forms if necessary for project assignment.
    Regards,
    Yan

  • DYNP_VALUES_UPDATE not Updating the Field on my Dynpro

    Hi.
    I want to create a dynpro where two fields are. Field 1 allows the user to enter a customer number, field two shall come up with a number that is calculated somehow. The calculation can last up to 20 seconds, so I dont want to make the user waite for this number.. .he shall be able to work with the rest of the dynpro.
    Therefore I called the function that does the calcuiation like that:
    MODULE user_command_0100 INPUT.
      DATA: lv_guid_16 TYPE guid_16.
      IF kna1-kunnr IS NOT INITIAL AND kna1-kunnr <> gv_kunnr
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_16 = lv_guid_16.
        gv_taskid = lv_guid_16+8(8).
        CALL FUNCTION 'YDETERMINE_DEPOTDISTANCE' 
          STARTING NEW TASK gv_taskid
          PERFORMING receive_depent ON END OF TASK
          EXPORTING
            i_kunnr = kna1-kunnr.
      ENDIF.
    ENDMODULE. 
    The next piece of code shall get the returning value if the function wants to return its results.
    FORM receive_depent USING i_task TYPE clike.
      TABLES: d020s.
      DATA: dyname LIKE d020s-prog,
            dynumb LIKE d020s-dnum.
      DATA: BEGIN OF dynpfields OCCURS 1.
              INCLUDE STRUCTURE dynpread.
      DATA: END OF dynpfields.
      IF i_task = gv_taskid.
        RECEIVE RESULTS FROM FUNCTION 'YDETERMINE_DEPOTDISTANCE'
        IMPORTING
          e_depent         = kna1-yydepent
          e_accuracy       = gv_accuracy.
        MOVE 'KNA1-YYDEPENT' TO dynpfields-fieldname.
        MOVE kna1-yydepent TO dynpfields-fieldvalue.
        APPEND dynpfields.
        dyname = sy-cprog.
        dynumb = '0100'.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = dyname
            dynumb               = dynumb
          TABLES
            dynpfields           = dynpfields
          EXCEPTIONS
            invalid_abapworkarea = 01
            invalid_dynprofield  = 02
            invalid_dynproname   = 03
            invalid_dynpronummer = 04
            invalid_request      = 05
            no_fielddescription  = 06
            undefind_error       = 07.
        ASSERT sy-subrc = 0.
      ENDIF.
    Problem is: The DYNP_VALUES_UPDATE does not update the field on my dynpro at all. If I hit enter another time, then the field is provided by the value as another PBO will be processed. What is my mistake here?
    Regards
    Manfred
    Edited by: Rob Burbank on Oct 29, 2010 12:07 PM

    Hi Manfred,
    Replace all the DYNP_VALUES_UPDATE-related content by the following statement:
    SET USER-COMMAND 'xxx'.
    While DYNP_VALUES_UPDATE does update the fields, a roundtrip is not triggered so the content of the fields will not be refreshed. The SET USER-COMMAND does that.
    Hope this helps you!
    Cheers, Roel

  • Error in updating ALV field catalog in selection tool for Planning Book

    Hi ,
    I am Implementing BADI  '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
    This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
    1). INIT_OBJECT_LIST
    2). F4
    3). LOC_PROD_VALUE_LIST
    Please help on the same if u have any idea or clue.
    Thanks.

    Hi Srinivas!
    Where did you get your implementation from?
    It would be nice if you could debug your code!
    For the F4 method, have you seen this note?
    Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
    Also check this note. It contains selection modifications in the BAdI:
    Note 376902 - SDP selector: Basis corrections for BADI
    I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
    Thank you!
    Will
    SCM Support Consultant

  • Update Z field from BSIK into BSAK when closing

    Hi,
    I have created Z field in BSIK table using "Append structure" option. I also created identical field via same option in table BSAK. When I clear open item system "delete" that item in table BSIK and create identical item in table BSAK (BSIK - open items; BSAK-closed items), BSIK and BSAK have same structure because of this trensfer of open items from BSIK to BSAK during open item clearing. My problem - when open item is cleared and item is transferd from BSIK to BSAK my Z field is not updated by system. Is it possible to set this in customizing or is there another way to update this Z field in BSAK when someone clear open items - user exit, modification or ???.
    Thanks in advance.
    Sasa

    Hi Andreas,
    than you for your responce.
    I tried to find out suitable event for this in fibf but withouth success. Could you suggest event that will be suitable for this purpuse.
    One more thing - if I reverse clearing (via transaction FBRA) system will transfer closed item from BSAK to BSIK and during that process Z field will not be updated so I also need event to update this field durind reverse clearing.
    Thank you in advance.
    Kind regards,
    Sasa

  • How can I get the Tables in my report to update their field lists?

    I am working with Crystal Reports 2008, and I have a ReportDocument loaded in a .NET project.
    I want to update the field lists of the tables (stored procedures) used in the report.  I am calling "VerifyDatabase()", but this does not update the field lists.  Through the designer, I accomplish this by going to the Database -> Set Datasource Location..., then clicking on the stored procedure (i.e. table) in the report, clicking on the stored procedure under the database in the bottom pane, and then clicking "Update".
    How can I accomplish this in code?
    Thanks for any help.

    Hello,
    You have to use RAS and the replace connection method. The Report Engine does not have the ability.
    Search forums for "ReplaceConnection_Click" and you'll find sample code that should work for you.
    Thank you
    Don

  • Wrong pictures, no-shows, after editing... when running a preview or in full movie mode, iMOVIE does not show exactly the content as was provided in the project field. All files works great in iPHOTO.

    Version: iMOVIE 11, 9.0.4
    No new updates, 7 sept 2011.
    Something is wrong with the project that I am working on.
    When I add new pictures and movies, some of them will not be played in the preview or fullmode at all. Some pictures are wrongly understood by iMOVIE or there are some kind of weird errors or bugs in the program. I dont really know what the problem can be. All of the pictures and movies are imported from 2 cameras, Kodak and Canon, and they all work great in iPHOTO.
    I also use tranistions, text, etc, to make the movie look good.
    Here are some examples of the error, all of these picture where taken while running the preview movie. You can see the moment in the movie process by following the red line in the project field window.
    1) Here you can see that it shows the wrong picture in the preview compared to the project field.
    2) Here it shows the wrong picture and it also displays the wrong picture in an undesired strecthed mode.
    3) Here are 2 examples of one picture that blocks the other pictures from beeing seen in the video.
    What could be causing these stupid errors and bugz? Until this is solved I have stopped workoing on my movies and project, awaiting a fast fix.
    Thank you!

    Try this step:
    Go to one of the problem points (or even all of the them in the Project Browser) and select it. Under the File Menu>Optimize>Large (960x540). See if will process the clips, still images and try playing it back again.
    If Optimize>Large is grayed out, try pulling the clip out of the Project Browser, close iMovie. Open it up again and putting that clip back in its place. Then try to Preview it again and see if playsback properly.
    Last thing to try is go to File Menu>Duplicate Project, quit iMovie. Open iMovie, go to the Duplicate Project and see if you get a working Preview from the Project Timeline.

Maybe you are looking for

  • Difficulties using iCal because time isn't showing up.

    I am trying to make a schedule for school using ical but on the left hand side in the weekly view it does not display the time of day. Instead it just says sat and then noon and then continues with sat. I tried logging on as a guest and it worked fin

  • Why do the "Ok", "No Data" and "N/A" all show as "N/A" in the report?

    Well, I guess the title of this post says it all. I'm right now preparing the customer report, but I need to manually change all "N/A" tp their original meaning, which might be "Ok", "No Data" or  "N/A". Is this a bug, or what is the train of thought

  • Information about some function modules

    Hi! Please can anyone give me some information about the following function modules: CLBA_UPDATE_FILE_REMOTE_HOST BP_MAP_SERVER_TO_HOST RFC_HOST_TO_IP RFC_IP_TO_HOST. Thanks Purnima.

  • Report export (CSV) results in page not found error

    Hello, I'm having this strange error which i cannot seem to figure out. I have enabled report export through CSV in a report (report attributes). When i click the link in the report i get a page not found error (http 404). At first i thought it was a

  • Very frustrating. How do you access email?

    I continually have to reset my password in order to log on here https://home.bt.com/login/loginform?TARGET=$SM$http%3A%2F%2Fhome.bt.com%2F But no trick appears to work on the email side. How do I fix this? It's been over a year now.