on 2022 Aug 17 3:51 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.