cancel
Showing results for 
Search instead for 
Did you mean: 

How to send timestamp as a selection field in PaPM cloud process through API.

akki0785
Participant
0 Kudos
641

Hi Experts,

I am using PaPM cloud API to trigger Process Run. In this process, I have "timestamp" as one of the selection criteria.

I am facing a challenge to pass "Timestamp" value, it is not accepting the value passed in selection.

Is there any specific format for timestamp to pass as selection.

I tried below options:

1) Timestamp Value: 2022-02-22T07:54:28.0000000

2) Timestamp value: 2022-02-22 07:54:28.0000000

P.S. I am able to filter the table records in model table in passing values manually.

Regards,

Akshay

Accepted Solutions (0)

Answers (1)

Answers (1)

nicalopez
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Akshay,

Thank you for reaching out.

To answer your question, you can refer to the below API body for you to have a selection when executing a process via API.

{
"procTemplateId": "P001_",
"procId": "",
"envId": "SAM",
"version": "PLE1",
"activity": "A0001",
"postRunAction": null,
"parameters": {"items": []},
"selections": {
"items": [
{
"field": "TIMESTAMPFIELD",
"sign": "I",
"opt": "EQ",
"low": "2022-02-22T07:54:28.0000000",
"high": ""
}
]
}

This will only work for the CHAR field since the DATS and the TIMS data types are separately created.

I hope this helps you. 🙂

Thanks and best regards,
Nica