Hands-on #10 - Extensions

Helpers

  • Access the CDC console here
  • Access the CDC Help Portal here
  • Find out your attendee ID here

Instructions

Configure a new extension

From the "Sites" screen, make sure you have selected the API key that you created using your attendee ID.

  1. On the left menu click on the "Extensions" link (underneath "Basic").
  2. Click "Add".
  3. Use the following settings:
    1. Name: Registration Validation
    2. API: OnBeforeAccountsRegister
    3. Description: CDC Advanced Training exercise
    4. URL: The URL (Your unique URL) copied from the weebhook.site.
    5. Advanced > timeout: 1000ms
    6. Advanced > Fallback Policy: FailOnAnyError
    7. Advanced > Integration: Generic
    8. Click "Save".
  4. Click on the "Active" slider next to your new webhool.
Trigger the Extension and check the payload
  1. Click the button below and register a new account.
  2. The extension should not allow the registration.
  3. Switch to the "webhook.site" browser tab.
  4. Search for your request (left panel).
Returning a successful response
  1. Switch to the "webhook.site" browser tab.
  2. Click "Edit".
  3. Enter the following into the window:
    1. Default status code: 200
    2. Content Type: application/json
    3. Timeout before response: 0
    4. Response body: { "status": "OK" }
    5. Click "Save".
  4. Click the button below and register a new account.
  5. The extension should now allow the registration.

Congratulations! You have just simulated a real extension behavior!

< Home page

© 2021 Copyright SAP