- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- Custom Object Save - Await Asynchronous Process
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Custom Object Save - Await Asynchrono us Process
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-24-2010 07:30 AM
I'm looking for either confirmation, or possibly alternative solutions to a requirement here.
Our requirement is for an edit Save on a custom object to invoke a web service to send the information to it, consume the answer, and then update the custom object only if a valid answer was received back. If not, do not save and provide an error.
Since calling webservices is Asynchronous, my solution was to create a VisualForce page (I would prefer the standard page, but...) which would await the answer and then do a PageReference to the updated object View page if successful. If not, we would present the Error Message at the top of the page.
Can anyone see an alternative or issue with this solution?
Re: Custom Object Save - Await Asynchrono us Process
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-29-2010 09:49 PM
If you are getting values from VF page you can use StandardController and extension and if it is from custom object edit page you can use Trigger for this.
Navatar Group
Re: Custom Object Save - Await Asynchrono us Process
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-30-2010 06:25 AM
Actually I can't. All web services are Future methods which means Asynchronous. I need to wait for the answer before continuing to make sure we were successful. So, the only way I saw to do that was to create a VF page and then when Save is clicked, I can wait on the Asynch process, and then communicate back to the VF page. If it isn't a VF page, the trigger/class can't do this because control has already been returned.

