web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Chatbot to return Date...
Copilot Studio
Unanswered

Chatbot to return Date value from CRM

(0) ShareShare
ReportReport
Posted on by 817

Hi Guys,

 

I have a very simple scenario that I'm trying to create. I want to create a chat bot that returns from Dynamics CRM the expiration date of subscription.

I'm imagining the bot should be very simple (just as a concept) and will ask the customer only for Subscription Number (string)

The WF logic is something like this:

4.PNG

 

But I need help with to set Flow to search in CRM for the Customer's input (Subscription number)

I'm not sure if i the configuration is correct .

Subscription number field schema name in CRM is new_subscriptionnumber

2.PNG

1.PNG

I must return to the bot Expiration Date of the Subscription.

1.PNG

 

Let me know if there is anything unclear.

Best Regards

Kiril

I have the same question (0)
  • Verified answer
    MarKol Profile Picture
    on at

    JSON does not support Date or Timestamp variable types, so you would need to convert your Date variable to a String in your flow and pass it to PVA bot as a String to display in a Dialog.

     

    There is a string (value) conversion function under Expression in flow that will cast your Date or Timestamp to a String, if this is needed. See example below on how to return Date or a Timestamp as a String in a flow:

     
     

    DateAsString.jpg

     

    In PVA, the date shows up as a String and can be displayed to the user:

    Get odays date Dialog.JPG

     

    Hope this helps.

     

     

  • Ashish2012 Profile Picture
    478 on at
    JSON does not support in PVA, SO you need to use Power Automate.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard