function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pjaenick.ax736pjaenick.ax736 

Possible to invoke a conga report via scheduled apex?

Ok - I have a working Javascript button that executes a Conga Report - works great.

I'd like to stop pushing the button, and instead schedule the report via Scheduled Apex...

Here's my VF page and Apex class:
 
<apex:page controller="calljavascript_cls" >

    <script>
    function func() {
        window.open('https://composer.congamerge.com?sessionId={$API.Session_ID}&serverUrl={$API.Partner_Server_URL_370}.........);
    }
    </script>

    <apex:outputText value="{!callfunc}" escape="false"></apex:outputText>

</apex:page>


global class calljavascript_cls implements Schedulable {

    global static string callfunc{get;set;}

    global void execute(SchedulableContext sc) {
        calljavascript_cls();
    }

    @future(callout=true)
    public static void calljavascript_cls() {
        callfunc='<script> func(); </script>';
    }
}
Debug logs show no evidence that the VF javascript function is being invoked (?) which is making my troubleshooting efforts difficult.

Thanks for any assist / guidance,
Pete
 
Raj VakatiRaj Vakati
Hello Pete , 

I can suggest to reach out to conga  support team .. they migt help you more quickly and let me know what is the out come