Topic by Mala Karmakar
Content
Hi,
I am creating a custom process which will be triggred whenever the asset is selected and will update the product associated with the asset.
The Asset object is associated with Custom Object serviceProduct ( confusingly the same name ServiceProducts primary object) which is associated with Product Object (datatype : MenuType).
By using ROQL query I am able to fetch the desired value ( menu type).
The Relationship between the Primary Object Incident , Asset, Product & Custom Object serviceProduct is as below:
Asset.service_product_id -->CO$serviceProduct.ID
CO$serviceProduct.ser_prod_product_id--> Incident.Prod_id
Below the script but not able to find a way to set the Incident->Product to ser_prod_product_id
CO is the package name
The error I am receiving when Incident->Product=$ser_prod_id_desc;
Type mismatch : Must be serviceProduct ; Incident(ID=10222).Product
When changing to Incident->ServiceProduct & Incident->Prod_id it is passing the test and showing the correct value but after deploying the desired result is not achieved. Please assist me if something I am missing while saving .