Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Updating SAC delivery method within the SDK

We are looking to add functionality to a change of address form to allow the customer to update their SAC delivery method at the same time they update their email or phone number on the change of address form. I have found the Caliper endpoints that would allow for this to be done thru the API, but I was wondering if there was a way to do it thru the SDK during their session instead.

Posted 3 years ago
Votes Newest

Answers


Hello Justin,

There is a way to do this in the context of an SDK extension apart of the session. Take note that Caliper API is a SDK extension so everything that you can do with Caliper API you can do in an SDK extension. I will copy some of that code for you to be able to do what you are looking for. As a backdrop, Caliper API uses the AccessCode DbObject see documentation here: https://docs.q2developer.com/api_references/q2_sdk/db/db_objects/access_code.html#module-q2_sdk.hq.db.access_code

For showing the Caliper API code, I will not include input validation and parsing the data to be used in the API format and just focus on the base calls.

Get Tac Targets:

access_code_obj = AccessCode(self.logger, self.hq_credentials)
result = await access_code_obj.get_targets(logon_name=login_name,
																		 exclude_email=False,
																		 exclude_phone=False,
																		 exclude_sms=False
																)

Add Tac Targets:

access_code_obj = AccessCode(self.logger, self.hq_credentials)
response = await access_code_obj.create_targets(
		logon_name=login,
		target_address=target,
		target_type=target_type,
)

Delete Tac Targets:

access_code_obj = AccessCode(self.logger, self.hq_credentials)
response = await access_code_obj.delete_accesscode_target(
		logon_name=login,
		ui_source='OnlineBanking',
		target_address=target,
		target_type=target_type
)
Posted 3 years ago
Trey Teter
124 × 2 Administrator