I have a plugin created that gets invoked when an entity is being created:
Event pipeline: PostOperation
Exec mode: Async
And basically the create plugin does some things and serializes the entity and sends this over the wire to another endpoint service via POST using the WebClient.
This works great locally but in the test environment, nothing happens. I don't even see the POST happening (as I have logs on this other endpoint). The other endpoint simply adds the entity into the database and returns back an ID to which then the plugin takes and adds it to a custom field in this entity and updates it using the org service.
What is the best way to see why this is not working in test?
if I use something like postman to post the entity to the endpoint, it works successfully and I get back a response and the log written with data, just not sure why Dynamics CRM 365 is not being able to do the POST?
The kicker is that when I profile the plugin, it will not let me debug fully because it uses the WebClient to do the POST and the plugin registration tool crashes...
P.S: I also have an update webhook that does a call to an endpoint but even that does not appear to get invoked by CRM! But when I change the endpoint urls to point to my local, all is fine.