Example tasks for creating workflow to modify requests
The following procedures walk you through an example creating workflow to modify requests. The example is simple but complete, and you can easily add more functionality. For example, you could create a Run If qualification in your filter to search for records that are marked Urgent and are assigned to your Managers group.
Before you begin
In this example, make sure that the Demo user is still active and has an email address that works with the . Make sure your incoming and outgoing mailboxes work correctly. Finally, set the polling intervals on your incoming and outgoing mailboxes to one minute so that you can quickly verify your results.
To create a security key
Complete this procedure to create an AR System Email Security record. You must provide a security key for every user who sends modify instructions to the , in this example, Demo.
- In a browser, open the AR System Email Security form in New mode.
- Set the Status field to Enabled.
- In the Key field, define your security key, for example, patience.
- Enter Demo as the User Name.
- Set the Force For Mailbox field to No.
- Set the Force From Email Addresses to No.
- Set the Expires field to No.
- Leave the rest of the fields blank and save the record.
To create a sample form
- Create a new form and name it appropriately, for example, Modify Email Workflow.
- Do not add any new fields.
- Save the form.
To create filter workflow that triggers a Notify action
Complete this procedure to create a filter that executes on the Submit condition of the Modify Email Workflow form and triggers a Notify action.
- Create a filter.
- Enter a filter name, for example, Modify Email Filter.
- Select Modify Email Workflow as the Form Name.
- Select Submit as the Execute On condition.
- Leave the Run If condition blank. After you verify that you can use your filter workflow to modify requests, you can add a Run If qualification later.
- Click the If Action tab, and perform the following actions:
- From the New Action list, select Notify.
- In the User Name field, enter Demo.
- From the Mechanism list, select Email.
- In the Subject field, enter Modify Email Workflow.
In the Text field, enter the following information as the text of the message:
Login:
Password:
Key:
Action:
Modify Form: Modify Email Workflow
Request ID: $Request ID$
Submitter!2!: $Submitter$
Short Description:!8!: $Short Description$The Modify action in the text of the outgoing message is the special instruction that allows the to modify an entry on the . The Modify action is valid only in Reply with Result emails. For more information, see Action-label.
- Save your filter.
To export an email template
- Log in as a administrator.
- In the BMC Remedy AR System Navigator, right-click serverName, and choose Export > Mail Template.
For more information, see Creating-and-exporting-mail-templates. - In the Export Mail Template dialog box, click the ellipsis (...) button next to the Form field.
- In the Form Selector dialog box, select Modify Email Workflow form, and click OK.
- In the Export Mail Template dialog box, perform the following actions:
- In the View Details table, select the views your want to use in the template.
- Click the ellipsis (...) button next to the To File field to specify the file name and location where you want the templates stored.
- Click Finish.
- Open the email template in a text editor.
To create a test email
Complete this procedure to open a new email message and paste the contents of the exported mail template into the new email. You use this email to submit a record to the Modify Email Workflow form.
- Create a new email in your email client.
- Address the email to the inbox account.
- Enter a subject line, for example, Modify Email Workflow.
Copy and paste the contents of the exported email template into the new email, and then enter the required information for the template, for example:
#
# File exported Tue Sep 21 15:34:56 2004
#
Schema: Modify Email Workflow
Server: POLYCARP.eng.bmc.com
Login: Demo
Password:
Action: Submit
# Values: Submit, Query
Format: Short
# Values: Short, Full
Submitter !2!: Demo
Short Description !8!: Email Test*- Send the email to the incoming mailbox.
To reply to email notifications
The email client sends your submit email to the incoming mailbox on the mail server. After receiving the email from the mail server, the parses the instructions in your email, and makes the submit API calls to the . The server then creates a record in the Modify Email Workflow form. The incoming mailbox is configured to reply with results and generates an email response. Also, when a record is submitted, filter workflow triggers a Notify action that includes instructions for modifying the record.
Complete the following procedure to reply to email notifications generated by workflow.
- Open the AR System Email Messages form in Search mode.
- Confirm that the incoming mailbox has received your message, and then send the Reply with Result email.
- In the mid tier, open the Modify Email Workflow form in Search mode.
- Make sure a new record was created in the Modify Email Workflow form.
Check for new mail in your mail client.
If you properly configured the and all your permissions are working correctly, you should receive an email notification (as shown in the following figure) from the filter that you created previously.
The following figure shows the modify key added to the notification:##Modify##:\[$$ckI2UoIK4gNQ0qROehOucPFOokiXb/DfA07EiNObusaHtOquCV/ FSA==$$\]Reply to the returned email, and enter the following information into the body of the email:
Login: Demo
Password:
Key: patience
Action: Modify
Form: Modify Email Workflow
Request ID: 000000000000002
Submitter!2!: Demo
Short Description:!8!: Modifying requests with workflow is great!
##Modify##:\[$$ckI2UoIK4gOt6aqHF2QE9x5d1nqwf6FJLifugKurp68lQH9XRehn Ew==$$\]Make sure you add the Login and security key. Update the Short Description so that you can verify that modifications work on records in the Modify Email Workflow form.
- Send the reply email.
- In the AR System Email Messages form, confirm that the incoming mailbox has received the email with the modify instruction.
- In the mid tier, refresh the query results of the Modify Email Workflow form.
The modify action should have modified the Short Description in the record.