Question

Handle multiple clients in Cognite Functions

  • 14 May 2024
  • 1 reply
  • 20 views

Badge

Hi,

 

Is it possible to use multiple clients for the same Cognite Function? I know the handle function only takes one client as argument, but is it possible to initialize another client inside the function? I want my Cognite function to read from prod environment, but write to dev environment, which necessitates two clients.

 

Thanks.


1 reply

Userlevel 3
Badge

@Vetle Nevland Yes, it is possible to initialize another client inside the function.

Reply