Skip to main content
Solved

Handle multiple clients in Cognite Functions

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

View original

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img

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


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings