Hi everybody.
I have some necessity to send entity-record to my rest-service from plugin (during it's execution)... but, I don't want to write difficult logic inside this plugin!
Well, I suggest, that plugins logic should only implement bussines logic for entity-records just inside CRM (like field-checks for some conditions, or fieling somefield from another records), as for other logic for some bussiness-task, that works outside CRM, I prefer to endure implementation to some web/winServices. And rightnow I want to implement logic for webService client for different services outside plugin. But i don't know, is it posible to retrieve entity-record during plugin execution...
I mean, for example, plugin, that works with onCreate message - during it's execution entity-record is not commited to CRM-DB. And i don't know, can or can't i retrieve this record frob CRMWebApi with OData. So can i do something like this:
*This post is locked for comments
Hi,
You can get properties of the record which is in execution in your pre plugin, but you won't be able to get it's GUID which is generated once record is in CRM DB. And if you need some unique id you can use alternate keys msdn.microsoft.com/.../dn932139.aspx. Although technically you can also pass your own GUID with entity object, but this is not recommended blogs.msdn.microsoft.com/.../the-dangers-of-guid-newguid
Hope it will help.
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... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156