Thanks Rushikeshvartak. It is working now but it is triggering for all the attribute that are part of the sav4sav updateuser json logic..
I am sharing below updateuser json which i am using.
{
"actions": {
"Update Login": {
"call": [
{
"name":"JoinerReminerEmail",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty56\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeStartDate": 7
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"JoinerWelcomeEmail",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty55\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeStartDate": 1
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"JoinerCredsEmail",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty54\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeStartDate": 1
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"Leaver14dayreminderEmailManager",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty53\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeEndDate": 14
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"Leaver1dayreminderEmailManager",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty52\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeEndDate": 1
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"Leaver14dayreminderEmailUser",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty51\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeEndDate": 14
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"LeaversamedayEmailmanager",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty50\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeEndDate": 0
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"LeaverDISEmail",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty49\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeEndDate": 0
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
},
{
"name":"LeaverFTSEmail",
"connection":"userAuth",
"httpMethod":"POST",
"httpContentType":"application/json",
"httpParams":"{\"username\": \"${user?.username}\",\"customproperty48\": \"True\"}",
"httpHeaders":{
"Authorization":"${access_token}",
"Content-Type":"application/json"
},
"conditions": {
"daysBeforeEndDate": 0
},
"successResponses":{
"message":"User Updated Successfully",
"statusCode":[
200,
201
]
}
}
]
}
}
}
It is working but for all cp values are updated even if it trigger one cp value which is not expected and triggering all the emails at once.