tag:blogger.com,1999:blog-3534158126191039150.post1976319021761918035..comments2023-05-11T15:17:58.963+02:00Comments on Jonas Rapp's CRM Trenches: Show ALL related activities in a subgridJonas Rapphttp://www.blogger.com/profile/15215243169718274307noreply@blogger.comBlogger52125tag:blogger.com,1999:blog-3534158126191039150.post-537552178088467032018-05-17T08:59:35.396+02:002018-05-17T08:59:35.396+02:00Hi Congo,
Is this in any way related to the heirar...Hi Congo,<br />Is this in any way related to the heirarchy solution in this article?<br />Or just a general question around importing solutions?<br />I can't really find the connection, perhaps you should try a Dynamics forum?<br />JonasJonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-33480994083703183522018-05-17T08:00:23.920+02:002018-05-17T08:00:23.920+02:00Hello,
I created an assembly and i am calling it i...Hello,<br />I created an assembly and i am calling it in a Custom Action. Everything is working fine on my on-premise environment. I exported the solution(dll and custom actions included). The assembly has been registered in sandbox in database. When the client imported them on his on-premise environment, he is getting error "Assembly should be provided" in the Developer Console as the custom action is returning 500 internal server error. Please help. Thank youCongo Userhttps://www.blogger.com/profile/07423858413493161068noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-75648748324377626122018-02-26T18:29:29.836+01:002018-02-26T18:29:29.836+01:00I followed your instructions exactly, and as such ...I followed your instructions exactly, and as such have only registered the plugin in Database. Could that maybe be my issue? That the assembly file/solution is stored on disk or a on a different server, but that I'm registering it to Database?Anonymoushttps://www.blogger.com/profile/13595566456741300356noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-48559855423605750142018-02-24T12:08:20.213+01:002018-02-24T12:08:20.213+01:00It seems like you are registering the plugin on di...It seems like you are registering the plugin on disk. I have not tried that since CRM 4.0 so I don't have any relevant experience.<br />Have you tried registering the plugin in Database instead?Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-88067882362369105152018-02-24T00:22:06.410+01:002018-02-24T00:22:06.410+01:00Thanks again for the reply, Jonas. I'm on onpr...Thanks again for the reply, Jonas. I'm on onprem 8.2, if that helps at all. I tried disabling the step for the ActivitySubgridHelper and that actually did stop the error from showing up. If I pull up a Contact Form that uses the view with the Null trigger condition, the error doesn't show, but in the subgrid there is just a link that says "To load Activity records, click here." but it doesn't do anything when I click it.<br /><br />I have more detailed information about the error and when it occurs on this community forum: https://community.dynamics.com/crm/f/117/p/269728/766164#766164 if you have time to browse my error, and some of the suggested solutions, maybe that can help identify what I'm doing incorrectly.<br /><br />I really appreciate your help with this, as this is the 100% perfect solution for what I'm trying to do, and there doesn't seem to be any better or easier way to accomplish it than this wonderful plugin. I just can't seem to get it to work for me. :)Anonymoushttps://www.blogger.com/profile/13595566456741300356noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-2340253741856134092018-02-21T20:09:16.249+01:002018-02-21T20:09:16.249+01:00Now I'm at a loss... Tried it in an onprem 8.1...Now I'm at a loss... Tried it in an onprem 8.1 and online 8.2 (don't have access to onprem 8.2) and it works just fine. Could you try disabling the steps for "my" plugin and see if the problem persists?Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-65940652213461338522018-02-21T19:30:33.453+01:002018-02-21T19:30:33.453+01:00Thank you so much for the reply! I am using Dynami...Thank you so much for the reply! I am using Dynamics 365 on premises. I first tried to import the solution and register the plugin, which went perfectly smooth, but on the Contact form it shows "Click here to load records" but nothing happens when I click. Then on any other pages showing Activity views of any kind, I get the error that says Unable to load plugin assembly. When I view the error log details it says Assembly should be provided. Any thoughts on what I can do or change to get it working successfully? Anonymoushttps://www.blogger.com/profile/13595566456741300356noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-14701060831456456062018-02-21T08:51:17.005+01:002018-02-21T08:51:17.005+01:00Hi,
This error usually indicates using a plugin re...Hi,<br />This error usually indicates using a plugin referencing other SDK than what is on the server. Which version of CRM are you using? Did you simply import the solution or did you build the code?<br />Since the problem does not appear where you would expect it to trigger, are you sure it is this plugin causing the error?<br />/JonasJonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-40662524068050922022018-02-20T21:14:23.459+01:002018-02-20T21:14:23.459+01:00Hi Jonas. Great walkthrough and detail. I was wond...Hi Jonas. Great walkthrough and detail. I was wondering if you might be able to help me debug and issue I'm having? I keep getting an error that says Unable to load plugin assembly. The error doesn't appear when i view a contact, but neither do the Activities. The error appears on the Activities records view, and any other pages with Activity views, but not on the Form I customized with this plugin. Any help you can offer would be greatly helpful. Anonymoushttps://www.blogger.com/profile/13595566456741300356noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-25332745213003441072018-02-14T23:28:25.628+01:002018-02-14T23:28:25.628+01:00Excellent, thank you! I got it working and learne...Excellent, thank you! I got it working and learned a lot more about coding a plugin than I ever knew I wanted to, haha. Thanks again!Financial IT Guyhttps://www.blogger.com/profile/11013712375959910375noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-13677809955461530202018-02-14T17:27:20.532+01:002018-02-14T17:27:20.532+01:00Hi Unknown,
Unfortunately (?) that must be done in...Hi Unknown,<br />Unfortunately (?) that must be done in the code.<br />It could be inserted at line 8 in the last code snippet above.Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-38554958557468041012018-02-14T17:00:17.485+01:002018-02-14T17:00:17.485+01:00Hi Jonas,
I am having the same issue and was wonde...Hi Jonas,<br />I am having the same issue and was wondering if you can clarify for me where to add the "query.distinct = true"? Do I need to modify the source code, compile the DLL and then repackage the solution? Or is there a better/easier way, like through customization or something?<br /><br />Thank you in advance, by the way...Your solution has helped fix a problem that was driving me and my users crazy!Financial IT Guyhttps://www.blogger.com/profile/11013712375959910375noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-11243095750130560372018-01-25T13:50:02.673+01:002018-01-25T13:50:02.673+01:00You're welcome :)You're welcome :)Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-71633648575733183442018-01-25T13:48:12.007+01:002018-01-25T13:48:12.007+01:00Thank You, Jonas! Saved a lot of time, our busines...Thank You, Jonas! Saved a lot of time, our business didn't want to use standard activities grid in account.Antanas Steponavičiushttps://www.blogger.com/profile/13207254299678413621noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-58026987017856415072018-01-24T20:48:10.968+01:002018-01-24T20:48:10.968+01:00Thanks Jonas for sharing this link. Actually I fo...Thanks Jonas for sharing this link. Actually I followed the steps which you have mentioned and it works like a charm under Account but under contact if I try to implement the same approach it is not displaying any activities. Under contact I am just trying to hide account activity information and display all other activities associated to that contact. Please help. <br />Venkatesh Manoharanhttps://www.blogger.com/profile/08115389438998442414noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-84500120334959126472018-01-23T23:54:57.815+01:002018-01-23T23:54:57.815+01:00You probably want to have a look at the next artic...You probably want to have a look at the <a href="http://jonasrapp.innofactor.se/2016/05/hierarchy-activities.html" rel="nofollow">next article</a>...Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-63970368330884455912018-01-23T23:52:35.722+01:002018-01-23T23:52:35.722+01:00The grid is not showing the rollup view for the ac...The grid is not showing the rollup view for the account, it is only showing the activity regarding of the account. I have created a phone call under a contact and it didn't show up on this grid. Any idea? Venkatesh Manoharanhttps://www.blogger.com/profile/08115389438998442414noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-75460747876814861992018-01-23T23:19:11.893+01:002018-01-23T23:19:11.893+01:00Ok thanks...I have figured out...it is just a prop...Ok thanks...I have figured out...it is just a property which was turned off. Thanks Again. Venkatesh Manoharanhttps://www.blogger.com/profile/08115389438998442414noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-54177878663288776832018-01-23T23:14:47.764+01:002018-01-23T23:14:47.764+01:00Glad it worked :)
Can't really explain the pag...Glad it worked :)<br />Can't really explain the paging... the query is altered before being executed, so CRM should handle it like any normal query/view...Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-79579216761273706992018-01-23T23:11:39.355+01:002018-01-23T23:11:39.355+01:00One more quick question...any idea why it is not d...One more quick question...any idea why it is not displaying the pagination on the grid? Venkatesh Manoharanhttps://www.blogger.com/profile/08115389438998442414noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-70786372318215593992018-01-23T23:10:32.568+01:002018-01-23T23:10:32.568+01:00Thanks for your quick response. That resolved the...Thanks for your quick response. That resolved the issue.Venkatesh Manoharanhttps://www.blogger.com/profile/08115389438998442414noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-79362369825348592012018-01-23T22:58:10.540+01:002018-01-23T22:58:10.540+01:00Hi Venkatesh.
This could be if the contact is tagg...Hi Venkatesh.<br />This could be if the contact is tagged as both from and regarding, try updating your query with "query.Distinct=true;"Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-55164197605266531052018-01-23T22:50:26.876+01:002018-01-23T22:50:26.876+01:00Hi Jonas,
I have applied this solution on my test...Hi Jonas,<br /><br />I have applied this solution on my test environment and because of some reason if I create a Open Phone call it shows duplicate records in the contact -> All Activities grid? Any idea why it is doing that? Many Thanks for your helpVenkatesh Manoharanhttps://www.blogger.com/profile/08115389438998442414noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-50426510366159964612017-05-18T11:28:09.840+02:002017-05-18T11:28:09.840+02:00Hi Bellam - and thanks :)
I think you could just ...Hi Bellam - and thanks :)<br /><br />I think you could just create one view for each subgrid, adding filter for activity type, and using the same "signature filter" that triggers the plugin and keep the plugin as is.<br />If that is not possible you could try to create different "signatures" and update the plugin to be aware of which types of activities to retrieve fore each signature.<br /><br />Hope this helps :)Jonas Rapphttps://www.blogger.com/profile/15215243169718274307noreply@blogger.comtag:blogger.com,1999:blog-3534158126191039150.post-59811100869670198992017-05-17T18:06:33.742+02:002017-05-17T18:06:33.742+02:00Hi Jonas,
Firstly, Many Thanks for your brilliant...Hi Jonas,<br /><br />Firstly, Many Thanks for your brilliant post.<br /><br />I have a query on filtering the activities further based on their activitytype and showing them on each related sub-grids on an account form (Example - Emails onto emails sub-grid and Phone calls onto Phone call sub-grid). Could you please suggest whether it is possible or not? If possible, how I can achieve it. Please suggest.<br /><br />Many Thanks for your help!!Bellamhttps://www.blogger.com/profile/11518512749605696424noreply@blogger.com