How to define the sequence of arguments in Library

Hello,

I created a UiPath Library for data comparison. The library contains several input DataTable arguments as well as one output DataTable argument.

However, when I use this library in a workflow, I find that the parameter order in the activity panel appears quite random, which makes it less user-friendly.

Is there any way to customize or control the display order of the arguments when the library is consumed?

Thank you.

@Yao_Qi_SZ

I don’t think we can control the display order but you can group the input and output like explained below

  1. Right click on your activity and select Activity Layout

  1. Click on New Category

  1. Create a category for Input and another for output and then drag and drop your arguments according to your choice.

This should solve your confustion problem.

Hi @Yao_Qi_SZ

Yes, you can control the order in which arguments are displayed when a UiPath Library activity is consumed.

In the Library project, open the workflow/activity and check the Arguments panel. The order of arguments exposed by the library can be influenced by the order in which they are defined/exposed.

For better usability, I’d recommend:

  • Keep Input arguments together and arrange them in a logical order.

  • Put Output arguments after the inputs.

  • Use clear and consistent argument names.

  • After making changes, republish the library and update the library package in the consuming project.

If the order still appears inconsistent after publishing, check the generated activity metadata/package version, as Studio may be using a previously cached version of the library.

Hope this helps! :+1: