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

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard