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 contact to marketi...
Power Automate
Unanswered

Add contact to marketing list using Perform an Unbound Action

(0) ShareShare
ReportReport
Posted on by 6

Anyone have any experience with using the Perform and Unbound Action action in the cds connector? https://docs.microsoft.com/en-us/connectors/commondataserviceforapps/#perform-an-unbound-action

Tried to construct an action to add a contact to a marketing list but receiving some errors. Anyone have success with creating the query?

Inputs:

 

{
 "host": {
 "apiId": "***",
 "connectionReferenceName": "shared_commondataserviceforapps",
 "operationId": "PerformUnboundAction"
 },
 "parameters": {
 "actionName": "AddListMembersList",
 "item/List/listid": "1099c99b-6e06-ea11-a811-000d3a795fed",
 "item/Members": [
 {
 "contactid": "1dd9cc96-a4f7-e911-a813-000d3a794392",
 "@odata.type": "Microsoft.Dynamics.CRM.contact"
 }
 ]
 }
}

 

 Outputs:

 

{
 "statusCode": 400,
 "headers": {
 "Cache-Control": "no-cache",
 "Set-Cookie": "",
 "Server": "",
 "x-ms-service-request-id": "",
 "Strict-Transport-Security": "max-age=31536000",
 "REQ_ID": ",",
 "AuthActivityId": "",
 "x-ms-ratelimit-burst-remaining-xrm-requests": "5998",
 "x-ms-ratelimit-time-remaining-xrm-requests": "1,199.92",
 "OData-Version": "4.0",
 "X-Source": "25097213227865284231156169119942302191521281982142522006411489022222625420722522787171",
 "Public": "OPTIONS,GET,HEAD,POST",
 "Timing-Allow-Origin": "*",
 "Date": "Thu, 14 Nov 2019 02:45:08 GMT",
 "Content-Length": "5156",
 "Allow": "OPTIONS,GET,HEAD,POST",
 "Content-Type": "application/json; odata.metadata=minimal",
 "Expires": "-1"
 },
 "body": {
 "error": {
 "code": "0x0",
 "message": "An error occurred while validating input parameters: System.FormatException: Input string was not in a correct format.\r\n at System.Text.StringBuilder.FormatError()\r\n at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)\r\n at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)\r\n at System.String.Format(IFormatProvider provider, String format, Object[] args)\r\n at Microsoft.Crm.CrmHttpException..ctor(HttpStatusCode statusCode, String message, Object[] args)\r\n at Microsoft.Crm.Extensibility.OData.CrmEdmEntityReference.CreateCrmEdmEntityReference(Uri link, IEdmModel edmModel, CrmODataExecutionContext context, EntitySetSegment& entitySetSegment)\r\n at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitiveData(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)\r\n at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitives(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, EdmEntityObjectCollection& result)\r\n at Microsoft.Crm.Extensibility.ODataV4.CrmODataActionPayloadDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)",
 "innererror": {
 "message": "An error occurred while validating input parameters: System.FormatException: Input string was not in a correct format.\r\n at System.Text.StringBuilder.FormatError()\r\n at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)\r\n at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)\r\n at System.String.Format(IFormatProvider provider, String format, Object[] args)\r\n at Microsoft.Crm.CrmHttpException..ctor(HttpStatusCode statusCode, String message, Object[] args)\r\n at Microsoft.Crm.Extensibility.OData.CrmEdmEntityReference.CreateCrmEdmEntityReference(Uri link, IEdmModel edmModel, CrmODataExecutionContext context, EntitySetSegment& entitySetSegment)\r\n at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitiveData(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, CrmEdmEntityObject& result)\r\n at Microsoft.Crm.Extensibility.ODataV4.ODataParameterReaderExtensions.TryReadFlowPrimitives(ODataParameterReader oDataParameterReader, ODataDeserializerContext readContext, EdmEntityObjectCollection& result)\r\n at Microsoft.Crm.Extensibility.ODataV4.CrmODataActionPayloadDeserializer.Read(ODataMessageReader messageReader, Type type, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)",
 "type": "Microsoft.Crm.CrmHttpException",
 "stacktrace": " at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.ValidateInputParameters(ModelStateDictionary controllerModelState)\r\n at Microsoft.Crm.Extensibility.OData.ActionController.<>c__DisplayClass9_0.<PostUnboundAction>b__0()\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"
 }
 }
 }
}

 

Categories:
I have the same question (0)
  • anmateusMSFT Profile Picture
    on at

    Hello ayy8,

     

    Would it be possible for you to share with us a screenshot of the values you are inputting in the Perform a Bound action card?

    How exactly are you entering the user value?

     

    Best regards,

    Ana Mateus

    Support Engineer

    Power Platform

  • Antheny Yu Profile Picture
    6 on at

    Just wanted to share the flow with everyone after several hours of trial and error with Microsoft Flow. How to use microsoft flow to add and remove members to a static marketing list.

    To add a record to the marketing list, use the Common Data Service (Current Environment) connector and select "Perform a bound action".

    In the details of your bound action: There might be a long delay for the flow connector to retrieve a list of the actions. Be patient!
    There is no need to surround brackets around the guid. i.e. contacts(guid_value)

    Entity Name: marketing lists
    Action Name: AddMemberList
    Item ID: GUID of marketing list
    EntityId: Guid of contact value

    To remove a record from the marketing list, use the Common Data Service (Current Environment) connector and select "Perform a bound action".
    In the details of your bound action:

    Entity Name: marketing lists
    Action Name: RemoveMemberList
    Item ID: GUID of marketing list
    EntityId: Guid of contact value

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard