cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jai008
Regular Visitor

How to set Customer field in campaign response vai Plugin

Hello Team,

 

I am trying to set "Customer" field to a Contact record but I am not sure how to do that? 

 

I am using early-bound and below is the type (IEnumerable<Entity>) of Customer field as shown in VS:

jai008_0-1646891076187.png

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
jai008
Regular Visitor

Hi,

 

Thank you for response! 

 

As campaignresponse is of base type activitypointer (campaignresponse EntityType (Microsoft.Dynamics.CRM) | Microsoft Docs), I got that working by using below :

eg.:

campaignResponse.Customer = new ActivityParty[] { new ActivityParty { PartyId = new EntityReference("contact", <contactGUID>)}};

 

Thanks!

View solution in original post

2 REPLIES 2
alimohsin707
New Member

Please use below one. 

 

campaignResponse.Customer = new EntityReference("contact",<contactGUID>);

jai008
Regular Visitor

Hi,

 

Thank you for response! 

 

As campaignresponse is of base type activitypointer (campaignresponse EntityType (Microsoft.Dynamics.CRM) | Microsoft Docs), I got that working by using below :

eg.:

campaignResponse.Customer = new ActivityParty[] { new ActivityParty { PartyId = new EntityReference("contact", <contactGUID>)}};

 

Thanks!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,379)