web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Timelines In Portals

(0) ShareShare
ReportReport
Posted on by 1,841 Most Valuable Professional

Hi, wondering if there is a way to get around how the portal displays the activities on a timeline on a case specifically. 

In a portal, I am going to enable the ability to display Emails, Phone Calls, Tasks and Portal Comments. No problem. However, the description field (which I want displayed) can get really long, so the idea would be to show just the subject, activity type and date, and then be able to open up the detail to read more. 

First thought was to create a view of activities, a form to display the activity and then use an Entity Form with a subgrid with the view, then enable the activity to be opened using a different Entity Form which displays an activity form. Problem is, the activity entity cannot be edited and you can't create forms for it. It makes sense because the forms exist on the Phone Call, Task and Email entities. 

 So, here is what I have figured out and come up with so far: 

  • The Portal Timeline cannot be edited. So, I can either show it as is, or not show it.
  • I can show a list of activities like you see below, and determine which fields are displayed
  • activities-list-1.png
  • However, even though we can try and link the activity to a pop up to view the detail, the activity entity doesn’t have forms, so we can’t customise anything and nothing displays ?
    • So we have two options:
      • Leave the timeline in place to show everything (based on the date filter you will give me), and just accept that the list could end up being really long based on what is in the description of an activity
      • Add in a list of activities and opt to display specific fields, like the subject, description and don’t let them drill in to it any further:
    • activities-list-2.png

However, then you can see the issue with the HTML of the email being displayed in all it's glory.... NOT pretty.

So, any ideas from anyone on how I can display the timeline of activities, but let the user drill in to the content to see the description? 

*This post is locked for comments

I have the same question (0)
  • Megan V. Walker Profile Picture
    1,841 Most Valuable Professional on at

    Anyone have any ideas? :-(

  • Suggested answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Hello,

    Try below code under 'Custom JavaScript' section of Web page to replace your HTML code with Text format.

    $(document).ready(function(){

    $("td[data-attribute*='description']").each(function() {

    var emailMessage=$(this).attr('data-value');

    $(this).html(emailMessage);

    });

    });

     

    Mark this an answer, If it helps.

     

    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

     

  • Megan V. Walker Profile Picture
    1,841 Most Valuable Professional on at

    Thanks Arpit. I will give it a try!

  • Megan V. Walker Profile Picture
    1,841 Most Valuable Professional on at

    Hi Arpit. This didn't work unfortunately. Any other ideas or tweaks to the JS?

  • LeeHarris Profile Picture
    30 on at

    Hi Megan,

    Did you ever manage to solve this? I am having the same issue. I have tried the custom javascript but it just doesn't appear to be firing when the form loads.

  • Suggested answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Hi,

    Please make sure you have configured below site setting in order to display activites or timeline on portal. By default its value is false.

    "CustomerSupport/DisplayAllUserActivitiesOnTimeline" with value "True".

    Mark this an anwser. If it helps

    Cheers

    Arpit

  • LeeHarris Profile Picture
    30 on at

    Hi Arpit,

    I was originally using the sub grid approach that Megan mentioned in the original post but have now tried going back to using the standard Timeline view. Even with the setting you mentioned I am now just getting "Error completing request. Internal Server ErrorInternal Server Error" whenever it tries to load the Timeline. Any ideas?

    In case it helps, I have set up global web roles for incident, activitypointer, and adx_portalcomment. I have also added the timeline metadata and can add new portal comments from the portal, and then see these in Dynamics. Not sure what I've missed.

    Thanks

  • Suggested answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Please check all the configurations given in below article. May be you missed anything.

    [View:https://community.dynamics.com/enterprise/b/colinvermandermicrosoft/archive/2017/02/20/dynamics-365-portals-display-activities-with-timeline]

    Hope it helps.

  • AntonioV Profile Picture
    80 on at

    Hi Lee, you probably solved this, but just in case you did not, I came across a similar issue, in my case I had a wrong entity relationship put under entity permission record for the Activity entity (I used the Parent permission type, but the wrong relationship was chosen - new entities were created)

  • AntonioV Profile Picture
    80 on at

    Also, did anyone manage to change the columns of the Portal Comment entity that are displayed in the default Timeline for a given entity. I can see the Portal Comments on Timeline, I can create Comments from Portal but I cannot change the columns of the Portal Comment entity that are displayed inside the timeline. Default columns that are shown are From and Description. I've tried to change various views but no effect.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans