Code Examples and Explanation
with open_vault('data') as vault:
# Get, insert, update, upsert, or delete vault dataGet All Customers
with open_vault('data') as vault:
customers = vault.get('customers')
if customers:
output.payload = customers
else:
output.payload = "There are no customers in the data vault."Get Customer By Id
with open_vault('data') as vault:
customers = vault.get('customers')
customers = [customer for customer in customers if customer.id == input.path.id]
if customers:
output.payload = customers[0]
else:
output.payload = f'There are no customers with an id of: {input.path.id}'Add a Customer
Update Customer
Delete Customer
PreviousExecute Web Service Endpoints with Vault MethodsNextBuild a Customer360 Retrieval API against FIS CodeConnect
Last updated
Was this helpful?