Share via


WorkflowActivities.CreateProjectFromListItem method

Creates a project from a SharePoint list item, where the project uses the specified enterprise project type (EPT).

Namespace:  Microsoft.ProjectServer.Client
Assembly:  Microsoft.ProjectServer.Client (in Microsoft.ProjectServer.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Function CreateProjectFromListItem ( _
    webId As Guid, _
    listId As Guid, _
    itemId As Integer, _
    eptId As Guid _
) As ClientResult(Of Guid)
'Usage
Dim instance As WorkflowActivities
Dim webId As Guid
Dim listId As Guid
Dim itemId As Integer
Dim eptId As Guid
Dim returnValue As ClientResult(Of Guid)

returnValue = instance.CreateProjectFromListItem(webId, _
    listId, itemId, eptId)
[RemoteAttribute]
public ClientResult<Guid> CreateProjectFromListItem(
    Guid webId,
    Guid listId,
    int itemId,
    Guid eptId
)

Parameters

  • webId
    Type: System.Guid

    The GUID of the SharePoint site (SPWeb) that contains the list.

  • listId
    Type: System.Guid

    The GUID of the list (SPList) that contains the project item.

  • itemId
    Type: System.Int32

    The GUID of the project item (SPListItem) within the list.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<Guid>
The GUID of the newly created project.

Remarks

The CreateProjectFromListItem method internally calls the WorkflowActivitiesCreateProjectFromListItem(Guid, Guid, Int32, Guid) method.

See also

Reference

WorkflowActivities class

WorkflowActivities members

Microsoft.ProjectServer.Client namespace