Reputation: 5619
CRM 2013 On-Premise
Hello,
I need to display a calendar of events. The information I need all comes from our custom "event" entity.
My first thought was to use this as an excuse to do something I haven't done before and add a new service endpoint. That being said I didn't find anything in the sdk or via Google.
So stumbling around in the dark I see that in the plugin registration tool I can register a service endpoint just like I do a workflow or plugin.
So do I just create a service endpoint like any other or are there special considerations?
Thank You
Upvotes: 1
Views: 1658
Reputation: 61
Because actions don't work in offline mode, I use a dummy entity "ServiceJSON" with some input parameters fields and 1 output param and a plugin register on Retrieve for this entity. I fill the output param with my json via the plugin.
To call the "service", I just try to retrieve this entity in js (with a fetchxml) with my input parameters and I read the output :)
Upvotes: 2
Reputation: 2170
A new endpoint cannot be created - you have to work with the standard CRUD messages - those are available for every entity.
2013 introduced Actions which are basically custom messages: Power Objects has an intro.
A custom workflow activity can be added to an action in the workflow designer in the same way that a custom workflow activity can be added to a workflow in the workflow designer.
Upvotes: 0