I want to put a condition on body payload for service endpoint call
Summary
Inside the body parameter while call rest endpoints i want to put if conditionContent
{
"SrNumber": "[[ $page.variables.serviceRequestRecord.SrNumber ]]",
"Title": "[[ $page.variables.serviceRequestRecord.Title ]]",
"ProblemDescription": "[[ $page.variables.serviceRequestRecord.ProblemDescription ]]",
"CategoryId": "[[$variables.categoryIdVar ]]",
"CategoryName": "[[ $page.variables.serviceRequestRecord.CategoryName ]]",
}
it is a static payload
I am passing this to body at rest endpoint call here i want to add the condition that if "CategoryName": "Registration",
then only pass "ProblemDescription": "[[ $page.variables.serviceRequestRecord.ProblemDescription ]]", otherwise not
0