Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Plugin Update current record

$
0
0

CRM2016

I have been writing a plugin which reads a record, does a bit of weird stuff and comes up with a 'result'. I'm using a postimage for the plugin.

The field I am trying to update is new_apacs18 text field multiline

Dim context AsIPluginExecutionContext =

DirectCast(serviceProvider.GetService(GetType(IPluginExecutionContext)), IPluginExecutionContext)

If context.PostEntityImages.Contains("PostTransSetInserted") AndAlsoTypeOf context.PostEntityImages("PostTransSetInserted") IsEntityThen

 

 

Dim PostTransSetInserted AsEntity = DirectCast(context.PostEntityImages("PostTransSetInserted"), Entity)

when I try  PostTransSetInserted.Attributes("new_apacs18file") =" some result" the plugin compiles ok but nothing gets posted back to the crm field.

any suggestions on where I am going wrong or a good tutorial to look at


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>