• AvisheK
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies

I need to access the server variables from visual force page. A third party website is sending data by POST method. I need to access those information by the use of Request variables. This is can be done in ASP by the following method.

 

<HTML>
<BODY>
<%

dim fs,fname,path,timestamp

if Request.ServerVariables("request_method")="POST" then

    set fs=Server.CreateObject("Scripting.FileSystemObject")

    path="c:\" 'set your logfile directory path here
    timestamp=day(Date) & "-" & month(date) & "-" & year(date)
    timestamp=timestamp & "--" & hour(time) & "-" & minute(time) & "-" & second(time)

    set fname=fs.CreateTextFile(path & timestamp & "-" & Request.form("oid") & ".log",true)

    fname.WriteLine("OrderID - " & Request.Form("oid"))
    fname.WriteLine("Transaction Status - " & Request.Form("transactionstatus"))
    fname.WriteLine("Total - " & Request.Form("total"))
    fname.WriteLine("ClientID - " & Request.Form("clientid"))
    fname.WriteLine("Transaction Time Stamp - " & Request.Form("datetime"))
    fname.Close

    set fname=nothing
    set fs=nothing
   
end if


%>
</BODY>
</HTML>

 

Could anybody help me out on this problem?

 

Hi,

 

I have written an Apex Trigger which would automatically make the Case Aggignment Rule fire upon update of records either through front or back end using the AssignmentRuleHeader. This trigger was firing properly in the sandbox before the Winter 10 release came into effect. This code is still firing properly in Production which has not yet been upgraded to the Winter 10 release.

If anyone has faced a similar issue, and found a resolution, please provide me the same.

 

Thanking you in anticipation,

AvisheK