< Back
Add-YnabTransactionPreset
Post
NAME Add-YnabTransactionPreset
SYNOPSIS
Add a transaction preset to be used in Add-YnabTransaction.
SYNTAX
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [[-Date] <DateTime>] [[-Token] <Object>] [[-FlagColor] <String>]
[[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [-Outflow] <Double> [[-Date] <DateTime>] [[-Token] <Object>]
[[-FlagColor] <String>] [[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [-Inflow] <Double> [[-Date] <DateTime>] [[-Token] <Object>]
[[-FlagColor] <String>] [[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [-Amount] <Double> [[-Date] <DateTime>] [[-Token] <Object>]
[[-FlagColor] <String>] [[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
DESCRIPTION
Add a transaction preset to be used in Add-YnabTransaction.
Presets are stored in $ENV:AppData\\PSModules\\Posh-YNAB\\Presets.xml
PARAMETERS
-Preset <String>
The name to save the preset with (see: Add-YnabTransactionPreset).
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Budget <String>
The name of the budget to add the transaction to.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Account <String>
The name of the account to add the transaction to.
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Payee <String>
The name of the payee to add the transaction to.
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Category <String>
The name of the category to add the transaction to.
Required? false
Position? 5
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Memo <String>
Memo for the transaction.
Required? false
Position? 6
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Outflow <Double>
Outflow amount for the transaction.
Uses absolute value, so a positive or negative number can be provided.
Required? true
Position? 7
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Inflow <Double>
Inflow amount for the transaction.
Uses absolute value, so a positive or negative number can be provided.
Required? true
Position? 7
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Amount <Double>
Amount for the transaction. Negative = Outflow, Positive = Inflow
Required? true
Position? 7
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Date <DateTime>
Date for the trarnsaction.
Defaults to today.
Required? false
Position? 8
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Token <Object>
YNAB API token.
Required? false
Position? 9
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-FlagColor <String>
Flag color for the transaction.
Required? false
Position? 10
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Cleared [<SwitchParameter>]
If specified the transaction will be marked as CLeared.
Required? false
Position? 11
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Approved <Boolean>
If specified the transaction will be marked as Approved.
Defaults to $true.
Required? false
Position? 12
Default value True
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-YnabTransactionPreset -PresetName 'Coffee' -BudgetName 'TestBudget' -AccountName 'Checking'
-CategoryName 'Food' -Memo 'Coffee' -Outflow 3.50
Adds a transaction preset called Coffee that can be used in Add-YnabTransaction with Add-YnabTransaction
-PresetName 'Coffee'
RELATED LINKS
SYNOPSIS
Add a transaction preset to be used in Add-YnabTransaction.
SYNTAX
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [[-Date] <DateTime>] [[-Token] <Object>] [[-FlagColor] <String>]
[[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [-Outflow] <Double> [[-Date] <DateTime>] [[-Token] <Object>]
[[-FlagColor] <String>] [[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [-Inflow] <Double> [[-Date] <DateTime>] [[-Token] <Object>]
[[-FlagColor] <String>] [[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
Add-YnabTransactionPreset [-Preset] <String> [[-Budget] <String>] [[-Account] <String>] [[-Payee] <String>]
[[-Category] <String>] [[-Memo] <String>] [-Amount] <Double> [[-Date] <DateTime>] [[-Token] <Object>]
[[-FlagColor] <String>] [[-Cleared]] [[-Approved] <Boolean>] [<CommonParameters>]
DESCRIPTION
Add a transaction preset to be used in Add-YnabTransaction.
Presets are stored in $ENV:AppData\\PSModules\\Posh-YNAB\\Presets.xml
PARAMETERS
-Preset <String>
The name to save the preset with (see: Add-YnabTransactionPreset).
Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Budget <String>
The name of the budget to add the transaction to.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Account <String>
The name of the account to add the transaction to.
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Payee <String>
The name of the payee to add the transaction to.
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Category <String>
The name of the category to add the transaction to.
Required? false
Position? 5
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Memo <String>
Memo for the transaction.
Required? false
Position? 6
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Outflow <Double>
Outflow amount for the transaction.
Uses absolute value, so a positive or negative number can be provided.
Required? true
Position? 7
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Inflow <Double>
Inflow amount for the transaction.
Uses absolute value, so a positive or negative number can be provided.
Required? true
Position? 7
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Amount <Double>
Amount for the transaction. Negative = Outflow, Positive = Inflow
Required? true
Position? 7
Default value 0
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Date <DateTime>
Date for the trarnsaction.
Defaults to today.
Required? false
Position? 8
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Token <Object>
YNAB API token.
Required? false
Position? 9
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-FlagColor <String>
Flag color for the transaction.
Required? false
Position? 10
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Cleared [<SwitchParameter>]
If specified the transaction will be marked as CLeared.
Required? false
Position? 11
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Approved <Boolean>
If specified the transaction will be marked as Approved.
Defaults to $true.
Required? false
Position? 12
Default value True
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-YnabTransactionPreset -PresetName 'Coffee' -BudgetName 'TestBudget' -AccountName 'Checking'
-CategoryName 'Food' -Memo 'Coffee' -Outflow 3.50
Adds a transaction preset called Coffee that can be used in Add-YnabTransaction with Add-YnabTransaction
-PresetName 'Coffee'
RELATED LINKS