# \#coded-workflow

**URL:** https://forum.uipath.com/tag/coded-workflow/4614.md

[Latest](https://forum.uipath.com/latest.md) · [Categories](https://forum.uipath.com/categories.md) · [Tags](https://forum.uipath.com/tags.md)

---

## [Get UiElement From Selector in Coded Workflow](https://forum.uipath.com/t/get-uielement-from-selector-in-coded-workflow/753524)

<div class="topic-metadata">

**Author:** [@Timothy\_Morris](https://forum.uipath.com/u/Timothy_Morris)\
**Replies:** 8\
**Last updated:** [September 17, 2026, 7:35am UTC](https://forum.uipath.com/t/get-uielement-from-selector-in-coded-workflow/753524 "2026-09-17T07:35:03Z")

</div>

Hi all, How can I get a UiElement from a given selector in a Coded Workflow? Essentially I am looking to reproduce the functionality of the ‘Check App State’ activity and the ‘Output element’ output. My end goal is to b…

---

## [How to make Library Activities available in coded workflows](https://forum.uipath.com/t/how-to-make-library-activities-available-in-coded-workflows/5776992)

<div class="topic-metadata">

**Author:** [@Jon\_Smith](https://forum.uipath.com/u/Jon_Smith)\
**Replies:** 2\
**Last updated:** [September 15, 2026, 5:34pm UTC](https://forum.uipath.com/t/how-to-make-library-activities-available-in-coded-workflows/5776992 "2026-09-15T17:34:57Z")

</div>

Coded workflows are really useful, and becoming even more useful with the rapid rise of coding agents, however a gap (at least in knowledge) that has existed for a few years is how to make your custom library activities …

---

## [How do you pass variables to Object Repository Screen Selector Variable from a Coded Workflow?](https://forum.uipath.com/t/how-do-you-pass-variables-to-object-repository-screen-selector-variable-from-a-coded-workflow/5771982)

<div class="topic-metadata">

**Author:** [@mla\_rpa](https://forum.uipath.com/u/mla_rpa)\
**Replies:** 7\
**Last updated:** [August 25, 2026, 8:56pm UTC](https://forum.uipath.com/t/how-do-you-pass-variables-to-object-repository-screen-selector-variable-from-a-coded-workflow/5771982 "2026-08-25T20:56:41Z")

</div>

Hello, Good Morning, Good Evening and Good night. Hope you doing well. I need some help. I got a Application and Screen instance in Object Repository that rely on a Variable called urlMainPage . Since I am working on C…

---

## [Do Coded Workflows support asynchronous methods as the 'Workflow' method?](https://forum.uipath.com/t/do-coded-workflows-support-asynchronous-methods-as-the-workflow-method/5771330)

<div class="topic-metadata">

**Author:** [@edevries](https://forum.uipath.com/u/edevries)\
**Replies:** 4\
**Last updated:** [August 23, 2026, 8:10pm UTC](https://forum.uipath.com/t/do-coded-workflows-support-asynchronous-methods-as-the-workflow-method/5771330 "2026-08-23T20:10:35Z")

</div>

I have a coded workflow that uses async/await calls. To do this properly, I need to make the method tagged \[Workflow\] asynchronous. Does UiPath and Studio support this functionality?

---

## [Custom Logs for Insights in Coded Workflows](https://forum.uipath.com/t/custom-logs-for-insights-in-coded-workflows/5760905)

<div class="topic-metadata">

**Author:** [@edevries](https://forum.uipath.com/u/edevries)\
**Replies:** 6\
**Last updated:** [July 16, 2026, 1:38pm UTC](https://forum.uipath.com/t/custom-logs-for-insights-in-coded-workflows/5760905 "2026-07-16T13:38:53Z")

</div>

Is there a way to do custom logs for UiPath Insights when in a coded workflow? The additional logs field parameter in IOutputLoggerService.Log() does not seem to do anything. Thanks, P. Griffin.

---

## [SapGui.Wrapper - strongly-typed SAP GUI scripting for Coded Workflows (feedback welcome!)](https://forum.uipath.com/t/sapgui-wrapper-strongly-typed-sap-gui-scripting-for-coded-workflows-feedback-welcome/5728237)

<div class="topic-metadata">

**Author:** [@AlexRivas](https://forum.uipath.com/u/AlexRivas)\
**Replies:** 3\
**Last updated:** [April 3, 2026, 9:40am UTC](https://forum.uipath.com/t/sapgui-wrapper-strongly-typed-sap-gui-scripting-for-coded-workflows-feedback-welcome/5728237 "2026-04-03T09:40:50Z")

</div>

Hey everyone :waving\_hand: I’ve just released SapGui.Wrapper v1.0.0, a NuGet library I’ve been building to make SAP GUI automation with Coded Workflows feel like proper C# instead of VBScript wrapped in COM. The probl…

---

## [Best Tool for Invoking Workflows in Coded Workflows](https://forum.uipath.com/t/best-tool-for-invoking-workflows-in-coded-workflows/5732986)

<div class="topic-metadata">

**Author:** [@edevries](https://forum.uipath.com/u/edevries)\
**Replies:** 2\
**Last updated:** [March 26, 2026, 3:26pm UTC](https://forum.uipath.com/t/best-tool-for-invoking-workflows-in-coded-workflows/5732986 "2026-03-26T15:26:00Z")

</div>

In coded workflows, is it better to invoke other workflows via the dynamic workflows object, or through the IWorkflowInvocationService that can be accessed via the services container? Not really sure when one is better …

---

## [Logging in a Custom Service Tutorial (Coded Workflows)](https://forum.uipath.com/t/logging-in-a-custom-service-tutorial-coded-workflows/5702440)

<div class="topic-metadata">

**Author:** [@edevries](https://forum.uipath.com/u/edevries)\
**Replies:** 2\
**Last updated:** [December 26, 2025, 2:07pm UTC](https://forum.uipath.com/t/logging-in-a-custom-service-tutorial-coded-workflows/5702440 "2025-12-26T14:07:01Z")

</div>

Hello, If you are like me, you might be using Coded Workflows because you value the automation power the platform brings, but you prefer to organize your projects in a way that is more similar to traditional application…

---

## [Getting selector from UiElement is slow](https://forum.uipath.com/t/getting-selector-from-uielement-is-slow/5682732)

<div class="topic-metadata">

**Author:** [@rickard.nordstrom](https://forum.uipath.com/u/rickard.nordstrom)\
**Replies:** 1\
**Last updated:** [November 17, 2025, 10:00am UTC](https://forum.uipath.com/t/getting-selector-from-uielement-is-slow/5682732 "2025-11-17T10:00:32Z")

</div>

Hello I have to iterate over about 2k elements and get the elemewnts selector. How ever, I find it very slow to read the selector from the element. It takes between 700-1300ms for each elements. Code below shows how I …

---

## [How to use a Variable in Screen Descriptor using Coded Workflow?](https://forum.uipath.com/t/how-to-use-a-variable-in-screen-descriptor-using-coded-workflow/775562)

<div class="topic-metadata">

**Author:** [@HuST](https://forum.uipath.com/u/HuST)\
**Replies:** 4\
**Last updated:** [September 26, 2025, 10:18pm UTC](https://forum.uipath.com/t/how-to-use-a-variable-in-screen-descriptor-using-coded-workflow/775562 "2025-09-26T22:18:42Z")

</div>

Hi UiPath Forum! I have a problem when I try to use a variable as URL of a IScreenDescriptor from the object repository. I wrote a variable in the url of the screen descriptor and the same in the Execute method of the …

---

## [レガシーからWindowsへ変換後、『コードを呼び出し』で 「Exception has been thrown by the target of an invocation.」エラーが発生する](https://forum.uipath.com/t/windows-exception-has-been-thrown-by-the-target-of-an-invocation/4378959)

<div class="topic-metadata">

**Author:** [@system](https://forum.uipath.com/u/system)\
**Replies:** 0\
**Last updated:** [August 14, 2025, 2:38am UTC](https://forum.uipath.com/t/windows-exception-has-been-thrown-by-the-target-of-an-invocation/4378959 "2025-08-14T02:38:25Z")

</div>

:white\_question\_mark: Question Studio でプロジェクトをレガシーからWindowsへ変換後、『コードを呼び出し』アクティビティにエラー発生します。 エラーメッセージ： コードを呼び出し: Exception has been thrown by the target of an invocation. HTTP リクエストを発行: Object reference not set to an …

---

## [UiPath Studio でコード化されたワークフローで .NET 型で宣言した引数を使用してプロジェクトのパブリッシュを試みると「アクティビティビルダーを作成できません。」エラーが発生する](https://forum.uipath.com/t/uipath-studio-net/2835607)

<div class="topic-metadata">

**Author:** [@system](https://forum.uipath.com/u/system)\
**Replies:** 0\
**Last updated:** [May 30, 2025, 8:05am UTC](https://forum.uipath.com/t/uipath-studio-net/2835607 "2025-05-30T08:05:13Z")

</div>

:white\_question\_mark: Question UiPath Studio でコード化されたワークフローで .NET 型で宣言した引数を使用してプロジェクトのパブリッシュを試みると「アクティビティビルダーを作成できません。」エラーが出力パネルに出力され「コンパイルに失敗、またはコンパイルがキャンセルされました。」エラーのポップアップが表示されます。 エラーメッセージは下記の通りです。 10:10:30.0001 …

---

## [UiPath Studio でコード化されたワークフローから複数の戻り値を出力する方法](https://forum.uipath.com/t/uipath-studio/2835601)

<div class="topic-metadata">

**Author:** [@system](https://forum.uipath.com/u/system)\
**Replies:** 0\
**Last updated:** [May 30, 2025, 7:58am UTC](https://forum.uipath.com/t/uipath-studio/2835601 "2025-05-30T07:58:16Z")

</div>

:white\_question\_mark: Question UiPath Studio でコード化されたワークフローから複数の戻り値を出力する方法を教えてください。 例えば、下記のようなコード化ワークフローを作成しており、整数型変数 res と文字列型配列 msg を出力することを想定しています。 using ... namespace SampleCodedWorkflow { public class SampleS…

---

## [UiPath Studio でコード化されたワークフローをデバッグ実行すると「error CS1503: 引数 : は '\<データ型\>' から '\<データ型配列\>' へ変換することはできません」エラーが発生する](https://forum.uipath.com/t/uipath-studio-error-cs1503/2835557)

<div class="topic-metadata">

**Author:** [@system](https://forum.uipath.com/u/system)\
**Replies:** 0\
**Last updated:** [May 30, 2025, 7:30am UTC](https://forum.uipath.com/t/uipath-studio-error-cs1503/2835557 "2025-05-30T07:30:40Z")

</div>

:white\_question\_mark: Question UiPath Studio でコード化されたワークフローをデバッグ実行すると「error CS1503: 引数 : は ‘\<データ型\>’ から ‘\<データ型配列\>’ へ変換することはできません」が ログファイル UiPath.Studio.log に出力されます。 下記エラー例では byte と byte［］ですが string と string［］の場合もあります。 1…

---

## [Visual C++ で開発した DLL ファイルを UiPath Studio から利用する方法](https://forum.uipath.com/t/visual-c-dll-uipath-studio/2835547)

<div class="topic-metadata">

**Author:** [@system](https://forum.uipath.com/u/system)\
**Replies:** 0\
**Last updated:** [May 30, 2025, 7:24am UTC](https://forum.uipath.com/t/visual-c-dll-uipath-studio/2835547 "2025-05-30T07:24:50Z")

</div>

:white\_question\_mark: Question Visual C++ で開発した DLL ファイルを UiPath Studio から利用する方法を教えてください。 :light\_bulb: Answer 解決策 Visual C++ で開発した DLL ファイルは「コード化されたワークフロー」でインポートして DLL ファイル内で定義した関数を利用することができます。なお、下記ガイドに記載の通り「コード化されたワークフ…

---

## ["Unexpected error has occurred during the library compilation process: Value cannot be null. (Parameter 'type')" - error when trying to compile](https://forum.uipath.com/t/unexpected-error-has-occurred-during-the-library-compilation-process-value-cannot-be-null-parameter-type-error-when-trying-to-compile/799368)

<div class="topic-metadata">

**Author:** [@jacob.ryan](https://forum.uipath.com/u/jacob.ryan)\
**Replies:** 2\
**Last updated:** [April 9, 2025, 1:56pm UTC](https://forum.uipath.com/t/unexpected-error-has-occurred-during-the-library-compilation-process-value-cannot-be-null-parameter-type-error-when-trying-to-compile/799368 "2025-04-09T13:56:23Z")

</div>

Im getting the above error when trying to compile a project, has anyone experienced something similar

---

## [Feature request: Coded Workflow ExecuteAsync](https://forum.uipath.com/t/feature-request-coded-workflow-executeasync/2743079)

<div class="topic-metadata">

**Author:** [@andrzej.kniola](https://forum.uipath.com/u/andrzej.kniola)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 6:52pm UTC](https://forum.uipath.com/t/feature-request-coded-workflow-executeasync/2743079 "2025-03-03T18:52:09Z")

</div>

Good day, It would be great if CodedWorkflows would have an Async variant. Right now it’s pretty awkward to invoke Async code in UiPath (doable in a couple ways, but a bit cumbersome with all of them). This would be v…

---

## [コード化されたワークフローでデバッグ実行すると0xC0000354でエラー終了する](https://forum.uipath.com/t/0xc0000354/779317)

<div class="topic-metadata">

**Author:** [@K-T](https://forum.uipath.com/u/K-T)\
**Replies:** 1\
**Last updated:** [November 17, 2024, 3:00pm UTC](https://forum.uipath.com/t/0xc0000354/779317 "2024-11-17T15:00:34Z")

</div>

こんにちは。 私はUipath Studio 2024.10.6でコード化されたワークフローを使おうとしているのですが、デバッグを行うと「System.Exception: 予期しない終了コードでジョブが停止されました: 0xC0000354」と表示されてエラー終了してしまいます。対処法などご存じの方いらっしゃいますか？ デバッグではなく通常の実行だと正常に処理されます。再インストールや再起動も行いましたが改善されませんでした…

---

## [uiAutomation.Open error 'Object reference not set to an instance of an object' in coded workflow](https://forum.uipath.com/t/uiautomation-open-error-object-reference-not-set-to-an-instance-of-an-object-in-coded-workflow/776339)

<div class="topic-metadata">

**Author:** [@adpe88](https://forum.uipath.com/u/adpe88)\
**Replies:** 2\
**Last updated:** [October 29, 2024, 12:58pm UTC](https://forum.uipath.com/t/uiautomation-open-error-object-reference-not-set-to-an-instance-of-an-object-in-coded-workflow/776339 "2024-10-29T12:58:51Z")

</div>

Hi, I tried to run the code from the link below: Unfortunately, when I try to execute this line: var AcmeLoginScreen = uiAutomation.Open(AcmeApp.LoginScreen); I get the error: System.NullREferenceException: ‘Object …

---

## [Invoking Low-Coded Activities in Coded Workflows](https://forum.uipath.com/t/invoking-low-coded-activities-in-coded-workflows/771301)

<div class="topic-metadata">

**Author:** [@edevries](https://forum.uipath.com/u/edevries)\
**Replies:** 2\
**Last updated:** [October 4, 2024, 6:41am UTC](https://forum.uipath.com/t/invoking-low-coded-activities-in-coded-workflows/771301 "2024-10-04T06:41:50Z")

</div>

Hello, Has anyone discovered how to leverage UiPath low-code activities best in coded workflows? I know that within a coded workflow, you can invoke a low-code workflow. However, there does not seem to be a way to invok…

---

## [Errors when invoking coded workflows in libraries](https://forum.uipath.com/t/errors-when-invoking-coded-workflows-in-libraries/767897)

<div class="topic-metadata">

**Author:** [@Timothy\_Morris](https://forum.uipath.com/u/Timothy_Morris)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 5:45am UTC](https://forum.uipath.com/t/errors-when-invoking-coded-workflows-in-libraries/767897 "2024-09-19T05:45:31Z")

</div>

Hi all, Example.zip (190.4 KB) Can someone please help me understand why I am getting this NullReferenceException when invoking this coded workflow (that is in a published library) from a coded workflow in a process? I…

---

## [Bug - Coded Workflow template generate wrong types when returning an array](https://forum.uipath.com/t/bug-coded-workflow-template-generate-wrong-types-when-returning-an-array/766041)

<div class="topic-metadata">

**Author:** [@stencil](https://forum.uipath.com/u/stencil)\
**Replies:** 1\
**Last updated:** [September 17, 2024, 4:48pm UTC](https://forum.uipath.com/t/bug-coded-workflow-template-generate-wrong-types-when-returning-an-array/766041 "2024-09-17T16:48:10Z")

</div>

I encountered a reproducible bug while developing a small C# process with coded workflows. Apparently, the type detection of the return value of a coded workflow is not working properly. When I want to return a string a…

---

## [How to register an instance for dependency injection?](https://forum.uipath.com/t/how-to-register-an-instance-for-dependency-injection/760923)

<div class="topic-metadata">

**Author:** [@Timothy\_Morris](https://forum.uipath.com/u/Timothy_Morris)\
**Replies:** 1\
**Last updated:** [September 9, 2024, 8:39am UTC](https://forum.uipath.com/t/how-to-register-an-instance-for-dependency-injection/760923 "2024-09-09T08:39:50Z")

</div>

Hi all, I am trying to register a service for dependency injection in my coded automation using the instructions described here: Studio - Registering custom services (uipath.com) Does anyone know why this code is not …

---

## [CodedWorkflow throwing CS0246 and SYSLIB0046 when attempting to publish](https://forum.uipath.com/t/codedworkflow-throwing-cs0246-and-syslib0046-when-attempting-to-publish/754652)

<div class="topic-metadata">

**Author:** [@emilia.williams](https://forum.uipath.com/u/emilia.williams)\
**Replies:** 4\
**Last updated:** [July 26, 2024, 2:39pm UTC](https://forum.uipath.com/t/codedworkflow-throwing-cs0246-and-syslib0046-when-attempting-to-publish/754652 "2024-07-26T14:39:14Z")

</div>

I updated to Studio 24.10.1 recently and have since been unable to package automations. Anytime I add a coded workflow to a project, publishing will fail with the following messages: Unexpected error has occurred during…

---

## [Call a coded workflow in a library from another coded workflow in another library](https://forum.uipath.com/t/call-a-coded-workflow-in-a-library-from-another-coded-workflow-in-another-library/736325)

<div class="topic-metadata">

**Author:** [@pekt](https://forum.uipath.com/u/pekt)\
**Replies:** 3\
**Last updated:** [May 17, 2024, 7:15am UTC](https://forum.uipath.com/t/call-a-coded-workflow-in-a-library-from-another-coded-workflow-in-another-library/736325 "2024-05-17T07:15:57Z")

</div>

Hi. I created a new library (c#) and added a coded workflow. In that coded workflow I call system.GetAsset(assetName). A method from “UiPath.CodedWorkflow”. If I use this coded workflow from a normal workflow within …

---

## [Write DataTable to Excel file in Coded Workflow (WriteRange)](https://forum.uipath.com/t/write-datatable-to-excel-file-in-coded-workflow-writerange/737260)

<div class="topic-metadata">

**Author:** [@mschlosser](https://forum.uipath.com/u/mschlosser)\
**Replies:** 15\
**Last updated:** [May 7, 2024, 1:12pm UTC](https://forum.uipath.com/t/write-datatable-to-excel-file-in-coded-workflow-writerange/737260 "2024-05-07T13:12:59Z")

</div>

My current approach to write a DataTable into an Excel file looks like this: private void TestFunction(DataTable dataTable) { var tempFilePath = CreateTempFilePath("test.xlsx"); Log("Creating Excel f…

---

## [SURVEY - CODED AUTOMATION](https://forum.uipath.com/t/survey-coded-automation/726938)

<div class="topic-metadata">

**Author:** [@ThomasStocker](https://forum.uipath.com/u/ThomasStocker)\
**Replies:** 2\
**Last updated:** [April 16, 2024, 8:22am UTC](https://forum.uipath.com/t/survey-coded-automation/726938 "2024-04-16T08:22:19Z")

</div>

Hello esteemed colleagues! Feedback is fuel for our Product and Engineering and we heavily rely on your input to build great products. This is why we kindly ask you for 5 minutes of your busy schedule, to answer our…

---

## [How to use Computer Vision in Coded Workflow?](https://forum.uipath.com/t/how-to-use-computer-vision-in-coded-workflow/727124)

<div class="topic-metadata">

**Author:** [@rpa\_dev\_br](https://forum.uipath.com/u/rpa_dev_br)\
**Replies:** 3\
**Last updated:** [April 3, 2024, 2:24am UTC](https://forum.uipath.com/t/how-to-use-computer-vision-in-coded-workflow/727124 "2024-04-03T02:24:31Z")

</div>

I would like to use Computer Vision in C# within a coded workflow. How to do this? Is there any specific documentation for Computer Vision in C#? Thanks!

---

## [Coded workflow unable to use C# generics](https://forum.uipath.com/t/coded-workflow-unable-to-use-c-generics/728853)

<div class="topic-metadata">

**Author:** [@Henrik\_Sondergaard](https://forum.uipath.com/u/Henrik_Sondergaard)\
**Replies:** 5\
**Last updated:** [April 2, 2024, 2:03am UTC](https://forum.uipath.com/t/coded-workflow-unable-to-use-c-generics/728853 "2024-04-02T02:03:32Z")

</div>

I’m working on making a Coded\_Workflow for my library, that should turn a QueueItem into a C# model. For this I want to use basic generics in C#. public (T model, Exception ex) Execute\<T\>(QueueItem queueItem, T model) w…

---

## [How to Read Excel Data in Coded Workflow using UiPath In-built Excel Activities?](https://forum.uipath.com/t/how-to-read-excel-data-in-coded-workflow-using-uipath-in-built-excel-activities/717588)

<div class="topic-metadata">

**Author:** [@urvesh.mistry](https://forum.uipath.com/u/urvesh.mistry)\
**Replies:** 9\
**Last updated:** [February 7, 2024, 7:06am UTC](https://forum.uipath.com/t/how-to-read-excel-data-in-coded-workflow-using-uipath-in-built-excel-activities/717588 "2024-02-07T07:06:04Z")

</div>

What is the procedure for integrating and utilizing the in-built Excel activities of UiPath within a coded workflow? The question seeks detailed guidance on the step-by-step process of incorporating and utilizing the pr…

[Next page](https://forum.uipath.com/tag/coded-workflow/4614.md?match_all_tags=true&page=1&tags%5B%5D=coded-workflow)
