Component does not find Opp Parent Record #179
-
Hi Dave, we did a fresh install of the timeline in our fully copy sandbox. Tried it on account and asset and it nicely works. When I put the component on the opportunity lightning record page, it does not find the "Use This Opportunity" Parent Record. The custom metadata comes with a preset of related objects to be shown on opportunity and all are active, looking ok. I checked the installation guide and KB but was not able to figure sth. out here. Any idea? Thanks! P.S.: Our organization will love this! Cheers, Christian |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi @ChristianK1711 sounds like a strange one I've not come across before. This field tries to populate all fields on the Opportunity object where there is a relationship. If for some reason one of the fields on your Opportunity object causes an issue then I could foresee this error happening. The only way we have to check is to run the following code in the developer console (execute apex anonymous). This is the code that loops through the object to find the fields to populate into the dropdown list. I have amended the code to output the field names to the debug log.
Would you be willing to run it in the Org you are having issues with to see if it runs successfully? If you need step by step screenshots just let me know. |
Beta Was this translation helpful? Give feedback.
-
Quick Update: In an empty and fresh dev sandbox it works ok and all possible related options including "Use this Opportunity" are available. Could it be a data issue? We'll try it in our "official" Dev (dev sandbox) & QA (full copy) Orgs soon and let you know here. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks for checking @ChristianK1711 good to know it worked in a fresh sandbox. It's likely to be a metadata issue...a label...or translated label in your setup in the full sandbox that cannot be displayed..... is my best guess...but at this stage I'm not ruling anything out. Having better error handling will help but I would love to know what causes it as there is a chance whatever code we add doesn't fix your particular issue. Next release is scheduled for 1st week of June. |
Beta Was this translation helpful? Give feedback.
-
Good morning! Let me check how it works when we're going into our "real" QA full copy sandbox and production system afterwards (the previous org where it did not work was a playground QA full copy - nevertheless a copy of the "real" QA.). Keep you posted here. Thanks! |
Beta Was this translation helpful? Give feedback.
-
New v1.11 now contains additional error handling. Hopefully it addresses the issue here. |
Beta Was this translation helpful? Give feedback.
New v1.11 now contains additional error handling. Hopefully it addresses the issue here.