Project server new resource Customization and Programming

hi
how to add categories(like My Tasks, My Resources) for a new resource programmatically in project server 2010?

Hi
You may add the categories to a group , later you can add the user to specific group
Either you can hardcode the group guid or get the group guid by reading all the groups
Sample:
Guid gpUID = new Guid("303D8BA6-BD1A-437A-984E-B19AD11EF345");
srvSecurity.SecurityGroupsDataSet secutiryAuthDs = new srvSecurity.SecurityGroupsDataSet();
                secutiryAuthDs = objSecurity.ReadGroup(gpUID);
                srvSecurity.SecurityGroupsDataSet.GroupMembersRow securityAuthRow = secutiryAuthDs.GroupMembers.NewGroupMembersRow();
                secutiryAuthDs.GroupMembers.AddGroupMembersRow(gpUID, resourceRow.RES_UID);
                objSecurity.SetGroups(secutiryAuthDs);
You are going to update the group after adding the user to group
Hope this helps
--Happy troubleshooting
Thanks --Ajith

Similar Messages

  • Project Server 2013 Ribbon Customization using a custom action

    Is it possible to customize the ribbon in the Project Center through a Solution? Is the only way to add a button to the Ribbon through an app?
    I am using Project Server 2013 on Prem and every time I deploy a custom action - button to the ribbon in the Project Center the button becomes greyed out/disabled and says "This control is currently disabled." I haven't been able to find any examples
    of how to do this in Project Server 2013 using a solution.
    Here is the custom action, I have tried with and without the EnableScript attribute but nothing seems to work:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction Id="Ribbon.Library.Actions.AddAButton"
    Location="CommandUI.Ribbon">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ContextualTabs.ProjectCenter.Home.Editing.Controls._children">
    <Button
    Id="Ribbon.Library.Share.NewRibbonButton"
    Command="NewRibbonButtonCommand"
    Image16by16="http://s10.postimage.org/lhar0oijp/U16.png"
    Image32by32="http://s17.postimage.org/trf3y2ui3/U32.png"
    LabelText="UniqueId"
    ToolTipTitle="UniqueId Displayer"
    ToolTipDescription="Displays UniqueId for the list item."
    TemplateAlias="o2" />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler
    EnabledScript="javascript: function ReturnTrue() { return true; } ReturnTrue();"
    Command="NewRibbonButtonCommand"
    CommandAction="javascript:alert('Hello, world');" />
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    </Elements>

    Hello,
    You can add a new button using a SharePoint feature or via an app. If you haven't see the links below already, take a look. These are for 2010 but would be very similar for 2013:
    http://msdn.microsoft.com/en-us/library/office/gg549101(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/ff535984(v=office.14).aspx
    http://blogs.msdn.com/b/project_programmability/archive/2011/04/08/trials-and-tribulations-in-customizing-the-project-center-ribbon.aspx
    http://epmsource.com/2012/01/26/adding-print-capabilities-to-project-detail-pages/
    http://epmsource.com/2011/12/07/hiding-disabling-ribbon-items-in-project-server-part-i/
    http://epmsource.com/2011/12/13/hiding-disabling-ribbon-items-in-project-server-part-ii/
    http://msdn.microsoft.com/en-us/library/office/jj873844(v=office.15).aspx#pj15_StatusingApp_ribbon
    Follow
    some of those example to get those buttons working / hiding then modify your code.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • PS2013 - Creating a new instance of Project Server does not run and hangs in "Waiting for Resource"

    Hi,
    In my Project Server 2013 environment I created an instance of Project Server which is running in a notebook Hyper-V Windows 2012 Server with 11 GB, 4 threds, 3 GHz, one box configuration with complete version of SQL Server 2012 with SP1, nothing trial.
    PS and SPS 2013 updated with Cumulative Update of Dec 2013.
    I want to create a new empty instance in the same port 80 with a different URL or in the port 90 creating a new web application.
    Whatever option I choose, when I try to create the instance of the Project Server it hangs in "Waiting for Resource" status. No Event Viewer, no hanged timer Jobs, all services running, all pools and sites started and I found out nothing in the
    SharePoint Logs. After every attempt I return the server snapshot to the former state.
    The Project Server and SharePoint continue to work normally.
    Any hints where should I look to solve this issue?
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Ricardo,
    so, the only clue I can find in your posting is around the web application.
    if you want a 2nd PWA instance on the same web application (this presums you have one already, working, right?).
    all you really have to do is give it a different "pwa" name - like "Test" or some such and use a unique project database name : Test_ProjectServerData
    there is much more you could do, for isolation into a private content database for example.
    to use a different port, then you need to setup a web application on a different port and proceed as above, selecting that web app to start from.
    if the basic action of new pwa site provision is not working, then it may suggest there is something systemmically wrong with the setup.
    let us know,
    Thanks, Eric S. Pcubed

  • Project Server 2010 new resource customization

    Hi
     How to add  Timesheet Manager for a new resource programmatically

    Youc an do it while creating the resource by adding the Guid to the column RES_TIMESHEET_MGR_UID or update the resource dataset later on as below
     SvcResource.ResourceClient ResClient = SetResClientEndPoints();
                SvcResource.ResourceDataSet ResDS = ResClient.ReadResource(new Guid("94cb3050-fe7a-4a45-a0f2-23f748c93ef0"));
                 Res[0] = new Guid("94cb3050-fe7a-4a45-a0f2-23f748c93ef0");
                ResClient.CheckOutResources(Res);
                ResDS.Resources.Rows[0]["RES_TIMESHEET_MGR_UID"] = new Guid("8fd6ee5e-1ecb-4262-8a02-b046cc6ac09c");
                ResClient.UpdateResources(ResDS,false,true);
    Thanks | epmXperts | http://epmxperts.wordpress.com

  • Project Server 2010 - Modification date and name of the person who made the last change in the project

    Hello everybody
    I'm with a doubt.
    I got in the business
    environment Project Server 2010 and
    would like to get the publication date,modification
    date and name
    of the person who made
    the last change in
    the project. It is possible
    to doby the native
    resources or is
    there any query in
    SQL Server to perform a
    query of this information.
    Thank you.
    Obrigado por contactar o fórum Microsoft Technet!

    Hi Hezequias,
    You can get the ProjectModifiedDate column in MSP_EPMProject_userView in the Reporting DB where you can
    get the data based on the projectUID. 
    The "last saved" date in the draft DB (be aware that querying in the draft DB is not supported by MS).
    For the "last modified by", I think it is not stored in any place.
    But you can develop custom code upon publishing the project (Event BeforePublish), writing the current
    date and username automatically into a custom enterprise field.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Project Server 2010 Resource Assigments - Need a license for every Resource?

    I am trying to determine the requirements for Project Server 2010 licenses.
    In Project Server 2010, I need to add resources to the pool, then assign a resource to a project task.  The task will be maintained/statused through a manager, not the resource.  
    Does that resource need to have a Project Server license even if the resource never accesses Project Server even through PWA?

    Hi JenKranich,
    You need licences only for users that will access
    Project Server data by any means :
    MS Project Pro, Sharepoint sites and/or
    PWA.
    But resources not associated with users are not "real person" accessing data but just informal entity, thus no need for licences for those resources.
    It is important to note that if those resources can access the SharePoint site, since it contains Project Server data (risks, issues, deliverables), then they DO need a licence.
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Brand New to Java and Programming

    I'm brand new, ( RAW ) to software programming at this time. I'm starting from scratch, I work on a Help Desk for the government so I can perform some software functionality but nothing as far as programming.. I would like recommendations for someone starting out brand new.. Books to read (JAVA for Dummies?) any beginner courses? What steps would you take if you were starting out brand new as I am myself.. Thanks..
    PS, I plan on taking courses after I get the beginning stuff out of the way, just don't want to go in with no knowledge base..

    For a nice list of stock answers: The One to Torment Newbies with
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoritative than this.

  • Error Project Server 2010, % Complete, Work and Actual Work

    Hi Everyone
    I have a Project Server 2010 SP2 Environment, The farm contains 3 Servers.
    1 WFE, 1WebApp, 1 BD. All servers in the farm are Windows Server 2008 R2 and the Data Base Server is SQL Server 2008 R2
    The Context:
    The Project Managers create the Project in Project Professional 2010 SP2 for support Annual Maintenance about a software, then the team members go to my tasks in PWA to create the task inside the stage in the project, then they put the actual work, then they
    send the progress to his project manager.
    So, the project manager goes to the approval page to approve two times, one, the task creation and two, the progress.
    So far all ok but when the project manager open the Gantt in Project Professional 2010 SP2 , the task that the team member has sent appear with a 100 percent complete, but the work with 0 hours and the actual work with 0 hours too, being that should appear
    with the hours the team member has sent, that is my problem.
    This occur only with this project manger and his team member, all of others project managers in the platform don't report this issue.
    I already have  re open the project and re publish too
    So , let me know if you have some idea about this issue.
    Erick Gutiérrez PMI Membership #ID 2089740 MTCS - Microsoft Project Server Managing Projects

    Only other ideas is to make sure the duration isn't 0, which would make it a milestone.
    Have the resources, recall the timesheets and resubmit.  Run it thru cycle again and see if they actual show up.
    Finally, you can run SQL query and see where the data may be. 
    1) Check if status manager is who you think it is
    2) Check if project shows actuals in sql.  Doesn't explain why not showing in schedule.
    cheers!
    Michael Wharton, MVP, MBA, PMP, MCT, MCTS, MCSD, MCSE+I, MCDBA
    Website http://www.WhartonComputer.com
    Blog http://MyProjectExpert.com contains my field notes and SQL queries

  • Project server 2013 csom save and publish

    Hi,
    In Project server 2013 PWA when you edit project custom fields and save the queue job execute the following jobs: 
    - "Project Update from PSI"
    - "Project Publish Summary"
    - "Reporting (Project Publish Summary)"
    In my code (CSOM)  i can only use : " QueueJob Job = projChechedOut.Publish(true);"
    which is creating all these jobs:
    Project Update from PSI
    Project Publish Notifications
    Project Publish
    Project Checkin
    Prepare Project Web App Permission Synchronization For Projects
    Reporting (Project Publish)
    Project Workflow Check-in
    Synchronize Project Web App Permissions to Project Web App
    Synchronize Project Web App Permissions to Project Site
    Reporting (Project Sync)
    Is there way to "simulate" the save from PWA instead of fully publishing the project using CSOM,  because it is a lighter solution since my code is supposed to only set custom field value (if i only update, not publish it is written to the
    Draft) and secondly performance (less jobs) is better ?
    Thx in advance !!

    Hi,
    as an update to my post:
    - In PSI the method is project.queuepublishsummary(guid jobid, guid projuid)
    http://msdn.microsoft.com/en-us/library/office/gg200290.aspx
    the description says: Publishes the stage summaries of the specified project, in a partial publish operation.
    I am wondering if the equivalent method exists in CSOM. There is this method: PublishedProject.UpdateVisibilityCustomFields() but it seems doing exactly the same thing as publishing a DraftProject.
    Any ideas ?
    Thx

  • Project Server 2003 Change database and connection information

    I am working on Project Server 2003. I want to connect the running server to a different project server database and change database account information. How best to do it.

    Hello,
    You can do this with the edit site tool. See the following Kb for full details:
    http://support.microsoft.com/kb/905386
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Project Server 2013 Excel Services and Perfomance Point reporting

    Hi
    Is there a way to show Enterprise Fields that consists of multiple values in Excel Services and Performance Point reports. It seems to be a big product limitation that this cant be done out of the box
    thanks
    Willem
    Willem

    Hi Willem,
    Indeed multi values custom fields are tricky to be managed through reporting.
    Here is a post done by a friend on our blog about
    multi value custom fields in Excel reporting.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Can new PWA views be created whereby a filter can be set and associate to the view by default? (Project Server 2013 ONLINE)

    My main question is: Can new PWA views be created whereby a filter for that view can be set, and associate to the view by default? (Project Server 2013 ONLINE)? and can I have a filter set to filter on person logged on to...
    In previous versions of Project Server, when CREATING a PWA view, we were able to apply/ define a filter for that view.  Does not seem like it is the case in Project Server 2013 Online.  And if I remember, we could also use the URL Guid_view_id. 
    Please confirm; and / or tell me how-to.
    What I was hoping to do is the following... Given that our standard that we have adopted for reporting time is 'My Timesheets' (fyi, Single Mode Entry=ON), we have some resources who have others who do it on their behalf via 'My Tasks' (ie., accomplished
    by using the 'Assignment Owner' field, accordingly).  Therefore, when entering time on someone else's behalf within 'My Tasks', we like to present the user that is logged in only the tasks that they are are assigned to update on others' behlaf.
    I know that there is another more elegant approach to doing this which may be to use the Delegation feature. But since we are trying to stick to Sharepoint Security mode for now, this is not an option for the time being.
    Any help appreciated would be greatly appreciated.
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi Spiro,
    1- You still can define in Project Online a filter in the view settings, it is located just above the category setting. Here is a screenshot of the summary project center view:
    2- The view GUID is not anymore in the URL, since the URL triggers an action only on the webpart and not on the whole page. I agree this is annoying since it was great to send a URL with a specific view.
    3- Concerning the access to my timesheet versus my task, I'm not sure to get a full understanding but on a general way, it is much more easy to deal with those situation using categories which you cannot do with the SP permission mode.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • PS2013 - When creating a new instance of Project Server hangs in 'Waiting for resources' status

    Hi,
    I have one instance of Project Server 2013 fully operational and I tried to duplicate the instance to make some tests. As I know the issue of using the same Content Database of Project Server in the same Server Farm, I used the powershell  backup/restore/dismount
    and mount the content database to change the site IDs to avoid index duplication. The Project server database was a regular SQL backup and restore in another database.
    I created a new Web App in the port 90 as show below.
    Then I included the Content database of Project Server as separated DB from SharePoint for this new SharePoint -acme90 and I tried to create the new instance. The creation hanged in "Waiting for Resources" status.
    To make another check excluding the reuse of the SharePoint-80 I tried to create another instance both in the SharePoint-80 where is the working instance and in the SharePoint-90, everything default and again they all hanged in Waiting for Resource.
    If I try to create the instance using PowerShell I got the following error:
    PS C:\Users\epm_setup> Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCo
    llection http://acme02/epm -Lcid 1046
    Mount-SPProjectWebInstance : Cannot find an SPSite object with Id or Url:
    http://acme02/epm.
    At line:1 char:1
    + Mount-SPProjectWebInstance -DatabaseName Test_EPM -SiteCollection
    http://acme02/ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidData: (Microsoft.Offic...ountPwaInstance:
       PSCmdletMountPwaInstance) [Mount-SPProjectWebInstance], SPCmdletPipeBindEx
      ception
        + FullyQualifiedErrorId : Microsoft.Office.Project.Server.Cmdlet.PSCmdletM
       ountPwaInstance
    All SharePoint and Project Server services are running, all App Pools and sites are started at the IIS. I could not find a hanging timer job.
    I cannot stop the hanged process or dismount the instances using Powershell since no instance created.
    How should I solve the hanging status of creation of the instance? As they are in Hyper-V I can go back using one snapshot.
    Thank you.
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

    Hi Eric,
    Thank your for your interest in this case.
    I checked for running and crashed PWA jobs and deleted all of them just after restoring the snapshot and tried to create the new instance in the new web app in port 90 (besides the existing and working instance in port 80), but again it hanged in "waiting
    for resources". There is not any timer job hanging, no error in event viewer or in log. So the error is well before working with cloned dbs.
    Answering your questiion, I am working all on 2013. My intention is backup one instance of the port 80 and copy to the instance of port 90, changing of course the url and the index of the content db of SharePoint. The process I used was:
    Create a new web app in port 90, creating a new SharePoint_Content_2 on a
    http://server:90 site.
    Created the top level site called Portal using the Team Site template.
    Create a new content db for new instance of Project Server named EPM_Content_2 using Central Admin.
    Backup content db from port 80 instance of Project Server and restore to this EPM_content_2 using PowerShell cmd.
    Dismounted and mounted this Project Server content db to create new index for existing sites to avoid index conflicts.
    Backup the Project Server DB from port 80 using SQL backup and restored as ProjectWebApp2 db for port 90 instance.
    Tried to create a new instance of Project Server
    http://server:90/pwa on web app of port 90 using the ProjectWebApp2 db and using the same app pool of the other instance. But as in the previous case, it hang out in "Waiting for resources".
    Best regards, Ricardo Segawa - Segawas Projetos / Microsoft Partner

  • Project Server 2013 - Remove user from resource pool via sync

    Hello everyone,
    has anyone managed to configure their Project Server 2013 box with a resource pool sync that will actually remove user from the resource pool (disable "User can be assigned as resource" or deactivate users) when the user is removed from the AD
    group(s)?
    Setup: Single box, SQL 2012 SP1, SharePoint/Project Server 2013 + PU March + CU April. 2 PWA instances, 1 in SharePoint and 1 in Project permission mode. Tried on 2 different machines (different setup, accounts, domains).
    Proceedings:
    Create AD user U, AD group G. Add U to G.
    Go to PWA, setup resource pool sync with G, sync.
    U is now in the resource pool, has no PWA permissions.
    Remove U from G. Resync resoure pool.
    U is still in resource pool, still a resource, still active, can still be assigned as resource.
    Adding U back to G an repeating the whole spiel with a resource pool and a PWA group sync of G will result in U being added and removed from the user list (as expected), and U being added but not removed from the resource pool.
    Having read
    http://technet.microsoft.com/en-us/library/gg982985.aspx and
    http://technet.microsoft.com/en-us/library/gg750243.aspx, there does not seem to be an omission on my part.
    The first article states:
    Note:
    The corresponding Project Server User Account is not deactivated based on this synchronization. If the same Active Directory user is configured to synchronize with a Project Server security group, the Project Server user account will be inactivated when
    that synchronization occurs. For more information, see
    Best practices to configure Active Directory groups for Enterprise Resource Pool synchronization in Project Server 2013.
    Unfortunately, this deactivation either does not seem to occur even with a PWA group sync or I misunderstood the article.
    So, did anyone manage to setup their resource pool sync in a way, that new resource will be added, but also be removed from the resource pool?
    Kind regards,
    Adrian

    Hi Adrian,
    you tried to sync the same AD group that you used for the resource pool sync also with a Project Server permission group?
    And on removal of the user of the AD group the project user/resource is not deactivated? Only removed from the group
    Regards
    Christoph
    Hi  Christoph,
    even though I might have tried that before, I tried it again in several constellations. It didn't change anything. The the user will be properly added to and removed from the PWA group whenever I remove them from the AD group, the use will also stay active
    (but cannot logon without permissions). However, the user will always remain in the resource pool, i.e. the "User can be assigned as resource." checkbox will remain unless it is cleared manually.
    Having re-read the technet articles, none of the scenarios actually seem to descibe or address the process that I require, or maybe I'm just misunderstanding. Let me just try to outline the core issue:
    Add user to AD group. Sync AD group with resource pool. User is now a PWA resource and PWA user.
    Remove user from AD group, but do not deactivate/delete user from AD.
    (Magic happens!)
    User cannot be assigned as ressource in PWA.
    So, is there anything to make this step 3 happen, or is it just not possible to sync users out of the resource pool anymore unless they are deleted/deactivated in AD?
    Kind regards,
    Adrian

  • Is it possible to create a formula that converts a resource hours into full time units in project server 2010

    Hi
    Is it possible to create a formula that converts a resource available hours into full time equivalent units in project server 2010? Say a resource has 160 available hours for any given month this will translate into 1 FTE for this month. If it is 80 hours
    for that month then it will be 0.5 FTE and so on and so forth.
    Thanks,
    -Maurizio

    Maurizio,
    It's a bit late, but there are two OLAP cubes that can provide you with this information in a pivot table in Project Server 2010.
    "MSP_Portfolio_Analyzer" and "Resource Timephased" contains capacity measures that be used to provide calculated measures when the cube database is generated. You change OLAP cube configuration in "Server Settings -> Database Administration -> OLAP
    Database Management". In either of the aforementioned cubes, use "Calculated Measures" to create two measures:
    Member Name
    MDX Expression
    Available (FTE)
    ([capacity]-[work])/[capacity]
    Work (FTE)
    [Work]/[Capacity]
    These two fields will appear in the pivot table field list as "Values", and when combined with a "Time" column, can give you a picture of FTE usage and availability.
    I prefer the portfolio version since it contains project/assignment data and resource data, letting you see just  how resources are being utilized.
    One thing I have not been able to get around is getting ""Maximum Units" for a resource factored into the measure. A common practice is to allocate more that "100%" to generic resources to represent teams for planning purposes. The OLAP measures will show
    only 0.0 to 1.0 FTE for any resource, even if a resource represents more than one body.
    If you have an SSRS query you could share, I would appreciated it!
    Hope this helps!
    JTC
    JAckson T. Cole, PMP, MCITP

Maybe you are looking for