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)

SavedQueryVisualization always creates two records - Update / Retrieve-Problem

(0) ShareShare
ReportReport
Posted on by

hi,

my plugin is creating an record of type "savedqueryvisualization" to display some information right beside the account-list (where the charts are located).

The problem I have right now is, that after I've created that record a second record with the same Id but different uniqueid gets created.

The view "savedqueryvisualization" only returns one record, but the table "savedqueryvisualizationbase" has two of these records.

The Problem:

when I retrieve the record from my plugin it returns the first record.

when I update the record it updates the second record (because they have the same Id)...

So I can never retrieve my updated record...

I checked the View "savedqueryvisualization": there is an orderby overwritetime asc which returns the wrong record.

any ideas how to fix this issue?

Tobias

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Looks to be related to the solution layering. What are the SolutionIds for each of the entries? Can you share the code you're using the perform these operations ?

  • T.Koller Profile Picture
    145 on at

    no, the solutionid and the savedqueryvirtualizationid are exactly the same...the only difference is the unique id

  • Radu Chiribelea Profile Picture
    6,667 on at

    How about the component state ?

  • T.Koller Profile Picture
    145 on at

    one is 0, the other one 1...i think there is an issue within my plugin.

    when I simply just create a new savedqueryvisualization it only creates one record.

  • Verified answer
    Radu Chiribelea Profile Picture
    6,667 on at

    One is published while the other one is unpublished: msdn.microsoft.com/.../gg328546.aspx

    Can you share your code here? Also are you generating the SavedQueryVisualizationID from the code or are you letting the CRM Platform handle it?

  • Tobias Koller Profile Picture
    on at

    hi Radu,

    thanks for your help. That was the problem...one is published, one is not.

    After I published my entity the second record is gone.

    Tobias

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