Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Unanswered

Can't send datetime to flow.

(0) ShareShare
ReportReport
Posted on by 3

Hi,

I'm building a chatbot, that asks the user for a date, using the Date and Time entity. This value is stored with data type of datetime.

 

I would like to pass this value to an action, but it won't let pick the variable from the list of options. The action itself asks for a PVA input with datatype text. 

 

How can I pass the datetime to my action? 

 

Thanks

Jan

 

  • spencey11 Profile Picture
    spencey11 22 on at
    Re: Can't send datetime to flow.

    Thank you! @HenryJammes it worked a treat. 

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Can't send datetime to flow.

    I see @spencey11. This looks similar to this thread: Solved: Re: Passing a Multi Choice Question response to a ... - Power Platform Community (microsoft.com)

    Let me know if that helps

  • spencey11 Profile Picture
    spencey11 22 on at
    Re: Can't send datetime to flow.

    I think i jumped on the back of an old post, only just started with PVA. I have a choice (choices-P-S-U)menu Pending, Successful and Unsuccessful options. My flow (FlowPVA) has a text field to capture the users response from a variable which I then want to email to someone else in the firm. The problem I have is that the selected choice is not allowing me to pass to Flow as i am getting incorrect type:EmbeddedOptionSet. How can i ensure the selected choice variable is converted to text so that i can pass it to Flow?

  • Expiscornovus Profile Picture
    Expiscornovus 31,081 on at
    Re: Can't send datetime to flow.

    Hi @HenryJammes,

     

    This is a thread of 2 years ago. Shouldn't be an issue in the current version like you already demonstrated 😁

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Can't send datetime to flow.

    Hi everyone,

     

    I'm not sure I understand the issue here.

    I'm able to pass a date and time variable to Power Automate, and in Power Automate be able to handle it as a date, for example to format it differently:

     

    HenryJammes_0-1679571641435.png

     

    E.g.

    formatDateTime(triggerBody()['text'], 'f')

    HenryJammes_1-1679571671836.png

     

  • spencey11 Profile Picture
    spencey11 22 on at
    Re: Can't send datetime to flow.

    Is this the same for passing choice values to Flow? Any steers on how you would achieve this as a workaround?

  • janszett Profile Picture
    janszett 3 on at
    Re: Can't send datetime to flow.

    Thank you. 

  • Expiscornovus Profile Picture
    Expiscornovus 31,081 on at
    Re: Can't send datetime to flow.

    Hi @janszett,


    As far as I am aware the Power Automate PVA trigger action currently only supports text, number and boolean input data types.

     

    I was running into the same issue when I came across this post. If I can find a workaround I will post it over here.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard

Featured topics