I am trying to build a coded workflow that retrieves data from Data Service, however I don’t seem to be able to quite understand how.
I am able to import UiPath.DataService
I can create an instance of my entity on the coded workflow
but
I can’t import DataService.Client nor DataService.Definition
is that even possible from a coded workflow? implementation insights are very welcome.
C# is not my native language, so any Ideas of advanced concepts I need to research are also welcome.
I initially thought on an implementation like this but the compiler says there is no implicit conversion from my entity type to DataService.Definition.IEntity
however the compiler also doesn’t accept if I try to invoke using DataService.Definition
var orders = new
UiPath.DataService.Activities.QueryEntityRecords<MyEntity>()
.Where(e=> e.OrderId == InputValue).ToList();
A working snipped would be fabulous, you will get my eternal thanks!
Also please note:
I don’t mean disrespect by any means, but I am not looking for alternatives nor low-code workarounds since I am not trying to resolve an automation use case, instead I am trying to create a customized library based on our specific infrastructure requirements.