Skip to main content

Notifications

Community site session details

Community site session details

Session Id : cMfVnW7+Fvfu6lCeA8+RTX
Power Automate - Building Flows
Suggested answer

Power Platform Request Limits ; simplifying my code

Like (1) ShareShare
ReportReport
Posted on 3 Oct 2024 09:24:59 by 46
Hello,
 
My flow is working correctly but I have the impression I could be simplified a lot as I'm getting a report saying I reach the 1000 request limits in 24h ? As I'm a newbie, I appreciate some help or thoughts.
The purpose of my flow is : 
When adding a event in an outlook calendar it has to check for specific words. If found it should assign a specific category to that event. 
Underneath a screenshot of my flow. I think I can be simplified, because as it is now, every word to be searched for imbricced into the previous one.
In essence look for "FU" -> apply category x, look for "IMP" -> apply category Y. 
Now it's written like look for "FU", if not found, look for "IMP", and so on.  
 
What are your suggestions ?  
Thank in advance
  • Chapeau_Melon Profile Picture
    46 on 06 Oct 2024 at 07:41:18
    Power Platform Request Limits ; simplifying my code
    Hi Chriddle, 
    Yes there is : apparently you can export a flow in zip. I just removed the "connexion" in the flow.
    I understand the hesitation, but no, there's no virus or other malicious stuff inside. 
    I hope you'll try, if not, I understand too. 
    Thanks for your replies!
    Kr
     
  • Chriddle Profile Picture
    7,601 Super User 2025 Season 1 on 06 Oct 2024 at 07:27:39
    Power Platform Request Limits ; simplifying my code
    I doubt that I will find a flow in your link (WeTransfer) ;)
  • Chapeau_Melon Profile Picture
    46 on 05 Oct 2024 at 07:35:33
    Power Platform Request Limits ; simplifying my code
    Thanks a lot Chriddle for taking the time to look into this ! 
    I added my original flow : WeTransfer
     
    As I'm not really into this, would it be possible that make a flow based on mine and share it with me?
    This way I can analyse it and try to learn what you're trying to explain to me.
    I hope you can as it would help me tremendously. 
    You don't have to code all possibilities, maybe 3 of them and I continue trying to understand what I do.
     
    Kr, 
     
    Tom
  • Chriddle Profile Picture
    7,601 Super User 2025 Season 1 on 05 Oct 2024 at 07:05:10
    Power Platform Request Limits ; simplifying my code
    If you switch the order of the actions, the expressions are even simpler :)
     
    Filter array:
    From:
    [
    {"Search": "FU", "Category": "x"},
    {"Search": "IMP", "Category": "y"}
    ]
    Filter:
    outputs('Compose') contains item()['Search']
     
    Select:
    From:
    body('Filter_array')
    Map:
    item()['Category']
     
  • Suggested answer
    Chriddle Profile Picture
    7,601 Super User 2025 Season 1 on 04 Oct 2024 at 16:00:49
    Power Platform Request Limits ; simplifying my code
    Yes, that can be simplyfied ;)
     
    For simplicity, I use a Compose for the text to be searched, not the Event trigger.
    In a Select, check for each search term, if it appears in the text and, if so, write the according category to the output array (empty string, if not).
    Then filter for items that are not empty.
     
    The result is an array, that you can put into the Update event (V4)'s "Categories" property (switch to array input)
     
     
    Compose:
    A test FU text
     
     
    Select:
    From:
    [
    {"Search": "FU", "Category": "x"},
    {"Search": "IMP", "Category": "y"}
    ]
    Map:
    if(
    	contains(
    		outputs('Compose'),
    		item()['Search']
    	),
    	item()['Category'],
    	''
    )
     
    Filter array:
    From:
    body('Select')
    Filter:
    item() is not equal to string(null)
     
     
    The result is
     
    and can be used as Categories in Update Event (V4)
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,692 Most Valuable Professional

Leaderboard
Loading started