Solved

Handle multiple clients in Cognite Functions

  • 14 May 2024
  • 1 reply
  • 24 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.

icon

Best answer by Mithila Jayalath External 15 May 2024, 07:09

View original

1 reply

Userlevel 3
Badge

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

Reply