You can use filter query option to filter the data in Microsoft flows
e.g. I want to filter the data where expiry date not equal to null. You can do it by following way
1) Expand the advance options
2) Enter the condition as shown in below image Epirydate ne null
1) NE = Not equal to
2) EQ = Equal to
3) LEQ = Lest than equal to
4) GEQ = Greater than equal to
Showing posts with label Microsoft flows. Show all posts
Showing posts with label Microsoft flows. Show all posts
Wednesday, February 6, 2019
Tuesday, February 5, 2019
Use AND, OR expression in flow conditions
Usually in Microsoft flows you can add only one condition in basic mode. There are no options to add expression like AND, OR. To use these expressions go to advance mode and use the AND, OR . e.g.
I want to use a condition
if (contract value is < 100000 and standard term = 'Yes' )
then
Do this
else
Do else
1) To use it in the flows enter the first condition in basic mode, go to advance mode and copy it in notepad
2) Delete the first condition
3) Apply the second condition, go to advance mode and copy it in notepad
Create the condition yourself with @and
@and
(
lessOrEquals(body('Get_item')?['Contractvalue'], 100000),
equals(body('Get_item')?['standardterms']?['Value'], 'Yes')
)
NOTE: remove all other @ signs from conditions expect with @and
1) Paste the created condition in MS flows condition box in advance mode and you are done.
2) Save the flow and see it is not showing any errors
For more information please use the following URL
I want to use a condition
if (contract value is < 100000 and standard term = 'Yes' )
then
Do this
else
Do else
1) To use it in the flows enter the first condition in basic mode, go to advance mode and copy it in notepad
2) Delete the first condition
3) Apply the second condition, go to advance mode and copy it in notepad
Create the condition yourself with @and
@and
(
lessOrEquals(body('Get_item')?['Contractvalue'], 100000),
equals(body('Get_item')?['standardterms']?['Value'], 'Yes')
)
NOTE: remove all other @ signs from conditions expect with @and
1) Paste the created condition in MS flows condition box in advance mode and you are done.
2) Save the flow and see it is not showing any errors
For more information please use the following URL
Sunday, December 16, 2018
How to handle Apostrophe in Ms Flows
Question: How to handle Apostrophe in Ms Flows?
Answer : Use the replace function to handle it
Answer : Use the replace function to handle it
replace(['Registered_x0020_Business_x0020_'],'''',' ')
It will replace the Apostrophe with a blank space.
Tuesday, December 11, 2018
MS Flows | How to remove last few character in MS Flows from a string
Question: How to remove last few characters from a string in MS Flows?
Answer:
Answer:
substring(variables('LicenseTypes'),0,sub(length(variables('LicenseTypes')),2))
1) I took example of a string variable
2) Make sure change the variable with your values
3) Make sure you Change the number value at end, I am removing last 2
characters from the string
MS Flows | How to add days function works
Question: How to use add days function in MS flows
OR
Question: How to play with Date and time in MS Flows
Answer:
This answer shows you to add 7 days in SharePoint Date field
formatDateTime(addDays(formatDateTime(string(['License_x0020_Expiry_x0020_Date'])), 7))
1) Convert that date field to string
2) Convert into ISO 8601 format
3) Add 7 days
4) Return the ISO 8610 format date
OR
Question: How to play with Date and time in MS Flows
Answer:
This answer shows you to add 7 days in SharePoint Date field
formatDateTime(addDays(formatDateTime(string(['License_x0020_Expiry_x0020_Date'])), 7))
1) Convert that date field to string
2) Convert into ISO 8601 format
3) Add 7 days
4) Return the ISO 8610 format date
Subscribe to:
Comments (Atom)