Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a custom Json Builder for a Standard object (Opportunity) fails silently ? #2

Open
Esya opened this issue Sep 14, 2020 · 3 comments

Comments

@Esya
Copy link

Esya commented Sep 14, 2020

Hi,

We're trying to implement a custom JsonBuilder for a standard object (Opportunity) but it fails without any error or logs.

For now this is just following the minimal example, such as :

global with sharing class CustomOpportunityJsonBuilder extends pandadoc.JsonBuilder {
    public CustomOpportunityJsonBuilder() {
        super(Opportunity.getSObjectType(), null);
    }

    public override pandadoc.Item[] getItems(SObject record) {
        return null;
    }

    public override pandadoc.Recipient[] getRecipients(SObject record) {
        return null;
    }

}

But when we set it up like so :

Image

The Pandadoc component is blank, and clicking on "New Document" gives us an empty page.

Image2
Image3

Also, the logs are empty :

Image4

(Of course, if we use the built-in apex class, pandadoc.OpportunityJsonBuilder, everything works fine)
Any idea on how to troubleshoot this ?

@dlopez-radialspark
Copy link

+1 😐

@jeffunderdown
Copy link

+1 Also experiencing this same issue

@AlexKEPHD
Copy link

+1 Seems like the issue is still around years later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants