Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

I want to put a condition on body payload for service endpoint call

edited Jan 25, 2021 8:55AM in Visual Builder 3 comments

Summary

Inside the body parameter while call rest endpoints i want to put if condition

Content

{
 "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 

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!