function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anu-cnpAnu-cnp 

Reading XML file through a trigger and updating the objects

Hi,

 

I've an xml file. I have to read data from XML and display on visualforce page and have to update some objects based on that data.

 

Can any one of you please help on this...

 

 

Thanks

Anu

Doze2KatzsDoze2Katzs

You can do something similar to the following:

 

http://blog.sforce.com/sforce/2009/02/calling-web-services-from-a-trigger-.html

 

Basically, have your trigger call a asynchronous web service.  Then your web service can update the objects.

 

 

forecast_is_cloudyforecast_is_cloudy

How are you getting your 'XML file'? Will the user upload it from a VF page? Will it be accssed from an external service? If latter then, follow the link posted by the previous user.

Anu-cnpAnu-cnp

Hi,

 

Thanks for the reply.

 

I'm calling the xml file from API, and Stores the file in a field in a custom object.I need to call the file values from that field through a trigger.

 

 

Thanks 

Anu