Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Making custom Strategy Result properties available for real-time container data flows

Updated on September 15, 2022

Now that you have passed in Context data as part of the Container request, you will want to access this data within your decision strategies. There are two utility functions that allow you to access this data depending on your requirements.

Pega Customer Decision Hub

IsValueInContext

The IsValueInContext function checks if a value exists in the list of Contexts passed in the Container Request.

IsValueInContext function parameters:

NameDescription
TypeThis parameter identifies the type of context.
KeyThis parameter identifies the name of context.
ValueThis parameter contains the data to be evaluated.
For example: @PegaMKTUtilities.IsValueInContext("Intent","IntentName","CloseAccount",Primary.ContainerPayload.Contexts)

GetContextValue

The GetContextValue function returns the value for the specified Type and Key in the Container Contexts.

GetContextValue function parameters:

NameDescription
TypeThis parameter identifies the type of context.
KeyThis parameter identifies the name of context.
ValueThis parameter contains the data to be evaluated.
For example: @PegaMKTUtilities.GetContextValue("Intent","IntentName",Primary.ContainerPayload.Contexts)

Container settings

You can toggle the following additional settings for Context in Strategies:

  • Identity matching - Enabled by default. To disable, toggle the MKTEnableIdentityMatching dynamic system setting.
  • Customer lookup - Enabled by default. To disable, toggle the MKTEnableCustomerLookup dynamic system setting.
  • Customer validation - Disabled by default. To enable, toggle the MKTEnableCustomerValidation dynamic system setting.
  • Previous topic Identity management for the Container REST service
  • Next topic Capturing responses to actions with the CaptureResponse service

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us