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
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,509)