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

assigning an asset in a custom vfp web2case form.

Hi there,

We are trying to create a w2c form with the ability to attach an asset to the case being generated.


We have an external system that imports assets and it generates a unique code. What we'd like to do is for the customer to enter that unique code in the form, find the asset, get the ID, then be able to submit a w2c.


We are able to run a query and display the asset in a vfp page but we are unable to attach the asset to the case itself. There is only one asset field in the case object and that is a lookup which we dont want to display on the page as this requires end-user searching through a list of records.


I'm wondering whether it is possible to assign the asset before the case gets inserted (in the custom controller) and if so, what are the fields in involve?


Thanks a lot for any help