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 / Power Automate / Filtering results from...
Power Automate
Unanswered

Filtering results from the Select connector

(0) ShareShare
ReportReport
Posted on by 128

Hi Power Automate community,

 

I am currently working on a flow that is almost complete, however I need to make a few changes.

 

The flow itself basically calls Jira's REST API, from the JSON I use the Select connector to filter out results, and then put this data into a CSV file.

 

The issue I am having is related to the "Created" field. The JSON for this can be seen below:

"created": "2021-04-19T09:58:13.469+0100"
 
When I use the following expression on my Select connector:
item().fields.created

I extracted the correct value of:
2021-04-19T09:58:13.469+0100
 
However, if possible I would only like the date and time to be extracted. With the last 9 characters not needed. Also if possible to replace the T with a space to improve the format and readability. My desired outcome can be seen below:

2021-04-19 09:58:13

 

Is there something I could add to my expression, or modification I could make to my expression that would allow me to achieve this?

 

Thanks in advance!

 

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey Mate @Automate123 

     

    Please try the expression below -

     

    formatDateTime(outputs('Compose'),'yyyy-MM-dd HH:mm:ss')
     
    CFernandes_0-1619430283644.png

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Automate123 Profile Picture
    128 on at

    Hi @CFernandes 

     

    Thanks for a quick response. Could I ask where would I place these new connectors within my current flow?

    Automate123_0-1619430442910.png

     

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey Mate,

     

    Try to directly use it in the select action -

     

     

    CFernandes_1-1619432078342.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Automate123 Profile Picture
    128 on at

    Hi @CFernandes 

    Thanks for a quick response. My current Select expression for the "Created" field is:

    item().fields.created

     

    How would I incorporate your expression with my current, as I tried using the expression you provided however am getting errors.

     

    Thanks

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @Automate123 Parse JSON does not return you the Created field directly?

     

    As a test add a "Compose" and show me the value of the Created field.

     

     

     

     

  • Automate123 Profile Picture
    128 on at

    Hi @CFernandes 

    Yes Parse JSON connector does return the created field.

     

    When I add the expression you sent

     

    formatDateTime(outputs('Compose'),'yyyy-MM-dd HH:mm:ss')

     

    I am getting the following error.

    Automate123_0-1619434955457.png

    In relation to you last comment, where would I add the Compose connector? Before the Select connector?

     

    Is there not a way of achieving this just by modifying my current Select expression?

    Thanks

     

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Let try the other way round - 

     

    Add the Compose action -

     

    In the Compose action add the formula - 

     

    formatDateTime(<Created>,'yyyy-MM-dd HH:mm:ss')

     

    Let me know if the that works. 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Automate123 Profile Picture
    128 on at

    Hi @CFernandes 

     

    I have added the Compose action as you suggested before my Select action.

    I added the expression you gave into the input.

     

    Automate123_2-1619436131259.png

     

    The Select expression for the Created field is set to the following:

    item().fields.created

    Automate123_0-1619435882323.png

     

    When I tested the flow, the output from the Created field was the same and had the unwanted characters.

     

    Automate123_1-1619436046434.png

     

    Any ideas on how to achieve just a date and time format?

     

    Thanks

     

     

     

     

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey Mate, 

     

    It shows me  -

     

    CFernandes_0-1619436291364.png

     

    Are you sure that you have passed in the output of the Compose action. 

     

     

  • Automate123 Profile Picture
    128 on at

    Hi @CFernandes 

    Thank you for a quick response. I did not pass the output of the Compose action previously. 

     

    This is currently the Compose connector. It is just before the Select connector

    Automate123_3-1619438011343.png

     

    When I add the output of the Compose action to the created field

     

    Automate123_0-1619437690983.png

     

    output I get is the following:

    Automate123_2-1619437781541.png

     

    Could I ask you to clarify what I should add to the Created field?

    My previous expression of item().fields.created?

    The output of the Compose action?

    Both?

     

    When adding both the results returned can be seen above.

     

    Any ideas on how I could resolve this?

     

    Thanks

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard