Skip to main content
All CollectionsAutomate
Plan Metadata References
Plan Metadata References

Learn how to add advanced references In the body and header of HTTP tasks in your plans

Thea avatar
Written by Thea
Updated over 3 years ago

For HTTP tasks inside plans, you can add references to metadata from the plan itself. Using contextual information from the plan, relevant flows or other HTTP tasks, you can augment the information reported from the webhook.

If you are learning about Plans and how to use them, check out this article first.

General Syntax

  • All references can be entered with $ in the Trifacta application.

  • Nodes in the tree are separated with a . period

All plan metadata references follow the following basic syntax:

{{$plan.path.to.reference}}

Reference values that contain whitespace must be listed in the following manner:

{{$plan.path['path with white space in it'].rest.of.path}}

Note that this has type-ahead functionality. So you can begin by entering $ sign and follow the suggestions of what possible references to use as you type ahead.

$plan References

These references apply to the plan definition or current plan run.

Text to enter:

$plan.

You can follow that up with different attributes like name, duration, startTime, runId, user, taskCount etc. To learn more, read this article.

$http References

These references apply to HTTP tasks in the plan run.

Enter the following, after which you can see the two-letter codes for the HTTP tasks that have already executed in the current plan run:

$http_ax.

You can follow that up with name, status, duration, statusCode etc.

For a complete list of http references you can use, check out this detailed documentation guide.

Response references

These references apply to the response returned as part of the task execution.

Enter the following, after which you can see the two-letter codes for the HTTP tasks that have already executed in the current plan run:

$http_ax.response.

The response references you can use are body, json and headers.

$flow References

These references apply to flow tasks in the plan run.

Enter the following, after which you can see the two-letter codes for the HTTP tasks that have already executed in the current plan run:

$flow_ax.

To learn more, read this detailed article.
โ€‹

Specifying metadata references in your http task

More Info

Did this answer your question?