question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting up OpenActivity and ActivityHistory on Account gives SOQL error

See original GitHub issue

Describe the bug I followed the guide here under the heading: What about indirect relationships? The standard Account timeline shows tasks and events not directly linked to the Account. Can Time Warp do something similar? Setting up the new records as directed

But when the new metadata is active I get the following errors. Depending on which one is active.

SObject row was retrieved via SOQL without querying the requested field: OpenActivity.ActivitySubtype : Class.bmpyrckt.TimelineService.getFieldValues: line 381, column 1 Class.bmpyrckt.TimelineService.getTimelineRecords: line 275, column 1

SObject row was retrieved via SOQL without querying the requested field: ActivityHistory.ActivitySubtype : Class.bmpyrckt.TimelineService.getFieldValues: line 381, column 1 Class.bmpyrckt.TimelineService.getTimelineRecords: line 275, column

To reproduce

  1. Follow the linked guide
  2. go to an Account
  3. switch to the Time Warp view

Expected behaviour I would expect the time warp to show Tasks and events linked to the related Contacts.

Screenshots 2021-10-18 10_09_56-Custom Metadata Types _ Salesforce

2021-10-18 10_10_41-Custom Metadata Types _ Salesforce

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chrome
  • Version: 94.0.4606.81

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
absuptAlmbrandcommented, Oct 28, 2021

Updating solved the problem. Thanks for the help.

1reaction
absuptAlmbrandcommented, Oct 18, 2021

I will start with updating Time Warp then. I will be in touch when we are done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

entity type ActivityHistory does not support query
After executing the query, I got the error as "entity type ActivityHistory does not support query" Can anybody will help me how to...
Read more >
What are the SOQL queries for the actvityHistory and ...
... like the following solve your problem? SELECT Id, Name, (SELECT Id FROM OpenActivities), (SELECT Id FROM ActivityHistories) FROM Account.
Read more >
Object Reference for Salesforce and Lightning Platform
For example, Account provides for four different addresses. ... For example, you create a custom object called Bug that relates to the ...
Read more >
SOQL issue when querying ActivityHi​story as a subquery..
So, if the code below throws the same error, I would check that next. ... The activityhistory object is just a Task or...
Read more >
Open Activities and Activity History Related List in Lightning ...
In Lightning, Salesforce has introduced a standard lightning Component which shows the actions to create the task and other action along with an ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found