03/27/2023 08:45 PM
Hello
We are making AzureAD connection and there will be different url and reqeust body based on use case (normal user creation or b2b invitation)
I am aware of that we can use if-else in url part and each attribute in httpParam. But i want to know if i can use if-else for entire httpParam
For examplaw
HttpParam : if condtion A { Json A for request body} else {Json B for different request body}
Thanks
03/28/2023 12:39 PM
Hi @ejeong ,
Below will help you in addressing your requirement replace validation with your validation statement
"${String modifyReqUrl='https://xyz/';String newReqUrl='https://abc';if(validation=='0'){return newReqUrl;};if(validation=='1'){return modifyReqUrl;}}"
Thanks,
Hemanath J
03/29/2023 02:02 AM
Hi,
I've taken care of the line breaks for ease of viewing.
This is a case requesting additional confirmation.
"httpParams": "${
(Conditional statements) ?
'{
\"col1\":\"'+user.systemUserName+'\",\"col2\": \"true\"
}'
:
'{
\"col3\":\"'+ ((Conditional statements) ? 'ValA' : 'ValB') +'\",
\"col4\":\"'+arsTasks.id+'\",
\"col5\":\"REMOVE\"
}'
}"
I expected that case to be handled normally as well, but it doesn't work.