Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
I want to put a condition on body payload for service endpoint call — Cloud Customer Connect
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

Accepted answer
12
Views
3
Comments
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!