SalesforceApps icon indicating copy to clipboard operation
SalesforceApps copied to clipboard

Not receiving data updates

Open moblizeit opened this issue 5 years ago • 3 comments

i kind of modified the code to just have specific to what i need and it looks like below. My handshake is successful but still i do not see any data change events when i update the stage or any other opportunity attribute which i have shuttled to the right in the salesforce setup. Any advise what else to check or what could go wrong?

export const helloWorld = functions.https.onRequest(async(request, response) => { functions.logger.info("Hello logs!", {structuredData: true});

const data = {
    "url": "https://xxx.salesforce.com",
    "accessToken": "ksksksks"

}

await cometd_setup(data)
functions.logger.log("cometd_setup_done")

await cometd.handshake(function (handshake:any) {
if (handshake.successful) {
   functions.logger.log("successful opty sending data")
   cometd.subscribe('/data/OpportunityChangeEvents', cometd_processdata)
} else {
    logger.info('Handshake failed', handshake);
}

})

response.send("Hello from Firebase!"); });

moblizeit avatar Oct 05 '20 16:10 moblizeit

any ideas on this one please?

moblizeit avatar Oct 13 '20 05:10 moblizeit

Sorry, I'm afk last week and this week and only have my phone. I'll try to look at this early next week to see what I can figure out. Honestly, this code was a POC when CDC initially came out so things may have changed.

pcon avatar Oct 13 '20 21:10 pcon

did you get a chance to take a look?

moblizeit avatar Oct 26 '20 03:10 moblizeit