Salesforce Flex: “Error #2032: Stream Error. URL: “

I came across the Error #2032 exception when I was trying to embed the swf file uploaded to static resources of the Salesforce instance. I searched it on the developer.force.com as well as google it around but didnt find any solution. but after that i realized that the swf file is unable to find the force toolkit required for the execution of the swf file.

I solved this by right clicking on the project in eclipse then on going to the properties.  And configuring the Framework linkage to merge in code value. I dont know this was the correct way to do that or not.

Salesforce : Converting DateTime to format YYYY-MM-DDThh:mm:ssZ

I spend lots of my time finding a solution for converting the datetime into the format (YYYY-MM-DDThh:mm:ssZ) so that it can be used in SOQL query.  SOSL query returns the datetime in format(YYYY-MM-DDThh:mm:ssZ) so for comparison one need to convert it into that format.

System.debug(DateTime.now().format(‘yyyy-MM-dd\’T\’hh:mm:ss\’z\”));

I hope this will save your time. 🙂