fcClient :: How to have a URL that pops a page
Typically when a business rule is sent out, it will include the Object Type & Object ID, for example "Case 42". It’s easy to customize the business rule message to turn this into a hyperlink that users can click on, and have fcClient automatically "pop" that particular object/page.
For example, the following is a business rule message that we use here at Dovetail:
RE: [Object Type] [Object ID] has been dispatched to the [Current Queue] queue
[Object Type] [Object ID] has been dispatched to the [Current Queue] queue.
Could someone please accept it to stop this annoying chain of emails!
[Object Type] Title: [Title]
Severity: [Severity]
Click the link below to view this [Object Type]: http://<OurPathToFcclient>//console/console.asp?command=casebyid¶m1=[Object ID]
Thanks, The Dovetail System
which resolves to a message that looks like:
Case 6825 has been dispatched to the Support Cases queue. Could someone please accept it to stop this annoying chain of emails!
Case Title: Needs assistance installing Rule Mgr
Severity: MediumClick the link below to view this Case:
http://<OurPathToFcclient>/console/console.asp?command=casebyid¶m1=6825Thanks,
The Dovetail System
Now, when your users receive a business rule notification, they can simply click on the URL in the message, and be immediately taken to the relevant page in fcClient.
To set this up on your system, configure your business rule message so that it contains a URL, such as:
http:// <Path to fcclient>/console/console.asp?command=casebyid¶m1=[Object ID]
where <path to fcclient> will be something like myserver/fcclient
Example:
RE: Test Notification
Something just happened on [Object Type] [Object ID]
Click the link below to view this [Object Type]:
http://localhost/fcclient/console/console.asp?command=casebyid¶m1=[Object ID]
The following commands are currently supported in fcClient:
Command | param1 | param2 | comments |
newcase | pops a blank new case page | ||
casebyobjid | case objid | pops an existing case using the case objid | |
casebyid | case id | pops an existing case using the case id number | |
crbyid | bug id | pops an existing change request (bug) using the CR id number | |
prheaderbyid | PR Header id Number | pops an existing part request header using the pr header number | |
prdetailbyid | PR Detail id Number | pops an existing part request detail using the pr detail number | |
newcaseforcontact | contact objid | site objid | pops a new case for the given contact and site |
contactbyobjid | contact objid | pops an existing contact | |
newinteract | pops a new blank interaction page |
You can modify the list of available commands by adding code to the ExecuteCommand function in console.asp. I’ll walk through an example of that in a future post.