Тёмный

Flow trigger conditions - Item created with attachment or Content Type & folder/Document Set created 

Reza Dorrani
Подписаться 138 тыс.
Просмотров 21 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 102   
@ThatAPIGuy
@ThatAPIGuy 4 года назад
Great video Reza. Some real good tips there.
@RezaDorrani
@RezaDorrani 4 года назад
Wow!!! Coming from “That API Guy” - this means a lot. Thank you.
@amyroswick3759
@amyroswick3759 3 года назад
Thanks for the details. This helped me finally understand how to only trigger when a specific file was modified and not the whole folder. It shouldn't have been so hard...but I love that you demonstrated a bunch of other options that I can set as triggers. Perfect!
@RezaDorrani
@RezaDorrani 3 года назад
Glad to hear the video is useful. Thank you for watching.
@gerusnero
@gerusnero 4 года назад
I especially liked the last one, determining the folder level. great work reza!
@RezaDorrani
@RezaDorrani 4 года назад
The next part will cover more complex scenarios.
@365g
@365g 3 года назад
Many thanks Reza, great video. Back brushing up on my trigger conditions!
@RezaDorrani
@RezaDorrani 3 года назад
Excellent!
@sabrrrnamae
@sabrrrnamae 2 года назад
thank you so much this works perfectly for document sets created! I would also like to ask how I can modify this such that I can use When a File is Created or Modified (properties only), but still restrict it to a specific document set? The trigger condition is no longer available for this trigger.
@RezaDorrani
@RezaDorrani 2 года назад
Your most welcome! For a file is selected scenario, you would have to check the document path to know if it's in a doc set (Im assuming that is your requirement).
@piinetu
@piinetu 2 года назад
Amazing thanks Reza .. it has helped me solving dynamic folder creation problem
@RezaDorrani
@RezaDorrani 2 года назад
You are most welcome
@m.k.t.7971
@m.k.t.7971 Год назад
Hi, Reza! Great video! "When a file is created/modified in a subfolder" helps me a lot. I need to have an automate flow to notify the report requester when a report result has been uploaded to the folder for this report. I already have a flow to auto-create a folder using the requested report name, but don't know how to set up a flow to notify requester when the report result has been uploaded into the folder that is auto-created by the report name, which has dynamic folder and requester. Could you please give me some advice? Thank you so much!
@RezaDorrani
@RezaDorrani Год назад
I do not have a video reference on that scenario and would have to try it out to provide guidance. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
@m.k.t.7971
@m.k.t.7971 Год назад
@@RezaDorrani Thanks for your quick response and shared link! Looking forward to your upcoming videos.
@lorddragonmage4432
@lorddragonmage4432 3 года назад
Excellent walkthrough - thank you Resa. Couple of questions: How can I see how many API Requests each flow has or my overall totals? Also, can you take this one step further and show how you would trigger based on a specific selection of a drop-down box?
@RezaDorrani
@RezaDorrani 3 года назад
Each flow has analytics which will show you number of API calls for that flow per day. Overall API requests view is currently not available. Check my playlist on flow trigger conditions - ru-vid.com/group/PLTyFh-qDKAiGFDykUngHNNstTABnc-tLv
@chrystianpinheiro5391
@chrystianpinheiro5391 2 года назад
Thank you very much, it helped me a lot with the content type problem
@RezaDorrani
@RezaDorrani 2 года назад
Glad it helped!
@johnmizell4683
@johnmizell4683 3 года назад
This worked flawlessly! Thank you. I noticed the Power Automate design interface is different than mine, how do I get mine to look like yours?
@RezaDorrani
@RezaDorrani 3 года назад
You need to enable the Experimental settings in Power Automate. I have show it at the beginning of the video.
@luismagana3815
@luismagana3815 2 года назад
your video help me to solve my issue!!!!!!! thanks you so much!!!!!!!!!
@RezaDorrani
@RezaDorrani 2 года назад
Awesome! Thanks for watching.
@noahmcfadden1658
@noahmcfadden1658 4 года назад
Great video. Is there a way to trigger the flow to create a new folder inside of a folder/doc set you just created? I need to create sub folders automatically when a document set is created. The subfolders need to be created in the newly created document set. Not sure if this can be done.
@RezaDorrani
@RezaDorrani 3 года назад
Hi Noah, this can be done. A doc set is nothing but a folder with metadata. You can create a trigger condition that starts flow when doc set is created (check Content Type) and then create a folder within the doc set from flow.
@RezaDorrani
@RezaDorrani 3 года назад
Yes can be done. Trigger condition for flow is doc set created and then create folders as needed
@hartleyeastwood4822
@hartleyeastwood4822 4 года назад
Excellent tutorial! Thank you for this!
@RezaDorrani
@RezaDorrani 4 года назад
You're very welcome!
@robinjamesnjarlely
@robinjamesnjarlely 3 года назад
Hi Reza, great video. Any suggestions on how would we move document between two libraries(Named as draft and approved) with along with metadata
@RezaDorrani
@RezaDorrani 3 года назад
There is a move file action in flow.
@carlosm5591
@carlosm5591 3 года назад
Hello, very good tutorials, is there a chance to obtain once the file is uploaded to obtain an specific field from a PDF or an XLS file. Thanks!!!
@RezaDorrani
@RezaDorrani 3 года назад
For PDF - you would probably need some 3rd part pdf service or use AI features to extract field values. For Excel - as long as your xls file has a table, you can read that data in flow using the Excel Online (Business) connector.
@carlosm5591
@carlosm5591 3 года назад
@@RezaDorrani Thanks i follow your advice using Excel, but let me tell what i'm looking for. When an xls is created in a library, i want to read a field (email) and extract it. So evey time I insert a new file i would extract the email for each. But with the connector i can use it for one time, assign a variable for the table name is not possible. How can i add a variable to read the name of the table in each file. Thanks again
@RezaDorrani
@RezaDorrani 3 года назад
@@carlosm5591 I will have to try out your use case to provide any guidance. I will recommend you post your query on the forums at powerusers.microsoft.com/
@Rexen1995
@Rexen1995 3 года назад
Trigger condition works great, but I wanted to send a notification to the user and update the state of my item to "Missing file", so I implemented a simple control condition using the "has attachment" dynamic content (if true), then, in the negative branch it updates the item's state, sends an email notification and then terminates the flow. In a way this is more "responsive" since it will react to the attachment being missing, but it will trigger the flow at the cost of resources.
@RezaDorrani
@RezaDorrani 3 года назад
Interesting
@06M61A0435MADDY
@06M61A0435MADDY 3 года назад
Hello Reza, Thanks for your video, I have a question hope you will answer. when a pdf file is uploaded to the library not List and get that file content and trigger an email with that pdf?
@RezaDorrani
@RezaDorrani 3 года назад
Check this - twitter.com/365CornerDavid/status/1334428607482040322?s=20
@clare5967
@clare5967 2 года назад
so helpful Reza!
@RezaDorrani
@RezaDorrani 2 года назад
Glad it was helpful!
@uchitluktuke5304
@uchitluktuke5304 3 года назад
Thanks for your help- that solves my problem.
@RezaDorrani
@RezaDorrani 3 года назад
Great to hear!
@uchitluktuke5304
@uchitluktuke5304 3 года назад
Thanks Reza for the guidance
@RezaDorrani
@RezaDorrani 3 года назад
Most welcome
@DanielNDemo-bk2km
@DanielNDemo-bk2km 3 года назад
Great video, Thank you!
@RezaDorrani
@RezaDorrani 3 года назад
Glad you liked it!
@joselitobarrera9347
@joselitobarrera9347 Год назад
Hi reza . Thank you for another idea's on how the trigger conditions works however i would like to know if there is a trigger condition modified by user. If for example the flow will only trigger if the user modified the column like assigned to column. Thank you so much.
@RezaDorrani
@RezaDorrani Год назад
That is not possible with trigger conditions. As you would need version details to know last value of column to check to see if its modified.
@joselitobarrera9347
@joselitobarrera9347 Год назад
Thank you so much@@RezaDorrani .. another question Sir By any chance if I created a dropdown name column instead of email to be my trigger condition on my "status value" is it possible to work ?
@RezaDorrani
@RezaDorrani Год назад
@@joselitobarrera9347 I did not understand the question
@ericmild4050
@ericmild4050 4 года назад
18:04 "On the Forums"...can you please give us some links to the Forums you are viewing? I appreciate your video and figure that the forums you are interested in, are ones that I should be interested in also.
@RezaDorrani
@RezaDorrani 4 года назад
powerusers.microsoft.com Get connected to the community forums. There is a forum for each pillar of the Power Platform.
@aaaaa601
@aaaaa601 2 года назад
👍👍👍🙋‍♂️🙏 thks more
@RezaDorrani
@RezaDorrani 2 года назад
Thank You
@pallavigupta8378
@pallavigupta8378 3 года назад
Hi Rez.Thanks for wonderful videos.I have been struggling with cloud flows and its integration with dynamics 365.Is there some video I can refer?
@RezaDorrani
@RezaDorrani 3 года назад
I have very limited experience with D365
@pallavigupta8378
@pallavigupta8378 3 года назад
@@RezaDorrani thanks for reply.Is there some video which you would recommend for cloud flows im general Where I can know more about http and api connectors.
@RezaDorrani
@RezaDorrani 3 года назад
docs.microsoft.com/en-us/connectors/connector-reference/
@pallavigupta8378
@pallavigupta8378 3 года назад
@@RezaDorrani thanks a lot.I really appreciate all the help you are doing.If there ia some book I can refer I would love to know more about it.
@RezaDorrani
@RezaDorrani 3 года назад
@@pallavigupta8378 I am not aware of any books. You can ask this question in the forums at powerusers.Microsoft.com
@victorcosentini1814
@victorcosentini1814 3 года назад
Great video. Suggestion: imagine you have a pdf file containing 20 pages. These 20 pages can be broken down to 4 unique categories. Can you please help me understand how you would you creat a flow to separate those documents and then place them in their respective categories?
@RezaDorrani
@RezaDorrani 3 года назад
Looks like you want to split pdf file based on pages into multiple documents and categorize. I don't think there is any Out of the Box action in flow which does that. There are some 3rd party connectors that can provide that. There is a split pdf action with Adobe PDF Tools conenctor for example. I have never tried this scenario, so I may not be the best person to answer this. Try posting your query to the community forum and see what response you get - powerusers.microsoft.com/t5/General-Power-Automate/bd-p/MPAForum
@davidrico8755
@davidrico8755 2 года назад
Im looking for something similar but so far everything i have tried hasnt worked. im a noob but ive watched sevral videos and no luck so far.
@mariahreymarkvig3758
@mariahreymarkvig3758 3 года назад
Thanks for a very good video. However when I add HasAttachment from When item is created to the expression it returns false wheather or not the item contains an attachment. If I add HasAttachment from Get item, then I get true or false output, but I cannot use the Get Item in the Trigger condition.
@RezaDorrani
@RezaDorrani 3 года назад
It should work as demonstrated in the video. Check your expression syntax again. Make sure you have the @ symbol in trigger condition. I will have to look at your flow in action to provide any guidance. I would recommend you post your issue/query with screenshots on the forums at powerusers.microsoft.com
@mariahreymarkvig3758
@mariahreymarkvig3758 3 года назад
@@RezaDorrani thank you for your reply. I have tried various things, but it still does not work. Can it be that the trigger runs before the attachments are added? According to different articles on the web, that could be the issue.
@RezaDorrani
@RezaDorrani 3 года назад
@@mariahreymarkvig3758 Should not be the case. Did you post your issue on the forums?
@johanvandyk6532
@johanvandyk6532 3 месяца назад
Did anything change regarding Trigger Conditions? I have have following trigger condition @equals(triggerBody()?['HasAttachments'],true) but the flow is never triggered. If I use a Compose with equals(triggerBody()?['HasAttachments'],true) it evaluates to true when the item has an attachment. Any ideas\assistance will be appreciated.
@RezaDorrani
@RezaDorrani 3 месяца назад
I have not experienced the mentioned issue and hence not sure what the cause for it could be. I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
@uchitluktuke5304
@uchitluktuke5304 3 года назад
Hi Reza Thank you for the great video. Could you please provide guidance on the following. 1. I am looking to find the right trigger where a word document [Test Certificate] is created in a SharePoint Test site consistent with scenario 3 above. What are the content types available- In this scenario, the user fills in a word form and the corresponding column headings and data in a SharePoint Document Library should be updated automatically. 2. I see several thousand instances of billable actions per day, when in practice we are just two people testing it out. We are exhausting out API 3. How do I get the Word certificate to Auto Number starting from WPC-25000, WPC 25001 ... [This is perhaps an expressions and syntax question which concatenates a text string with a set of auto increments starting 25,000] I am a beginner trying to get hold of a starting point on Syntax. Your expressions course is very helpful. Thanks again Cheers Uchit
@RezaDorrani
@RezaDorrani 3 года назад
1 - You can also trigger flow if doc type is word. You would have to define that in trigger condition. To push data from word document to document properties, I beleive it is possible by adding document properties - www.c-sharpcorner.com/article/how-to-fill-sharepoint-metadata-in-word-document-template-using-quick-parts-and/#:~:text=Open%20this%20document%20from%20SharePoint,want%20in%20your%20document%20template. 2 - Imp to use expressions and trigger conditions to reduce actions and API calls ru-vid.com/group/PLTyFh-qDKAiGFDykUngHNNstTABnc-tLv aka.ms/learnexpressions 3- Expressions is the answer ru-vid.com/group/PLN-cZRQeAiDVQ-6ZWGr43yyTcpu6mUgrR concat function
@uchitluktuke5304
@uchitluktuke5304 3 года назад
@@RezaDorrani Thank you kindly!
@ryanbond8022
@ryanbond8022 3 года назад
Hi Reza, this is great. The trigger I want to apply a condition to is "When an item or a file is modified" and always after this an "Apply to Each" is inserted automatically after I insert the compose function. This means that to reference my column, it is inside an apply to each, like so: not(empty(items('Apply_to_each')?['FormFilledBy'])). Then it is not working. How can I get the trigger working when apply to each keeps can't be referenced in the trigger?
@RezaDorrani
@RezaDorrani 3 года назад
That should not be the case. For the trigger, go to settings and turn on the Split On feature.
@ryanbond8022
@ryanbond8022 3 года назад
@@RezaDorrani Solved it!
@uchitluktuke5304
@uchitluktuke5304 3 года назад
Hi Reza Thanks for the update 1.Any modifications similar to what you recommend seem to work only when my Manager tries them on his system [him being the local administrator] and not myself [being a normal user] It is our intention to release this form for testing by adding a few more user [not administrative] accounts. These users will be creating test certificates. How can we check that they can do the exact same thing that my Manager can in terms of the new form, or do they need to be administrators as well. 2. The end state I am looking at is for some technicians to be able to create unique test certificates that auto-increment the numbering. It is likely that 5 technicians are working from 5 different log ins to generate 5 different test certificates. 3. Also can we get the system to auto-create PDFs [exported] of these generated certificates for use/storage in other systems. Thanks and Regards Uchit
@RezaDorrani
@RezaDorrani 3 года назад
1 - Depends on the flow trigger. In this demo the flow is an automated flow so will run under the flow Owners account even though users are creating the items. You will have to change your trigger to for a selected item and users will have to manually trigger it. 2 - Same as above 3 - Yes. There are many connectors available to achieve that. Try posting your query on the community forum to see what folks say about these requirements - powerusers.microsoft.com/t5/General-Power-Automate/bd-p/MPAForum
@fpereda
@fpereda 4 года назад
Hi!, I've been looking all over the internet for an easy way to send emails with customised attachments - no luck. I need to send a certificate of participation as an attachment to 100 students (a certificate per student). How can I add a specific attachment to each email? I have the pdf files in a library in share point + the mailing list in an excel sheet.
@RezaDorrani
@RezaDorrani 4 года назад
You will probably not get your exact scenario on the internet since every use case is different. One approach would be as follows: Run a flow based on a schedule. The flow will first read the data from your excel sheet (based on where this sheet is stored) Then loop through all items of the sheet. For each item, go to the library and get the pdf file associated with the excel line item (there should be some correlation with the excel data and the pdf file - may be a unqiue id or something) Then use the send email action in the loop, attach the pdf file and email it out to the user.
@fpereda
@fpereda 4 года назад
@@RezaDorrani thanks Reza! I'm trying this one with a similar concept. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--E5AzqM1_R8.html. Hope it works!
@nadsgamingliveofficial
@nadsgamingliveofficial 2 года назад
Once I have created the new folder by flow then I want to add files in the new folder (files like excel, ppt) by using flow. how do this any suggestions?
@RezaDorrani
@RezaDorrani 2 года назад
I do not have a video reference on this scenario and would have to try it out to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@nadsgamingliveofficial
@nadsgamingliveofficial 2 года назад
@@RezaDorraniyeah sure. I will post thanks 😊
@rubikarubi441
@rubikarubi441 3 года назад
Hello @Reza Dorrani, How to check same Condition in "For a selected file" action in power Automate Flow. If manual trigger user should select specific file/folder how to check this condition in "For a Selected File" Action?
@RezaDorrani
@RezaDorrani 3 года назад
Not sure if I understood your question.
@venkatakrishnadaddolu335
@venkatakrishnadaddolu335 3 года назад
condition for "I have to send email to user or group if the only status column (having multiple choices) modified to particular choice " any suggestion, please
@RezaDorrani
@RezaDorrani 3 года назад
I don't think its possible because of the structure of a multi choice column. It returns a collection. you can try contains function but I remember this not working for one of my projects long ago.
@darshantani898
@darshantani898 3 года назад
Hi when I am creating a flow with "for a selected file" action on power automate, for form library it is not showing me flow name when I select a file and click on flow to trigger it manually Is this available for form library as for document library it is working fine but not for form library
@RezaDorrani
@RezaDorrani 3 года назад
I have never tried it with forms library. Forms library is classic in nature. Used for infopath forms. Probably that could be the reason flow (for a selected item) does not show up. You may want to look at some column formatting if possible to call the flow from you library view.
@darshantani898
@darshantani898 3 года назад
@@RezaDorrani I checked with column formatting and it worked very well. Thanks for suggesting.
@hakimmuhiddin9068
@hakimmuhiddin9068 4 года назад
Is there any way I can set the trigger condition and text value format? For example A0432. It shall only triggered when the is A#### (A and 4digit format).
@RezaDorrani
@RezaDorrani 4 года назад
You would have to use expressions. ru-vid.com/group/PLN-cZRQeAiDVQ-6ZWGr43yyTcpu6mUgrR
@anantbirdeol5669
@anantbirdeol5669 2 года назад
I want to trigger a flow when an excel file is added to SharePoint folder, I also want to use the data in that excel using List rows present in a table. The table name and headers will always be the same, I am not able to do this as it says 'Table not found', please help
@RezaDorrani
@RezaDorrani 2 года назад
You can add trigger condition to check if file extension is excel. As for your issue, I will have to look at your flow in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
@anantbirdeol5669
@anantbirdeol5669 2 года назад
@@RezaDorrani Thanks Reza I have been able to get it to work, I was using 'ID' instead of File Identifier in 'List rows excel'
@davidrico8755
@davidrico8755 2 года назад
Does this work for file names on Ondrive?
@RezaDorrani
@RezaDorrani 2 года назад
Flow trigger conditions should be available for all the Office connectors.
@davidrico8755
@davidrico8755 2 года назад
@@RezaDorrani Thanks i actually just watched this one but i did not work for me when i used the file name. i typed in --> startsWith(triggerOutputs()?['headers/x-ms-file-name-encoded'], 'FAC-')
@davidrico8755
@davidrico8755 2 года назад
@@RezaDorrani Im trying to make it to where i save a file that starts with FAC- itll activate the trigger. Im doing this as i will be using the same folder just diffrent file name at the beggining to know where to send the file. But i am a complete noob and really dont know what im doing. Your videos are very helpful im just a noob.
@RezaDorrani
@RezaDorrani 2 года назад
@@davidrico8755 Your scenario is different from the one covered in video. Your formula seems right. I would have to look at your flow in action to provide guidance. I will recommend posting your issue with screenshots on the forums at powerusers.microsoft.com/
@shanthimachunuru1100
@shanthimachunuru1100 7 месяцев назад
Hi Reza
@RezaDorrani
@RezaDorrani 7 месяцев назад
Hi
Далее
Power Automate Tutorial - Intro to Trigger Conditions
33:44
Power Automate Approval Workflow Basics
30:01
Просмотров 216 тыс.
Power Automate Child Flow using Solution Packages
22:50