Hello,
is it possible to pass a EntityCollection to a custom action logic? This
[RequiredArgument] [Input("Sales Order")] [ReferenceTarget("salesorder")] public InArgument SalesOrders { get; set; }
or that
[RequiredArgument] [Input("Sales Order")] [ReferenceTarget("salesorder")] public InArgument SalesOrders { get; set; }
leads to this error message in the registration process:
Sending the EntityCollection (as input argument) from the Javascript logic to the CRM process (custom action) works so far. But I need to send that data to be passed to the C# logic (workflow).
Please close the thread by checking the answer as verified if the response is useful. Thank you.
Great idea! Thank you very much for your help!
Best regards,
Bernhard
you're welcome. you can pass a string wish contains a list of Guids. Something like: "{xxxx,yyyy,zzzz}".
In the back-end, split the string and get the Ids.
Hello Mehdi,
thanks for your answer. This means I have to send the selected entities from the frontend (JS, REST) one by one as EntityReference and there is no better/performant way?
Thanks,
Bernhard
EntityCollection is not supported in this case. Please check the doc: docs.microsoft.com/.../gg327984(v=crm.8)
The following types are supported for custom workflow activities: Bool, DateTime, Decimal, Double, EntityReference, Int, Money, OptionSetValue, String.
Mehdi,
Please tick as verified if the answer is useful.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,902 Super User 2024 Season 2
Martin Dráb 229,302 Most Valuable Professional
nmaenpaa 101,156