# Invoke Code - Creating Datatable

**URL:** <https://forum.uipath.com/t/invoke-code-creating-datatable/99372>\
**Category:** Help\
**Tags:** system, activities\
**Created:** [March 4, 2019, 6:57am UTC](https://forum.uipath.com/t/invoke-code-creating-datatable/99372 "2019-03-04T06:57:54Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hermawan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hermawan/32/49264_2.png) [@hermawan](https://forum.uipath.com/u/hermawan)\
**Post date:** [March 4, 2019, 8:54am UTC](https://forum.uipath.com/t/invoke-code-creating-datatable/99372/5 "2019-03-04T08:54:06Z")

</div>

[InvodeCode.xaml](https://global.discourse-cdn.com/uipath/original/3X/d/1/d1ed1ce396941cb5c419f9df8aa9664a1aa6a6e6.xaml) (6.1 KB)

![image](https://global.discourse-cdn.com/uipath/original/3X/c/1/c1ebb9fcbda7053a76777cbb48bd3e2558defcdb.png)

![image](https://global.discourse-cdn.com/uipath/original/3X/5/c/5c0ad97aef7bff4e67b3eeb319df721650e00b8c.png)

![image](https://global.discourse-cdn.com/uipath/original/3X/b/5/b55c3ab1106ed48cdb7767fd54260175d13cdf91.png)

Invode Code great example:

> [@InvokeCode Example](https://forum.uipath.com/t/invokecode-example/9311/3):
>
> Hi, The official training materials might not be up to date yet as this activity has only just been added to the Community edition. I can give a small example right here though. Just as with “Invoke Workflow”, you can specify arguments that will be accessible inside: [arguments] But instead of a workflow filename you enter Visual Basic code you want to execute, directly into an editor window. Suppose I want my code activity to randomly shuffle its string argument. I could program this as foll…

---

_[View the full topic](https://forum.uipath.com/t/invoke-code-creating-datatable/99372)._
