cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SylvieLet17
Responsive Resident
Responsive Resident

Parsing Date with JSON

Hi all, 

 

I don't have much experience with JSON, but I'm trying to decipher and use a date value from the "Shared with details" column in a SharePoint library in a Flow. The column data ends up looking like this:

{"i:0#.f|membership|firstname.lastname@domain.org":{"DateTime":"/Date(1557740213028)/","LoginName":"person.who.shared@domain.org"}}

 

And I've managed to extract the date in a compose action, but now I guess I need to use JSON to translate this to a usable date value. A user said I could use this formula: 

var d = new Date();
d.setTime(1557740213028);

but I have no idea how to plop that into a Parse JSON action. Help?

1 REPLY 1
efialttes
Super User
Super User

@SylvieLet17 

Is your example a valid JSON format? If so you can use "Pasrse JSON" action block currently supported in Microsoft Flow

Here you will find an excellent tutorial via @sergeluca 

https://sergeluca.wordpress.com/2017/11/23/using-json-in-microsoft-flow-part-1/

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

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.

Users online (2,019)