09-23-2022 07:57 AM
Hello Community,
I want to 9know how can I get below JSON response
{
“pvProjectID”: “2427827wj”,
“p6ActivityList”: [
{
“pvPprojectID”: “smhcvxsn,x”,
“pvActivityId”: “mxcxzvcb”,
“imo_Vorgangskategorie”: null,
“okz_Komponentenstruktur”: “01”,
“imo_Prozessnummer_Code”: “.Jnxbz1”,
“imo_ZugNummer”: “0m,xzn7”,
“imo_WagenNummer”: “Z”,
“activityName”: “xzb IT”,
“plannedFinishDate”: “2029-02-14T17:00:00.000”,
“blProjectFinish”: “2029-02-14T17:00:00.000”
},
{
“pvActivityId”: “FmzbxzcD”,
“imo_Vorgangskategorie”: null,
“okz_Komponentenstruktur”: “xzbvbzx1”,
“imo_Prozessnummer_Code”: “bxz0”,
“imo_ZugNummer”: “0z7”,
“imo_WagenNummer”: “Z”,
“activityName”: “cxcxzx g”,
“plannedFinishDate”: “2029-03-08T17:00:00.000”,
“blProjectFinish”: “2029-03-08T17:00:00.000”
}
],
“errorText”: “string”
}
Right now I managed to get response in below format
Can some one help me here
Solved! Go to Solution.
10-06-2022 06:42 AM
Apologies, the datatype is local datetime. That’s why.
I believe .toString()
will do the job
10-06-2022 06:25 AM
That’s how datetime, binary and some other datatypes are handled in Snaplogic. If you need plain string value for the date fields, you’ll need to stringify them.
$plannedFinishDate.toLocaleDateTimeString()
10-06-2022 06:37 AM
I already tried that option but getting Null values
10-06-2022 06:42 AM
Apologies, the datatype is local datetime. That’s why.
I believe .toString()
will do the job
10-06-2022 07:00 AM
Thanks a lot for your support 🙂
10-06-2022 07:02 AM
Anytime @swatifunde