rappen / CustomActionTester

MIT License
7 stars 2 forks source link

First time testing with output parameter in Custom Action #33

Closed YerkoF closed 10 months ago

YerkoF commented 11 months ago

I have a Custom Action with input (string/json) and an output (string/json)

and i get the error below. It could be my code. But with that error code returned in the tool it's hard to tell(?)


System.ServiceModel.FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault>:
Object reference not set to an instance of an object.
Custom Action Tester

Server stack trace: 
- System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
- System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
- System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
- System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
- Microsoft.Xrm.Tooling.Connector.CrmServiceClient.Execute(OrganizationRequest request)
- Rappen.XTB.CAT.CustomActionTester.<>c__DisplayClass27_0.<ExecuteCA>b__0(BackgroundWorker worker, DoWorkEventArgs args)
- System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
- System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

YerkoF commented 11 months ago

It was my code. if you follow https://learn.microsoft.com/en-us/power-apps/developer/data-platform/workflow/workflow-extensions

when you create a Process(Action). When you do the assign value step. I had not selected start action image

image

YerkoF commented 11 months ago

so you can close the issue (sorry)