how to add a value in collection variable in For Each loop using UiPath without "Add to collection" Activity - uipath

How to add a value in the collection variable in For Each loop using UiPath without "Add to collection" Activity use Query

Related

powerautomate - check empty field condition

I am doing approval flow with powerautomate.
some of my approval processes don't need 1st level (manager) approval.
so I want to do it by not filling in the manager name when I add new item.
-if the manager name is empty field found in Sharepoint list, > update the item with "manager null" in approval history column.
the following screenshot is my flow. but it didn't not update the item if the manager column is empty.
only working if the manager file has value, and it update the item.
how can I achieve the empty field check.?
I assume your Manager field allows multiple values and is of type person or group. This is because I see you have an apply to each loop.
I would remove the apply to each and simply check the length of the Manager field itself, not one of its properties like displayName,etc (that will add the loop).
Below is an example.
In the condition I used this expression. Add that via the expression editor:
length(triggerOutputs()?['body/Manager'])

Is there a way to activate the correct trigger from a user query stored as a string in a bot variable?

I am trying to make a bot using the Bot Framework Composer that can store user's favorite queries in an array and run them in kind of a speed dial format.
For example, if a person stores "Tell me the weather" on index 3 of the list, then typing "run fav 3" should be same as typing the earlier.
I am able to get access to the array but how can I activate the correct trigger from the query stored in the array?

HOW TO INSERT RECORD IN DATA BLOCK ON ORACLE FORMS

I have oracle form which contains data block B_ITEM which refers database table master_item. The User is entering two items in one bill manually in data block and based on certain conditions I need to add freight item in same block B_ITEM automatically. could you please guide how to insert data in data block. (Note:I don't want to insert directly in table which it refers)
Step-1 Created a canvas on date block on B_ITEM where user can give provide input. Block
contains field item from master_item table.
Step-2 Lets Say, User entered two items on canvas which refers B_ITEM and click on ok button.
Step-3 So along with two items, one more item should get inserted in block B_ITEM and it should display on canvas on 3rd line.
In the above image, I have shown example of single item, so once user clicks on OK button 2nd item should get added based on setup table.
MASTER_FREIGHT_LINK
ITEM FREIGHT_ITEM
101396306 101396307
So, In canvas freight item should added on second row as soon as user click on OK button by entering ITEM-101396306.
I don't quite understand what you have, so - let me think aloud.
there's a table in the database, called MASTER_ITEM
you created a form whose block B_ITEM is based on the MASTER_ITEM table
data block contains some items which are, I presume, database items (that belong to the MASTER_ITEM table)
you enter some data into those items
based on their values (i.e. a certain condition), you'd want to populate FREIGHT_ITEM which resides in the same block, but is not a database item. Is that correct?
If that's so,
create the FREIGHT_ITEM (there are several ways to do that; a simple one is to use the vertical toolbar's + button; or, copy/paste one of existing items and modify its properties)
create WHEN-VALIDATE-ITEM trigger on items that should decide which value should be put into the FREIGHT_ITEM. Put the condition you mentioned into the trigger code and populate FREIGHT_ITEM's value, e.g.
if :b_item.item1 > 100 and
:b_item.item2 = 'A'
then
:b_item.freight_item := 42;
end if;
Now, as you said that you don't want to store that value into the database directly (which means that it is not a database item), you'll have to do it manually, creating additional ON-INSERT and/or PRE-INSERT and/or PRE-UPDATE trigger, which will do that as
update master_item i set
i.freight_item = :b_item.freight_item
where i.some_id = :b_item.some_id;
ON-INSERT trigger can be used to override oracle forms insert mechanism. Write in the on-insert trigger the insert statements necessary, which can insert data on any table.

In VSTS, how to query for PBI that has no uncompleted child tasks of a particular activity type?

We're using hosted Visual Studio Team Services to track our stories and tasks. We'd like our testers to be able to query for Product Backlog Items in the current iteration that have no uncompleted child tasks of the development activity type. I'm having trouble putting such a query together, any suggestions?
Use a "Work item an direct link" type query and set the Filter option to "Return items that do not match links" and the link type to "Child".
Filter the Child type further to include any combination of fields you don't want to have. You can use groups and and+or constructs to limit by multiple exclusive conditions.

Servicenow - Service Catalog Reference Field - Insert different column than the display value

Let me describe my problem:
I have a table for all my IT-Services. I reference to this table more than once, for different purposes. Most of the time I need to reference to the name of the service. That's why I keep the name as displayed value.
One Column of that table is a service_id (custom field) which is for example "Service_004". Now in a catalog request Item the User has to fill in the service_id in a reference field.
But since I have the name as displayed value, and I need it in other forms, I am unable to reference to the service_id.
Using the variable attributes field I managed to let the service be found using the autocomplete function. But in the reference field I still get the servicename. I know that I can change the display value in the dictionary, but this breaks other functions. So what I need is to change the display value just for one reference field.
Also I tried to create a new table called IT-Services2 with reference to my table IT-Services. Then I switched the display to true in the new table for my service_id, but this will even change it in the parent table.
Perhaps an onChange client script utilizing g_form.setLabelOf() ?
http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#setLabelOf
Maybe I'm not fully understanding your question...
I ran into this issue before, what you can do is create select box variable and use an on load client script to populate the list with the service_id(s) from the table you are referencing.
I would write a script include to pull the data from the table and call it from the client script via GlideAjax.

Resources