Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Add Custom Field value in Project Online When Creating Project?

(0) ShareShare
ReportReport
Posted on by

In the following REST API, I can add a project to the PWA site. The only problem I am having is that I can't seem to figure out how to add to a custom field. For my example, I want to add to the "Project Departments" column but I am not sure how to add it in my parameters. How can I add text to the "Project Departments" column?

 

Method: POST

Uri: _vti_bin/client.svc/ProcessQuery

 

Headers:

accept: application/json;odata=verbose

Content-Type: text/xml

 

Body:

<Request xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009" SchemaVersion="15.0.0.0" LibraryVersion="16.0.0.0" ApplicationName="Javascript Library">
    <Actions>
        <Method Name="SetCustomFieldValue" Id="14" ObjectPathId="8">
            <Parameters>
                <Parameter Type="String">Custom_x005f_9d77d62aa92e4d40adc6146c90eb5156</Parameter>
                <Parameter Type="Array">
                    <Object Type="String">Entry_26fc22b482eee811afb200155d766822</Object>
                </Parameter>
            </Parameters>
        </Method>
        <Method Name="Update" Id="15" ObjectPathId="6" />
    </Actions>
    <ObjectPaths>
        <Property Id="6" ParentId="0" Name="EnterpriseResources" />
        <Method Id="8" ParentId="6" Name="GetById">
            <Parameters>
                <Parameter Type="String">48dd454c98-66d2-ea11-917e-fc3fdbfe3fed</Parameter>
            </Parameters>
        </Method>
        <Constructor Id="0" TypeId="{3a609e855f-e2a1-497c-87a2-e5e8a781d096}" />
    </ObjectPaths>
</Request>

 

I am confused which Id's need to go where...

 

For 

        <Method Id="8" ParentId="6" Name="GetById">
            <Parameters>
                <Parameter Type="String">48dd454c98-66d2-ea11-917e-fc3fdbfe3fed</Parameter>
            </Parameters>
        </Method>
 
What Id goes here? The project ID?
 
And what about constructor?
 
        <Constructor Id="0" TypeId="{3a609e855f-e2a1-497c-87a2-e5e8a781d096}" />
 
What Id goes here?
 

 

The Error:

"The property 'Departments' does not exist on type 'PS.ProjectCreationInformation'. Make sure to only use property names that are defined by the type."
 
 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics