Trigger Condition to start a concatenate workflow - sharepoint-online

I am trying to concatenate two column and updating the new column with the concatenated column with power automate. But the flow is giving infinite loop warning as I am trying to update the item. I tried to add trigger condition on create an item when created or updated. The condition is like when the fullname value does not contain firstname, lastname value or the fullname is empty then it will trigger. But the trigger is not working.
I am using this trigger condition:
#not(contains(triggerBody()?['Fullname']?['value'],triggerOutputs()?['Name']?['value'] ))
#and(not(#contains(triggerBody()?['Fullname']?['value'],triggerOutputs()?['Lastname']?['value'] )))
Flow SS:

Related

Excel Auto Attendance sheet

im trying to make an automatic attendance sheet here are the details:
-Data will be imported in the excel sheet (left side)
-I want to automatically mark "p" or "a" a specific cell based on the data imported
since you're trying to check several conditions at the same time (date, time, id) in your source data I'd recommend normalizing the time to the start of the hour,
START OF HOUR FUNCTION
then adding a unique value for each you could concatenate "DATE", "TIME", "ID" with some type of separator for example "-"
CONCAT FUNCTION
and then you could try with using a lookup function to look for that specific value,
LOOKUP FUNCTION
with an IF function so that if the value is returned you print p or if false print a.
IF FUNCTION

How to create dropdown from existing data?

One of my worksheets (Sites) contains a list of sites.
Column B contains the sites unique ID, Column C contains the site type.
This is an example, the real data will have many more entries.
Eg:
Column B Column C
1234-56789 NW175
5468-58754 SW124
8787-97979 PO962
9247-75204 NW116
1458-56155 NW120
7486-89251 KA960
975-983044 PO630
I'd like to be able to present a dropdown list in cell A5 on worksheet 1 (Home) containing only entries starting with NW.
I'd like the list to appear as:
NW175 - 1234-56789
NW116 - 9247-75204
NW120 - 1458-56155
Is there any way to do this without using macros?
If you are using Excel 365 then you can use the new FILTER-Function.
Also I would propose that you use a table to define your site-configuration.
There you add a new column, e.g. Full name and apply the formula to concatenate both values.
Then the new FILTER-function comes into play - see my screenshot - you have to use the formula =FILTER(tblSiteInfo[Full name];LEFT(tblSiteInfo[Site Type];2) = "NW") --> the filtered result spills down as a new list
Next step: define a name for the cell (and only the cell with the formula) and apply a # at the end of the name-address.
You can then use this name for your validation list.
Benefit of this solution: if you add more sites to the configuration table the validation list will update automatically.
To concat strings with cell variables use & operator. According to your example paste this =C2&" - "&B2 to column D for example D2 and pull down to apply rest of rows below.
For creating a dropdown menu from concatenated data follow these steps.
1 - Select the cell where you want to create dropdown list
2 - Go to Data tab
3 - Click to Data Validation
4 - Select List from Allow dropdown
5 - Click Source and mark column D for example =$D$2:$D$8
6 - Click Ok

Rename Collection Fields In BluePrism

I have an excel worksheet where I am using get Worksheet Range as a Collection. However, the excel file does not have column names. After reading the sheet I want to change the collection field names.
I have tried using Rename Collection Fields but this doesn't seem to work?
If you leave a blank row at the top of your range BP will assign column names (Column1, Column2, etc...) from left to right. With this you could do the following after you get your output collection out of "Get Range as Collection" stage:
1)
- Create 1 Data Item for each column name you wish to insert into the collection.
- Select the appropriate Data Type and enter the desired column name into the Value field of each Data Item.
2)
- Insert a new blank Collection item and name it something like "Field Names".
- In this Collection, under the Fields tab add 1 field for each column name.
- Then name each field from top to bottom as Column1, Column2,etc..(no spaces) and also select the appropriate Data Type for each.
- Finally, under the Initial Values tab enter a new black row using the Add Row button.
3)
- Now insert a MultiCalc stage after your "Get Range as Collection" stage.
- Using the Add button, create as many lines as Data Items you created earlier in step1.
- In the Expression field, drag and drop each Data Item you created earlier.
- In the Store In field, point to the collection you created in step2 and the "raw" name of the column as given by BP, for example FieldNames.Column1, FieldNames.Column2, etc...
4)
- Insert a new Action stage after the MultiCalc and name it something like "Rename Fields".
- As the Business Object, select the "Utility - Collection Manipulation".
- As the Action, select "Rename Collection Fields".
- As the Main Collection, drag and drop your original output collection that you obtained out of the "Get Range as Collection" stage.
- As the New Headers, drag and drop the "Field Names" collection you created in step2.
- Finally under the Output Tab, create (or drag in) the output collection and name it something like "Amended Collection".
If you use MSExcelVBO/WriteCollection to write the "Amended Collection" into Excel, you will see that your data now has the column names of each data item. For example here is a list without headers and I want the headers to be Names and Percentage (see data items in blue below):
Here is the process I've explained:
The Get Range As Collection stage (Inputs tab):
The Get Range As Collection stage (Outputs tab): The Field Names collection (Fields): The Field Names collection (Initial Values):
The MultiCalc stage: The Rename Collection Fields stage (Inputs): The Rename Collection Fields stage (Outputs): And finally the Write Collection stage: And the result:

Excel filter Multiple Value in One Cell

I am looking for help on filtering multiple values in one cell delimited by a comma.
For example I have a spreadsheet with the following data:
Column A (Risk) Column B (Risk Mitigation)
Risk A Requirement1, Requirement2
Risk B Requirement2, Requirement6, Requirement7
Risk C Requirement1, Requirement3, Requirement9
When I filter on the 'Requirement Mitigation' Column I would like to see check boxes for the following:
Requirement1
Requirement2
Requirement3
Requirement4
Requirement5
...
Requirement9
So for my example when I only check the Requirement 1 filter box, only 'Risk A' and 'Risk C' rows would be displayed
Currently when I filter it does by the unique cell value, which gives me
Requirement1, Requirement2
Requirement2, Requirement6, Requirement7
Requirement1, Requirement3, Requirement9
Please note that above is just an example and I have thousand of individual requirements, so it would not be as simple as having one column per requirement.
I open to any suggestions including creating vbscripts.
Any help would be greatly appreciated.
This will be tricky.
First you'll need to create a form that will contain a list box and populate that list box with the Requirements you have in their correct syntax.
Then you'll need to create a loop that will go through every cell in a column and save each of them to a string, you could make a one dimensional string array to save them all in that as well.
Then you'll need a loop that will go through each string and use the split function to seperate the strings with a delimeter, you'll need to set your delimiter to ", " to ensure it seperates the strings at the commas.
Then you'll need a loop that will run after you've made your selection from the listbox in your form. this loop will go through every string in your 2D array and check if it contains any of the requirements in your listbox. If it is not, run the code: Range("B" & x).EntireRow.Hidden = True where x is the row, you can use one of the variables in your loop for this.
If you need more specific information that this I may need to see what you've already done, it is possible as well to use this method to automatically populate the list box in your form.

Get selected multi value data into string

I have a field in a sharepoint list which is a look-up from another list. It is displayed on the infopath form as a multi value checkbox.
I am trying to work out a way to perhaps concat each of the selected items into one string.
For example; the Multi-Value checkbox contains
(! = checked, * = unchecked)
! Example A
* Example B
! Example C
I would like a new field called MyString to equal "Example A, Example C"
I have tried to do a rule with a button press to query the secondary datasource for the external list, and filter it on the Multi-Value checkbox value. This works brilliantly for attaining the second column (Dollar Amount) by doing a sum(secondary.amount) with the filter - however I am still unable to work out how to join the selected strings.
Any hints would be most appreciated!
You could have a rule on each of those checkboxes that runs when the checkbox is changed. Each rule would look up the other checkbox values, concatenate them how you need it, and set the value of the final MyString textbox field to that string.

Resources