Skip to main content
Answer

Handle multiple clients in Cognite Functions

  • May 14, 2024
  • 1 reply
  • 36 views

Forum|alt.badge.img

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.

Best answer by Mithila Jayalath

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

1 reply

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

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