/build/static/layout/Breadcrumb_cap_w.png

IT Request Creation via email

Hi,

I have a PowerShell script that will create requests for me and works fine.

Sample lines in the script is

@Category=$Category::$SubCategory
@custom_1=$Urgency
@custom_3=$TmpRequestType
@custom_9=Support
@Status=Open
@owner=$Username
@resolution=$TmpResolution
@Summary=$TmpSummary

This is used as part of a PowerShell form used to quickly create and resolve tickets for our helpdesk staff.

You will notice that some of the fields are fed data within variables like the resolution.  On the form the resolution field is a multi-line text box so the variable contains carriage returns.
What happens is the first line of the resolution is placed in the Resolution field and the remaining data becomes part of the summary.

I am using the MAPI mail client Outlook and not the SMTP method PowerShell has.

Does anyone know a way around this issue?

Much appreciated

Wayne



1 Comment   [ + ] Show comment
  • I have found a workaround. In the variable $TmpResolution I replace the carriage returns with a space. This effectively puts the data on one line. The command is $TmpResolution = $TmpResolution.replace("`r`n"," ").
    I would still like to know if it can be done leaving the carriage returns as written by the technician. - Wayne_A 4 years ago

Answers (0)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ