Solved

Can we pass datatable as input to a C# DLL as a parameter ?

  • 14 January 2023
  • 4 replies
  • 206 views

Badge +1

Hi Team,

 

I wanted to pass DataTable as input parameter to C# DLL. I am unable to find Datatable parameter in the parameter type. Is it possible to pass Datatable as an input?

 

Is there a workaround to pass a datatable as parameter?

 

DLL Parameter

 

icon

Best answer by rbkadiyam 14 January 2023, 19:29

View original

4 replies

Userlevel 5
Badge +10

@anandc  check this article if it can help - https://www.c-sharpcorner.com/UploadFile/87b416/passing-datatable-to-storeprocedure-as-parameter-in-C-Sharp/

Badge +1

Thanks for sharing. This article mentions passing a list and then converting the list to Datatable. Can we directly pass datatable variable?

Userlevel 1
Badge +3

Hi @anandc ,

when i remember correct this is not possible just List and Dictionary.

Badge +2

Hi, 

It is supporting this data type only.
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/cloud-run-dll.html

 

Reply