cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MFFranco
Frequent Visitor

Subject = Input from trigger

Hello to all.

 

I am very new to Power automate and only now have started exploring. Did a few tutorials, watched a session, and perused some documentation.

 

In my attempt to create a simple "Block my calendar for 1H" type of button (aim here is when I go to lunch or have an improntu meeting, i just tap the button on my phone and done), I am interested to make the "Subject" of the event to be the Text input of my trigger (the reason chosen when triggering the flow).

MFFranco_0-1642611387342.png

 

Is this possible?

 

In a side note: In a further advance on this button, would be interesting to know if it is possible to instead of adding a finite number of minutes/days/hours for the "End time" if it would be possible to have the flow prompt for a duration (given the chosen variable of minutes/hours/days).

 

Thank you for your time.

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @MFFranco,

 

It should be possible to find the Reason field in the Dynamic Content list and use it in the subject field.

 

Below is an example.

 

reason_dynamiccontent.png

 

RE your second question. You could add a number field for Duration of the meeting and use the addMinutes function in your expression instead of addHours. And instead of adding a fixed amount of time (1 hour/60 minutes) you could use the Duration number field in that same expression.

 

Below is another example of that.

 

 

addMinutes(utcNow(),triggerBody()['number'])

 

 

addedduration.png

View solution in original post

4 REPLIES 4
Expiscornovus
Dual Super User
Dual Super User

Hi @MFFranco,

 

It should be possible to find the Reason field in the Dynamic Content list and use it in the subject field.

 

Below is an example.

 

reason_dynamiccontent.png

 

RE your second question. You could add a number field for Duration of the meeting and use the addMinutes function in your expression instead of addHours. And instead of adding a fixed amount of time (1 hour/60 minutes) you could use the Duration number field in that same expression.

 

Below is another example of that.

 

 

addMinutes(utcNow(),triggerBody()['number'])

 

 

addedduration.png

MFFranco
Frequent Visitor

@Expiscornovus thank you very much. That is in fact much easier to set up for the subject. Thank you.

 

On to the second part, there is no way to actually have it prompt for a request of how many minutes to set? As the expression would have to be hardcoded to the function and not be with a dynamic input. Example: I have an impromptu call that will predictably take me 20m to do. Would this be possible to do?

Expiscornovus
Dual Super User
Dual Super User

Hi @MFFranco,

 

Yes, that prompt would be possible. The setup of the second screenshot actually included that.

 

durationfield.png

 

See a test run example below.

 

20minutes.png

The test end result with a duration of 20 minutes.

 

testrun_20minutes.png

@Expiscornovus oh my. that duration prompt slipped by me. Thank you again.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,482)