SK SKYVVA Documentation

Pass Transform Query/Path/Header Parameter-Value by Mapping ?

Introduction

Passing, transforming, querying, or modifying parameter values within an SKYVVA app or an API can be crucial for data manipulation and effective communication between different components.  This process is used to manipulate or pass values in various contexts, such as APIs, and data transformation pipelines, in our SKYVVA application integrations.

In the realm of APIs, passing parameters involves transmitting specific values or information to endpoints to trigger actions or retrieve data. These parameters can be in the form of query parameters, path parameters, or header parameters, each serving a distinct purpose:

Mapping techniques allow for the manipulation or transformation of these parameters. This can involve:

Implementing parameter-value mapping involves tools, middleware, transforms, and forwards parameters between the SKYVVA app. This process enables efficient communication and interaction between different parts of the SKYVVA application ecosystem.

Case1: Passed direct Query/Path/Header value without Transform

Users need to pass header, path, and query parameter values from a request made using invokeCalloutV3() in the developer console to an adapter, and then have the adapter use these values to generate a response that mirrors the received request parameters back to an inbound (response) interface.

To accomplish this:

Using invokeCalloutV3() in the developer console, the user sends an HTTP request to an endpoint handled by your adapter.

Within the adapter, the user needs logic to capture and extract the received header, path, and query parameters from the incoming request.

Use the captured header, path, and query parameter values to construct the response payload.

Return the generated response from the adapter back to the inbound interface.

This process involves handling the request parameters received by the adapter and constructing a response that includes these parameters to mirror the original request. It's crucial to accurately capture and reproduce these parameters to maintain consistency between the request and response interfaces.

The proper error handling, validation, and transformation logic while using the parameters to ensure the integrity and security of the data by using the SKYVVA application.

Required step:

[su_box title="Note" box_color="#FF0000" title_color="#000000"] In This case we don’t use outbound mapping.[/su_box]

That API is just for testing by forwarding requests as response back with Path, Query, and Header

[su_box title="Result:" box_color="#2a8af0" title_color="#000000"]

After Execute Apex Code, we got the Debug Log

Message Monitoring API Response back

Case2: Passed Transform value through the mapping to Query/Path/Header at the adapter to invokeCalloutV3()

Required step:

[su_box title="Result:" box_color="#2a8af0" title_color="#000000"]

After Execute Apex Code, we got the Debug Log

Message Monitoring API Response back

Case3: Passed "__SKYVVA__LAST_RUN_DATE_TIME" from Scheduler to Query/Path/Header

Required step:

Go to Interface Request link Adapter and Interface Response with interface.

      2. Seconds Scheduler run

[su_box title="Note:" box_color="#2a8af0" title_color="#000000"]

[/su_box]

[su_box title="Note:" box_color="#FF0000" title_color="#000000"]

The default value used during the initial run is set as 1800-01-01T00:00:00.000+0000. This value likely serves as a starting point when there's no previously recorded last run date.

This initial value can be configured by adjusting the Interface Control Runtime, specifically related to the record type V3 Outbound Execution. This setup involves associating this record with the last run value to initialize the process.

The scheduler is responsible for passing _SKYVVA_LAST_RUN_DATE_TIME as a parameter or value to the Query/Path/Header. This parameter represents or holds the last run date and is crucial for subsequent operations during the scheduler's execution.

[/su_box]

Summary

Now user learned how our SKYVVA application facilitates parameter-value transformation via mapping. Users pass query, path, and header data through interfaces, manipulating and transforming values for outbound calls. Scheduler executions manage last run dates, initiating requests with transformed parameters. These transformed values integrate into API calls through adapters. Responses contain transformed data, verifying correctness. SKYVVA app streamlines parameter handling, ensuring accurate data transmission and compatibility between systems.

Open this article in the interactive viewer →