Customize the response of external event callback

Hi,

I have just wrote code for to get data from local db in the ExternalEvent.

The db data need to send back to where the request is called from.

Sample code here:

$db.get('key')
.then((data)=>{
  renderData(null, data)
})

Expected response is:

{
 data: {
    requestId:***********,
    response:{
        id: 34
             }
        }
 }

But we got like:

    {
     success: true
    }

Thank you.

@Karuppu_Samy
Good Day!

I think we can’t use renderData on the ExternalEvents
Hope it helps

Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.