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 Apps / reating a ActivityPart...
Power Apps
Unanswered

reating a ActivityParties for a Custom Activity inside a PCF

(0) ShareShare
ReportReport
Posted on by 26

I am attempting to create activity parties for a custom activity in a PCF using the webApi. Unfortunately, I continue to encounter an error around the activity parties. 

"An error occurred while validating input parameters: Microsoft.OData.ODataException: An undeclared property 'partyid_systemusers' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values. "

 

 

 

 

 

CreateMessage(description:string, title:string, userId:string, contactId:string){
 var activityParties = []

 // From - Participation Type Mask = 1
 let Sender:ComponentFramework.WebApi.Entity = {};
 Sender["partyid_systemuser@odata.bind"] = "/systemusers(" + userId + ")";
 Sender["participationtypemask"] = 1;
 activityParties.push(Sender);
 
 // To - Participation Type Mask = 2
 let Receipent:ComponentFramework.WebApi.Entity = {};
 //Receipent["LogicalName"] = "activityparty"
 Receipent["partyid_contact@odata.bind"] = "/contacts(" + contactId + ")";
 Receipent["participationtypemask"] = 2;
 activityParties.push(Receipent);
 
 let message:ComponentFramework.WebApi.Entity = {};
 message["description"] = description;
 message["subject"] = title;
 message["activity_pointer_new_Message"] = activityParties;

 this.props.WebApi.createRecord('new_message', message).then(
 function success(message:any) {
 console.log("Message has been created");
 },
 function Error(e:any) {
 console.log(e.message);
 }
 )
 }

 

 

 

 

Any ideas on what I am doing wrong here?

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard