I have two lists in sharepoint. List A (Template) and B(population). List A contains column "Employee Login ID" and List B contains "Employee_PrimaryLoginID".
I want to create a vlookup, So whenever a new record in List A gets created, a column named "Submitted" will be edited in List B.
I want to lookup on "Employee Login ID" and ""Employee_PrimaryLoginID" , as "Employee_PrimaryLoginID" in List B is the full set, and when a new record is created(in list A) I want to be able to view that is have been created.
Hopefully this makes sense. Here is what I have tried using Flow:
According to my understanding:
ListA contains column "Employee Login ID"
ListB contains "Employee_PrimaryLoginID" and "Submitted". And ListB has all employees’ login ID, in other words "Employee_PrimaryLoginID" in ListB is the full set.
When ListA creates a new item, if "Employee Login ID" is equal to "Employee_PrimaryLoginID", then update the corresponding item in ListB and set the "Submitted" value to the value of "Employee Login ID".
If yes, please following steps:
1.Set "Employee Login ID" in ListA is unique value and required column
2.Set "Employee_PrimaryLoginID" in ListB is unique value and required column
3.Create Microsoft Flow
4.Save and Test flow
5.When you creating new item, the ListB will happen as shown below:
Related
I would like to concatenate 2 columns in one column on a sharepoint list, but this is the TITLE column which is a single text column.
How can i do that ?
In fact i would like to concatenate a column ID (The ID column) and a column CODE POSTAL OF A CITY ( A calculated column) in an only column which is the column TITLE ( Single line of text Column) of my Sharepoint's list.
I have some ideas for formules and i have tried it :
=CONCATENER([ID];"-";[Code INSEE de la commune])
=[ID]&"-"&[Code INSEE de la commune]
=CONCATENATE([ID],"-",[Code INSEE de la commune])
=CONCATENATE([ID];"-";[Code INSEE de la commune])
But it doesn't work...
Thanks a lot if you can help me !
A screenshoot of my sharepoint list
using SharePoint's auto generated ID in formula can be unreliable. To achieve what you want, you can create a very simple SharePoint workflow that runs upon Item Creation. What workflow will do is to simply take the ID and Postal Code from current item, compose the require string and update desired column of current item.
Example Flow snapshot:
Updated Item:
I am trying to produce a running count of salesid's for each distinct customer id.
I have tried this formula:
=RunningCount([Order ID])ForAll([Query 1].[Brand Account ID])
And unfortunately it yields this result:
We can see that where 'Count_of_Salesorder' == 12, it should have reset to 1 because the customer id has changed from B000115545 to B000159009
How can I achieve the running count of 'Order ID' for each distinct customer id? (Customer id is the field containing values that begin with 'B000')
You need to specify that you want the count to reset for each value of Brand Account ID.
=RunningCount([Order ID]; ([Brand Account ID]))
If you navigate to the RunningCount function with the Variable Editor and click on the "More on this function" link you will see its documentation.
Good afternoon,
I am creating an app using sharepoint and powerapps, on powerapps I have a form that feeds from a sharepoint list. Now my problem is the following, when I create a new form I would like to submit from another sharepoint because it is going to be easier for me to create reports.
If I understood you correctly, you have a Form tied to a Sharepoint List and you want to copy its contents to another Sharepoint List with the same column structure. Is that correct?
If that is so, this is how you do it:
1) Add both SharePoint Lists (List1 and List2) as DataSources to your app
2) Set your form's Data source to List1
3) Select the fields you want to edit
4) Add a button to your form. Set the OnSelect value of the button to this:
Patch( 'List2', Defaults( 'List2' ), { Column1: val1, Column2: val2, etc.. } )
where val1, val2 etc.. are values you entered into your controls
Ex: = txtFirstName.Text, ddlStartDate.SelectedDate etc..
NOTE: Your column names have to match the exact spelling of the column names on List 2. If you have any multi word column names, put them in single quotes. Ex: 'First Name'
See: https://learn.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-patch
and https://learn.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-defaults
I have 3 free-text custom fields on inventory item record. they contain different information based on location so my fields names are "XXXX Location1", "XXXX Location2" and "XXXX Location3". Across all transactions in the system we need to populate the information in a custom column field of these 3 fields based on the main location we choose on that transaction.
For example if on an Invoice the Main location is Location1 then our line custom column field should show information from "XXXX Location1" when user choose that item on the line; if Main location is Location2 on that Invoice then the line custom column field should show information from "XXXX Location2" when select that item on the line.
I understand this needs to be done thru scripts but i don't know how to write the script, could someone help?
Appreciate!!!
You don't need a script for that.
On the colmn field, set the field to be a formula.
In the formula, write the followin statement(change to real location names and real item custom field ids):
Case {location}
When "location1 name" then {item.custitem... }
When "location2 name" then {item.custitem.. }
When "location3 name" then {item.custitem...}
End
I have two lists(Invoice & Client) which i had created dynamically through code and i want to create lookup field programmatically for relationship between this two list.
In Invoice List i have following columns:
1.ID
2.InvoiceNo
3.ClientId - this column i need to create as lookup
4.ClientId:ClientName - this column is used to get ClientName from Client List when i enter ID in ClientId Column
5.etc
In Client List i have following columns:
1.ID
2.ClientName
3.Address
4.etc
So far i'm able to create lookfield that is ClientId in invoice list 3rd column but how can i create programmatically 4th column has additional column.
When we create lookup column using sharepoint administration there is an option called "Add a column to show each of these additional fields" this i want to create programmatically
My Code
List refList= webobj.Lists.GetByTitle(Constants.Client);
clientContext.Load(refList);
clientContext.ExecuteQuery();
Field LookUpField = listObj.Fields.AddFieldAsXml(
"<Field Type='Lookup' DisplayName='ClientId' Required='FALSE' List='" + refList.Id + "'
ShowField='ID' StaticName='ClientId'
Name='ClientId' />", true,AddFieldOptions.DefaultValue);
LookUpField.Update();
clientContext.ExecuteQuery();
Thanks