[GH-ISSUE #2430] [Feature Request]: Variables in transport rule templates #1229

Closed
opened 2026-03-02 13:42:33 +03:00 by kerem · 2 comments
Owner

Originally created by @SGeeves on GitHub (May 9, 2024).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2430

Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.

For most other templates in CIPP there are variable replacements. Us being an MSP, we have some exchange transport rules which forward/prepend some incoming emails with tenant specific information.

(For example the prepend the subject line with %TenantName% and forward to our main support desk).

*I am a sponsor under FutureITNZ

PowerShell commands you would normally use to achieve above request

$TenantInfo = Get-MgOrganization
$TenantName = $TenantInfo.DisplayName
New-TransportRule -Name "FIT - Device Enrolment Forward" -From "*@microsoft.com" -SubjectMatchesPatterns "New Device Enrolled" -BlindCopyTo EmailRemovedForPrivacy -Priority '2' -PrependSubject "$TenantName - "

Originally created by @SGeeves on GitHub (May 9, 2024). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2430 ### Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole. For most other templates in CIPP there are variable replacements. Us being an MSP, we have some exchange transport rules which forward/prepend some incoming emails with tenant specific information. (For example the prepend the subject line with %TenantName% and forward to our main support desk). *I am a sponsor under FutureITNZ ### PowerShell commands you would normally use to achieve above request $TenantInfo = Get-MgOrganization $TenantName = $TenantInfo.DisplayName New-TransportRule -Name "FIT - Device Enrolment Forward" -From "*@microsoft.com" -SubjectMatchesPatterns "New Device Enrolled" -BlindCopyTo *EmailRemovedForPrivacy* -Priority '2' -PrependSubject "$TenantName - "
Author
Owner

@github-actions[bot] commented on GitHub (May 19, 2024):

This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself.

<!-- gh-comment-id:2119059815 --> @github-actions[bot] commented on GitHub (May 19, 2024): This issue is stale because it has been open 10 days with no activity. We will close this issue soon. If you want this feature implemented you can contribute it. See: https://docs.cipp.app/dev-documentation/contributing-to-the-code . Please notify the team if you are working on this yourself.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 2, 2024):

This issue was closed because it has been stalled for 14 days with no activity.

<!-- gh-comment-id:2143663667 --> @github-actions[bot] commented on GitHub (Jun 2, 2024): This issue was closed because it has been stalled for 14 days with no activity.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#1229
No description provided.