web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Add Custom Field value...
Power Automate
Unanswered

Add Custom Field value in Project Online When Creating Project?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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."
 
 
Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 459

#3
11manish Profile Picture

11manish 382

Last 30 days Overall leaderboard