Conditional Service Callout

How we can make service call base on condition?

like if my KVM has some value then make a call?

or any kind of conditions?

so let's take an example if we have some value kvm with cache

i just want to check if that value exists in kvm then I will call service call out.

also how we can set value in kvm from json extractor.

Solved Solved
0 2 707
1 ACCEPTED SOLUTION

How about something like this:

<Step>
  <Name>KVM-RetrieveSettings</Name>
</Step>
<Step>
  <Name>SC-MakeMyCall</Name>
  <Condition>retrieved_kvm_value = "true"</Condition>
</Step>

as for your 2nd question,

also how we can set value in kvm from json extractor.

I don't know what you mean by this. Maybe explain with more context, and explain what you tried, and why you think it did not work.

View solution in original post

2 REPLIES 2

How about something like this:

<Step>
  <Name>KVM-RetrieveSettings</Name>
</Step>
<Step>
  <Name>SC-MakeMyCall</Name>
  <Condition>retrieved_kvm_value = "true"</Condition>
</Step>

as for your 2nd question,

also how we can set value in kvm from json extractor.

I don't know what you mean by this. Maybe explain with more context, and explain what you tried, and why you think it did not work.

Dino-at-Google thanks for a reply now another problem is like when I extracting value from Json Extractor on same policy i need to set in KVM I don't need to add another policy is it possible?

and after that i will use that variable in assign message policy.

so what i want is I just want to make some ternary condition on Assign message policy to add some header?